/* =========================================================================
   Suncode / LogFiber, Design System (dark mode only)
   Pure CSS. No frameworks.
   ========================================================================= */

:root {
  /* Brand */
  --amber:        #F1BE17;
  --amber-soft:   #ffce3a;
  --amber-deep:   #c99a00;

  /* Neutrals (near-black stack) */
  --bg:           #000000;
  --bg-1:         #0a0a0c;
  --bg-2:         #101014;
  --bg-3:         #16161c;
  --surface:      rgba(255,255,255,0.035);
  --surface-2:    rgba(255,255,255,0.06);
  --hair:         rgba(255,255,255,0.10);
  --hair-soft:    rgba(255,255,255,0.06);

  /* Text */
  --ink:          #f5f5f7;
  --ink-2:        #c7c7cf;
  --ink-3:        #86868b;
  --ink-4:        #5a5a61;

  /* Scientific viz accents */
  --cool:         #2ec5c9;
  --violet:       #7b6cf6;
  --coral:        #ff6b5e;

  /* Layout */
  --maxw:         1200px;
  --pad:          clamp(20px, 5vw, 40px);
  --radius:       22px;
  --radius-lg:    32px;
  --radius-sm:    14px;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:        56px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(241,190,23,0.28); color: #fff; }

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 420px at 78% -6%, rgba(241,190,23,0.10), transparent 60%),
    radial-gradient(760px 520px at 8% 8%, rgba(46,197,201,0.06), transparent 55%),
    var(--bg);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 148px); position: relative; }
