/* ============================================================================
   TAKOA AI — company landing page (index.html)
   Extends styles.css tokens. No token redefinitions — everything references :root.
   ========================================================================== */

/* ── Hero — centered text variant, no hero-grid ────────────────────────── */
.hero .hero-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero .hero-copy .hero-eyebrow {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}
.hero .hero-copy .hero-sub {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Why we exist — three-card grid ───────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.why-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.why-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(var(--blue-rgb), 0.08);
  border: 1px solid rgba(var(--blue-rgb), 0.2);
}
.why-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 9px;
}
.why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 940px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── What we believe — numbered cards ──────────────────────────────────── */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.belief-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.belief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 14px 14px 0 0;
}
.b-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--blue-rgb), 0.1);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}
.belief-card h4 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.belief-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.58;
}
.belief-cap {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-top: 6px;
}

@media (max-width: 940px) {
  .belief-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .belief-grid { grid-template-columns: 1fr; }
}

/* ── What we do — two-card diptych ─────────────────────────────────────── */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
  position: relative;
}
.what-grid::before {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--violet));
  opacity: 0.25;
}
.what-card {
  position: relative;
  border-radius: 16px;
  padding: 34px 30px 32px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.what-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.what-card.tint-violet {
  border-top: 3px solid var(--violet);
}
.what-card.tint-violet:hover {
  border-color: rgba(var(--violet-rgb), 0.4);
}
.what-card.tint-cyan {
  border-top: 3px solid var(--cyan);
}
.what-card.tint-cyan:hover {
  border-color: rgba(var(--cyan-rgb), 0.4);
}
.what-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}
.what-card.tint-violet::after {
  background: radial-gradient(70% 50% at 0% 0%, rgba(var(--violet-rgb), 0.06), transparent 60%);
}
.what-card.tint-cyan::after {
  background: radial-gradient(70% 50% at 100% 0%, rgba(var(--cyan-rgb), 0.06), transparent 60%);
}
.what-card > * {
  position: relative;
  z-index: 1;
}
.what-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 18px;
}
.what-tag.violet {
  background: rgba(var(--violet-rgb), 0.12);
  color: var(--violet);
}
.what-tag.cyan {
  background: rgba(var(--cyan-rgb), 0.12);
  color: var(--cyan);
}
.what-card h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.what-card.tint-violet h3 { color: var(--violet); }
.what-card.tint-cyan h3 { color: var(--cyan); }
.what-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 940px) {
  .what-grid { grid-template-columns: 1fr; }
  .what-grid::before { display: none; }
}

/* ── Showcase — scroll-driven dark band ────────────────────────────────── */
.showcase-band {
  position: relative;
  overflow: hidden;
  color: var(--on-ink);
  background:
    radial-gradient(60% 90% at 22% 0%, rgba(var(--violet-rgb), 0.28), transparent 58%),
    radial-gradient(60% 90% at 78% 100%, rgba(var(--cyan-rgb), 0.22), transparent 58%),
    radial-gradient(80% 80% at 50% 120%, rgba(var(--blue-rgb), 0.2), transparent 60%),
    var(--ink);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.showcase-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(150,180,230,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,180,230,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
}
.showcase-band .wrap {
  position: relative;
  z-index: 1;
}

/* Override styles.css heading colors for dark-band sections */
.showcase-band .section-head h2 { color: var(--on-ink); }
.showcase-band .section-head p { color: var(--on-ink-mut); }
.showcase-band .section-head .kicker { color: var(--cyan-bright); }

/* Static fallback — always visible; hidden when JS activates animated path */
.showcase-static { margin-top: 40px; }
.showcase-stages {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 700px;
  margin: 0 auto;
}
.sstage {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--ink-line);
  border-radius: 11px;
  background: rgba(255,255,255,0.03);
}
.sstage-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  background: rgba(var(--blue-rgb), 0.2);
  color: var(--on-ink);
}
.sstage-body h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-ink);
  margin-bottom: 5px;
}
.sstage-body p {
  font-size: 13.5px;
  color: var(--on-ink-mut);
  line-height: 1.55;
}

/* Animated — scroll-driven SVG path + marker */
.showcase-track {
  position: relative;
  margin-top: 40px;
  width: 100%;
  height: auto;
}
.showcase-svg {
  width: 100%;
  height: auto;
  min-height: 90px;
  overflow: visible;
}
.showcase-svg #showcasePath {
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
}
.showcase-svg #showcaseMarker {
  transition: cx 0.05s linear, cy 0.05s linear;
}
.showcase-captions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.scap {
  padding: 16px;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  opacity: 0.35;
  transition: opacity 0.3s var(--ease), border-color 0.3s;
}
.scap.active {
  opacity: 1;
  border-color: rgba(var(--blue-rgb), 0.5);
  background: rgba(255,255,255,0.05);
}
.scap-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--on-ink-faint);
  margin-bottom: 8px;
}
.scap h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-ink);
  margin-bottom: 6px;
}
.scap p {
  font-size: 12.5px;
  color: var(--on-ink-mut);
  line-height: 1.52;
}
.scap-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 10px;
  background: rgba(var(--violet-rgb), 0.18);
  color: var(--violet-bright);
}

/* Animated is hidden by default; JS reveals it */
.showcase-animated[hidden] { display: none; }

@media (max-width: 940px) {
  .showcase-captions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .showcase-captions { grid-template-columns: 1fr; }
  .scap { opacity: 1; }
}

/* ── Showcase screenshot ────────────────────────────────────────────────── */
.showcase-shots {
  margin-top: 44px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.showcase-shots .shot-frame {
  border-radius: 12px;
  overflow: hidden;
}
.showcase-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--ink-line);
  background: var(--ink);
}

/* ── Showcase two product cards (reuse .plane from styles.css) ──────────── */
.showcase-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  position: relative;
}
.showcase-cards::before {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--violet));
  opacity: 0.25;
}

/* On dark, the .plane cards from styles.css use light surface background.
   We want them on the dark showcase-band to read correctly: the plane
   already sets its own light background, so they work as-is. */

@media (max-width: 940px) {
  .showcase-cards { grid-template-columns: 1fr; }
  .showcase-cards::before { display: none; }
}

/* ── Who we are ────────────────────────────────────────────────────────── */
/* .founders + .founder from styles.css — reused as-is */
.who-more {
  text-align: center;
  margin-top: 28px;
}
.who-more .btn-ghost {
  color: var(--muted);
}

.companies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.company-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.company-card h4 {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.company-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 620px) {
  .companies-grid { grid-template-columns: 1fr; }
}

/* ── Reveal-on-scroll — same pattern as styles.css ─────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .showcase-animated[hidden] { display: none !important; }
  .showcase-static { display: block !important; }
}

/* ── Hero brand plate ───────────────────────────────────────────────────── */
/* The front door opens on the company lockup rather than a text eyebrow: the
   mark needs a light surface, so the pill carries one. The art is the loading
   animation — the arcs and nodes counter-rotate continuously, so the mark
   reads as a system that is running. Nothing in it starts hidden, so reduced
   motion simply holds the lockup still. */
.hero-eyebrow--brand { padding: 8px 18px; background: rgba(255, 255, 255, 0.95); border-color: rgba(255, 255, 255, 0.32); }
.hero-eyebrow--brand .hero-brand { display: block; height: 22px; width: auto; }
@media (max-width: 620px) { .hero-eyebrow--brand .hero-brand { height: 19px; } }
