/* ============================================================
   Cyata — Components & page sections
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--orange-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, #FFF6EE, transparent 55%),
    var(--white);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 700px at 70% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 700px at 70% 0%, #000 30%, transparent 75%);
  opacity: .7;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 { margin: 24px 0 22px; }
.hero h1 .accent { color: var(--orange-deep); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .item .num { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.hero-meta .item .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* hero orchestration visual */
.hero-visual {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  margin-top: clamp(16px, 3vw, 40px);
  padding: 6%;
}
.hero-visual .ring {
  position: absolute; inset: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
}
.hero-visual .ring.r2 { inset: 12%; border-color: var(--orange-soft); }
.hero-visual .ring.r3 { inset: 24%; border-color: var(--line); }
.hero-visual .ring.r4 { inset: 36%; border-color: var(--orange-soft); }
.hero-visual .core {
  position: absolute; top: 50%; left: 50%;
  width: 84px; height: 84px; transform: translate(-50%, -50%);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  box-shadow: 0 20px 50px rgba(242,90,0,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.1em;
}
.hero-visual .node {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-deep);
  font-size: 11px; font-weight: 600;
  transition: transform .4s var(--ease);
}
.hero-visual .node svg { width: 22px; height: 22px; }
.hero-visual .node.n1 { top: 2%; left: 50%; transform: translateX(-50%); }
.hero-visual .node.n2 { top: 50%; right: 2%; transform: translateY(-50%); }
.hero-visual .node.n3 { bottom: 6%; right: 18%; }
.hero-visual .node.n4 { bottom: 6%; left: 18%; }
.hero-visual .node.n5 { top: 50%; left: 2%; transform: translateY(-50%); }
.hero-visual svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-visual svg.lines line { stroke: var(--orange); stroke-width: 1.2; opacity: .35; stroke-dasharray: 4 6; animation: dashflow 18s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -200; } }
.hero-visual .float-tag {
  position: absolute;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-visual .float-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-visual .ft1 { top: 18%; right: 2%; }
.hero-visual .ft2 { bottom: 22%; left: 0%; }

/* ---------- LOGO STRIP ---------- */
.logo-strip {
  border-block: 1px solid var(--line);
  padding-block: 28px;
  background: var(--orange-tint);
}
.logo-strip .label { text-align: center; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.logo-strip .row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.logo-strip .row span { font-weight: 700; font-size: 17px; color: var(--ink-2); opacity: .55; letter-spacing: -0.02em; transition: opacity .2s; }
.logo-strip .row span:hover { opacity: .9; }

/* ---------- PILLARS ---------- */
.pillars .card { display: flex; flex-direction: column; height: 100%; }
.pillars .card .num { font-family: var(--font-mono); font-size: 13px; color: var(--orange-deep); margin-bottom: 14px; }
.pillars .card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pillars .card ul li { font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative; }
.pillars .card ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 1.5px; background: var(--orange); }

/* ---------- ARCH / HOW IT WORKS ---------- */
.arch {
  background: var(--orange-tint);
  border-block: 1px solid var(--line);
}
.arch-diagram {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 32px;
  overflow: hidden;
}
.arch-layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.arch-layer:last-child { border-bottom: 0; }
.arch-layer .label .tag { font-family: var(--font-mono); font-size: 12px; color: var(--orange-deep); }
.arch-layer .label h4 { margin-top: 4px; }
.arch-layer .label p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.arch-blocks { display: flex; gap: 12px; flex-wrap: wrap; }
.arch-block {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.arch-block:hover { border-color: var(--orange); background: #fff; transform: translateY(-2px); }
.arch-block .micro { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
@media (max-width: 720px) { .arch-layer { grid-template-columns: 1fr; } }

/* ---------- STATS ---------- */
.stats {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }
.stats .stat .num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange-bright), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .stat .lbl { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.65); }

/* ---------- CODE / TERMINAL ---------- */
.terminal {
  background: #0F0B07;
  color: #F5EFE7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #2a2018;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2018;
  background: #150F0A;
}
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a2018; }
.terminal-bar .title { margin-left: 8px; font-size: 12px; color: #8c7a68; }
.terminal-body { padding: 20px 22px; line-height: 1.7; }
.terminal-body .c { color: #6b5d4f; }       /* comment */
.terminal-body .k { color: var(--orange-bright); }  /* keyword */
.terminal-body .s { color: #C9A88A; }       /* string */
.terminal-body .p { color: #8c7a68; }       /* prompt */
.terminal-body .ok { color: #5BB98C; }

/* ---------- PRICING ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 20px 50px rgba(242,90,0,0.12);
  position: relative;
}
.price-card .plan { font-size: 14px; font-weight: 600; color: var(--orange-deep); text-transform: uppercase; letter-spacing: 0.1em; }
.price-card .price { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; margin-top: 14px; }
.price-card .price .per { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-card .desc { color: var(--muted); font-size: 14.5px; margin-top: 12px; min-height: 44px; }
.price-card ul { margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card ul li { font-size: 14.5px; color: var(--ink-2); padding-left: 26px; position: relative; }
.price-card ul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange-soft);
}
.price-card ul li::after {
  content: ""; position: absolute; left: 5px; top: 10px;
  width: 6px; height: 3px; border-left: 1.5px solid var(--orange-deep); border-bottom: 1.5px solid var(--orange-deep);
  transform: rotate(-45deg);
}
.price-card .badge-top {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}

/* ---------- FEATURE SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split.reverse .split-media { order: 0; } }
.split-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--orange-tint);
  padding: 32px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.split ul.checks { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.split ul.checks li { display: flex; gap: 12px; align-items: flex-start; }
.split ul.checks li .ic { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); display: inline-flex; align-items: center; justify-content: center; }
.split ul.checks li .ic svg { width: 12px; height: 12px; }
.split ul.checks li .tx h4 { font-size: 15.5px; margin-bottom: 2px; }
.split ul.checks li .tx p { font-size: 14px; color: var(--muted); }

/* mesh visual for split media */
.mesh-vis { position: absolute; inset: 0; }
.mesh-vis svg { width: 100%; height: 100%; }
.mesh-vis .gridline { stroke: var(--orange); opacity: .12; }
.mesh-vis .node-pt { fill: var(--orange-deep); }
.mesh-vis .link { stroke: var(--orange); opacity: .35; stroke-dasharray: 3 4; }

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(242,90,0,0.25);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(600px 300px at 50% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(600px 300px at 50% 50%, #000, transparent 70%);
  opacity: .6;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: clamp(16px, 1.3vw, 19px); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-orange { background: #fff; color: var(--orange-deep); }
.cta-band .btn-orange:hover { background: var(--ink); color: #fff; box-shadow: none; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.cta-band .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(900px 500px at 80% -20%, var(--orange-soft), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero p { max-width: 60ch; }

/* ---------- DOCS ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .docs-layout { grid-template-columns: 1fr; } }
.docs-side { position: sticky; top: 96px; }
.docs-side h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 20px 0 10px; }
.docs-side ul li a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.docs-side ul li a:hover, .docs-side ul li a.active { background: var(--orange-soft); color: var(--orange-deep); }
.docs-content h2 { margin-top: 48px; margin-bottom: 14px; }
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { margin-top: 32px; margin-bottom: 10px; }
.docs-content p { color: var(--ink-2); margin-bottom: 16px; }
.docs-content ul { margin: 0 0 20px; padding-left: 22px; }
.docs-content ul li { color: var(--ink-2); margin-bottom: 8px; list-style: disc; }
.docs-content pre {
  background: #0F0B07; color: #F5EFE7; padding: 20px 24px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto;
  margin: 20px 0;
}
.docs-content pre code { color: inherit; }
.docs-content :not(pre) > code { background: var(--orange-soft); color: var(--orange-deep); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.docs-content .callout {
  border: 1px solid var(--orange-soft); background: var(--orange-tint);
  border-radius: var(--radius); padding: 18px 22px; margin: 24px 0;
}
.docs-content .callout .h { font-weight: 600; color: var(--orange-deep); margin-bottom: 6px; font-size: 14px; }

/* ---------- COMPANY / TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: left; }
.team-card .avatar {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--orange-soft), var(--orange-tint));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; color: var(--orange-deep);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.team-card h4 { font-size: 17px; }
.team-card .role { font-size: 14px; color: var(--orange-deep); margin-top: 2px; }
.team-card .bio { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* ---------- VALUES ---------- */
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .value-row { grid-template-columns: 1fr; } }
.value { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.value .num { font-family: var(--font-mono); font-size: 12px; color: var(--orange-deep); }
.value h4 { margin: 12px 0 10px; font-size: 19px; }
.value p { font-size: 14.5px; color: var(--muted); }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.timeline .ti { position: relative; padding-bottom: 36px; }
.timeline .ti::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2.5px solid var(--orange); }
.timeline .ti .when { font-family: var(--font-mono); font-size: 12.5px; color: var(--orange-deep); }
.timeline .ti h4 { margin: 4px 0 6px; font-size: 17px; }
.timeline .ti p { font-size: 14.5px; color: var(--muted); max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq-q .ic { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s, background .2s, color .2s; color: var(--orange-deep); }
.faq-q .ic svg { width: 12px; height: 12px; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--orange); color: #fff; border-color: var(--orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a .inner { padding: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 70ch; }

/* ---------- FORM ---------- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--orange-tint); transition: border-color .2s, background .2s; font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px var(--orange-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 100;
  display: inline-flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-bright); }