.section.tight { padding-block: clamp(52px, 8vw, 96px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }

.display {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.h1 { font-size: clamp(36px, 5.5vw, 68px); font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; }
.h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.lead {
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.4;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.muted { color: var(--ink-3); }
.body { font-size: 17px; color: var(--ink-2); line-height: 1.6; }
.amber-text { color: var(--amber); }

.grad-text {
  background: linear-gradient(180deg, #ffffff 0%, #b9b9c2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.amber-grad {
  background: linear-gradient(120deg, var(--amber-soft), var(--amber) 55%, var(--amber-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 980px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--amber); color: #1a1400;
  box-shadow: 0 6px 26px rgba(241,190,23,0.28);
}
.btn-primary:hover { background: var(--amber-soft); box-shadow: 0 10px 40px rgba(241,190,23,0.42); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface-2); color: var(--ink);
  border-color: var(--hair);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.btn-link { color: var(--amber); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.btn-link .arw { transition: transform .3s var(--ease); }
.btn-link:hover .arw { transform: translateX(4px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8,8,10,0.6);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(8,8,10,0.82); border-bottom-color: var(--hair-soft); }
.nav__inner { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 20px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .2s; position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 2px;
  background: var(--amber); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__burger span { width: 20px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger.open span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
.nav__burger.open span:nth-child(2){ opacity: 0; }
.nav__burger.open span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(6,6,8,0.97); backdrop-filter: blur(24px);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: flex; flex-direction: column; padding: 24px var(--pad); gap: 4px;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-size: 24px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--hair-soft); color: var(--ink); }
.mobile-menu .btn { margin-top: 24px; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 110px));
  padding-bottom: clamp(40px, 7vw, 80px); overflow: hidden; }
.hero__note { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; letter-spacing: .01em; }
.hero__note b { color: var(--amber); font-weight: 600; }

/* -------------------------------------------------------------------------
   Cards & grids
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--hair); }
.card__icon { color: var(--amber); margin-bottom: 16px; line-height: 0; }
.card__icon svg { width: 26px; height: 26px; display: block; }
.step-num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--amber); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.card h3 { font-size: 20px; margin-bottom: 9px; letter-spacing: -0.02em; }
.card p { font-size: 15px; color: var(--ink-3); line-height: 1.55; }

.card-glow::after {
  content: ""; position: absolute; top: -40%; right: -30%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(241,190,23,0.14), transparent);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.card-glow:hover::after { opacity: 1; }

/* Feature split row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.rev .split__media { order: -1; }

/* Panel (visual frame, Apple product-shot vibe) */
.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, #14141a, #0a0a0d);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden; position: relative;
}
.panel__bar { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hair-soft);
  background: rgba(255,255,255,0.02); }
.panel__title { font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: .02em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; padding-left: 12px; border-left: 2px solid rgba(241,190,23,0.7); }
.panel__body { padding: 0; }

/* Stat blocks */
.stat { text-align: center; padding: 8px; }
.stat__num { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(180deg,#fff,#b9b9c2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__num.amber { background: linear-gradient(120deg, var(--amber-soft), var(--amber-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* Pill list / checks */
.checks { display: grid; gap: 14px; margin-top: 26px; }
.checks li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.checks .tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(241,190,23,0.14); color: var(--amber); margin-top: 1px; }
.checks .tick svg { width: 12px; height: 12px; }

/* Inline capability line (replaces pill chips) */
.inline-list { font-size: 15px; color: var(--ink-2); line-height: 1.9; }
.inline-list b { color: var(--ink); font-weight: 600; }
.rule { height: 1px; background: var(--hair-soft); border: 0; margin: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 22px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink); margin: 0; }

/* -------------------------------------------------------------------------
   Visual components (canvas/SVG hosts)
   ------------------------------------------------------------------------- */
.viz { width: 100%; display: block; border-radius: inherit; }
.waterfall-host { position: relative; aspect-ratio: 16 / 10; width: 100%; background: #05050a; }
.waterfall-host canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-labels { position: absolute; inset: 0; pointer-events: none; }
.viz-tag { position: absolute; font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: rgba(255,255,255,0.72); background: rgba(0,0,0,0.4); padding: 3px 8px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(4px); }

.colorbar { height: 8px; border-radius: 6px; width: 100%;
  background: linear-gradient(90deg,#30123b,#4145ab,#2ba7b3,#7ee34e,#f9e721,#f9891a,#c5211a); }

/* Well schematic */
.schematic { display: block; width: 100%; height: auto; }

/* -------------------------------------------------------------------------
   Logo lockup (LogFiber wordmark, CSS-typeset)
   ------------------------------------------------------------------------- */
.logfiber-mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.03em; }
.logfiber-mark .glyph { width: 22px; height: 22px; }
.logfiber-mark .txt { font-size: inherit; }
.logfiber-mark .txt b { color: var(--amber); font-weight: 700; }

/* Product tile (used in company / home) */
.product-tile {
  display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--hair-soft); background: var(--surface); transition: border-color .3s, transform .4s var(--ease);
}
.product-tile:hover { border-color: var(--hair); transform: translateY(-3px); }
.product-tile .pt-logo { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(241,190,23,0.2), rgba(241,190,23,0.05)); border: 1px solid rgba(241,190,23,0.25); }
.product-tile .pt-logo svg { width: 30px; height: 30px; }
.badge-soon { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(241,190,23,0.16), transparent 60%),
    linear-gradient(180deg, #131319, #0b0b0f);
  border: 1px solid var(--hair); text-align: center; position: relative; overflow: hidden;
}

/* -------------------------------------------------------------------------
   Forms (contact)
   ------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--hair); border-radius: 12px;
  padding: 13px 15px; transition: border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: rgba(241,190,23,0.6); background: var(--bg-3);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Contact info rows */
.info-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair-soft); }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--hair); color: var(--amber); flex: 0 0 auto; }
.info-row .lbl { font-size: 13px; color: var(--ink-3); }
.info-row .val { font-size: 17px; color: var(--ink); font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--hair-soft); }
.faq details { border-bottom: 1px solid var(--hair-soft); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 18px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .3s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--ink-3);
  top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq summary .plus::before { width: 14px; height: 1.6px; }
.faq summary .plus::after { width: 1.6px; height: 14px; transition: transform .3s var(--ease); }
.faq details[open] summary .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq details[open] summary .plus { transform: rotate(180deg); }
.faq p { padding: 0 0 22px; color: var(--ink-3); font-size: 16px; line-height: 1.6; max-width: 68ch; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hair-soft); padding-block: 56px 40px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 22px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; color: var(--ink-3); max-width: 30ch; line-height: 1.6; }
.footer h4 { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer ul a:hover { color: var(--amber); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--hair-soft); font-size: 13px; color: var(--ink-4); }
.footer__bottom a { color: var(--ink-3); }

/* -------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 940px) {
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__burger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 24px; }
  .btn-row .btn { width: 100%; }
  .info-row .val { font-size: 16px; }
}
