/* =========================================================
   ThornMesh.com Cinematic Edition
   Dark luxury: near-black + muted gold (value) + electric
   cyan (live intelligence). Space Grotesk display, Inter
   body, JetBrains Mono for data/terminal.
   ========================================================= */

:root{
  --void:   #07070A;
  --ink:    #0C0D12;
  --ink-2:  #10121A;
  --line:   #1E212B;
  --line-soft: #16181F;

  --text:   #ECEAE3;
  --muted:  #93949C;
  --faint:  #55565E;

  --gold:      #D8B571;
  --gold-soft: rgba(216,181,113,.12);
  --gold-line: rgba(216,181,113,.35);

  --cyan:      #4FD8E8;
  --cyan-soft: rgba(79,216,232,.12);

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(.16,.84,.28,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
canvas{ display: block; }

h1, h2, h3{ font-family: var(--f-display); font-weight: 600; margin: 0; }

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 30px; position: relative; z-index: 2; }

.gold-text{ color: var(--gold); }
.cyan-text{ color: var(--cyan); }

.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font-family: var(--f-display); font-size: 14.5px; font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover{ transform: translateY(-2px); }

.btn-gold{ background: var(--gold); color: #16110A; }
.btn-gold:hover{ background: #E7C787; box-shadow: 0 10px 30px -8px rgba(216,181,113,.5); }
.btn-gold:disabled{ opacity: .5; transform: none; cursor: not-allowed; }

.btn-line{ background: transparent; border-color: var(--line); color: var(--text); }
.btn-line:hover{ border-color: var(--gold-line); color: var(--gold); }

.btn-block{ width: 100%; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.hdr{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,7,10,0);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hdr.scrolled{
  background: rgba(7,7,10,.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.hdr-row{ display: flex; align-items: center; gap: 26px; height: 76px; }

.brand{ display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--gold); font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.brand span{ color: var(--text); }

.nav{ display: flex; align-items: center; gap: 30px; }
.nav a{
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--muted); transition: color .2s var(--ease);
}
.nav a:hover{ color: var(--text); }
.nav-cta{
  border: 1px solid var(--gold-line); color: var(--gold) !important;
  padding: 8px 16px; border-radius: 2px;
}
.nav-cta:hover{ background: var(--gold-soft); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 36px; background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle span{ display: block; width: 16px; height: 1.5px; background: var(--text); margin: 0 auto; }

/* ---------------------------------------------------------
   Acts (sections)
   --------------------------------------------------------- */
.act{ position: relative; padding: 150px 0; overflow: hidden; }
.act-canvas{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.act-canvas-dim{ opacity: .5; }

.tag{
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 20px;
}
.act-h2{
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12;
  font-weight: 600; margin: 0 0 28px;
}
.act-lede{
  font-size: 17.5px; color: var(--muted); max-width: 560px; margin: 0;
}

/* ---- Hero ---- */
.act-hero{
  min-height: 100vh; padding: 0; display: flex; align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.hero-vignette{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 60% at 50% 45%, rgba(7,7,10,.55) 20%, rgba(7,7,10,.92) 78%),
    linear-gradient(to bottom, rgba(7,7,10,.3), var(--void) 100%);
}
.hero-inner{ position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.kicker{
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em;
  color: var(--cyan); margin: 0 0 26px;
}
.hero-title{ font-size: clamp(44px, 8vw, 84px); line-height: 1.02; margin: 0 0 28px; }
.hero-title .line{ display: block; }
.hero-sub{
  font-size: 18.5px; color: var(--muted); max-width: 560px; margin: 0 auto 42px;
}
.hero-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue{
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--faint);
}
.cue-line{ width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: cueMove 2s ease-in-out infinite; }
@keyframes cueMove{ 0%,100%{ opacity: .3; } 50%{ opacity: 1; } }

/* ---- Vision ---- */
.act-vision{ background: var(--ink); border-bottom: 1px solid var(--line-soft); text-align: center; }
.act-vision .act-content{ max-width: 760px; margin: 0 auto; }
.act-vision .act-h2{ margin: 0 auto 30px; }
.act-vision .act-lede{ margin: 0 auto; max-width: 620px; }

/* ---- Infrastructure ---- */
.infra-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.infra-stats{ display: flex; gap: 40px; margin: 40px 0 10px; flex-wrap: wrap; }
.istat{ display: flex; flex-direction: column; gap: 6px; }
.inum{ font-family: var(--f-display); font-size: 30px; color: var(--cyan); font-weight: 600; }
.ilabel{ font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }
.infra-note{ font-size: 12.5px; color: var(--faint); margin: 0; }

.infra-globe{ position: relative; aspect-ratio: 1; max-width: 480px; margin: 0 auto; width: 100%; }
.infra-globe canvas{ width: 100%; height: 100%; }

/* ---- Intelligence / terminal ---- */
.act-intel{ background: var(--ink); border-bottom: 1px solid var(--line-soft); position: relative; }
.scan-line{
  position: absolute; left: 0; right: 0; height: 1px; top: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .5; box-shadow: 0 0 20px var(--cyan);
  animation: scanMove 7s linear infinite;
}
@keyframes scanMove{ 0%{ top: 0; opacity: 0; } 5%{ opacity: .6; } 95%{ opacity: .6; } 100%{ top: 100%; opacity: 0; } }

.intel-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }

.terminal{
  background: var(--void); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.terminal-bar{
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--ink-2); border-bottom: 1px solid var(--line-soft);
}
.tdot{ width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .85; }
.terminal-title{ margin-left: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); }
.terminal-body{
  height: 320px; overflow: hidden; padding: 18px 20px;
  font-family: var(--f-mono); font-size: 13px; line-height: 1.9;
  display: flex; flex-direction: column-reverse;
}
.tline{ color: var(--muted); opacity: 0; animation: tlineIn .4s var(--ease) forwards; white-space: nowrap; }
.tline .t-tag{ color: var(--cyan); }
.tline .t-alert{ color: var(--gold); }
@keyframes tlineIn{ from{ opacity: 0; transform: translateY(4px); } to{ opacity: 1; transform: none; } }

/* ---- Protection ---- */
.act-protection{ text-align: center; }
.act-protection .act-h2{ margin-left: auto; margin-right: auto; }
.protect-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  margin-top: 60px; text-align: left;
}
.pcard{ background: var(--void); padding: 34px 28px; transition: background .25s var(--ease); }
.pcard:hover{ background: var(--ink); }
.picon{ color: var(--gold); display: inline-flex; margin-bottom: 20px; }
.pcard h3{ font-size: 17px; margin-bottom: 10px; }
.pcard p{ margin: 0; font-size: 14px; color: var(--muted); }

/* ---- Brand / Act VI ---- */
.act-brand{ background: var(--ink); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-align: center; }
.brand-wrap{ max-width: 760px; margin: 0 auto; }
.brand-wrap .act-h2{ margin-left: auto; margin-right: auto; }
.brand-quote{
  font-family: var(--f-display); font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.6; margin: 0 0 30px;
}
.brand-quote p{ margin: 0 0 8px; }
.brand-result{ color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ---- Acquire ---- */
.act-acquire{ padding-bottom: 130px; }
.acquire-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.acquire-list{ margin-top: 30px; }
.acquire-list li{
  padding: 13px 0; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 14.5px; display: flex; gap: 12px;
}
.acquire-list li:first-child{ border-top: none; padding-top: 0; }
.acquire-list li::before{ content: '◆'; color: var(--gold); font-size: 8px; line-height: 2.2; }

.acquire-card{
  background: linear-gradient(168deg, var(--ink-2), var(--ink));
  border: 1px solid var(--gold-line);
  border-radius: 6px; padding: 34px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
}
.ac-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ac-label{ font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--faint); }
.ac-status{ font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--cyan); display: flex; align-items: center; gap: 7px; }
.pip{ width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.ac-domain{ font-family: var(--f-display); font-weight: 600; font-size: 28px; margin: 0 0 6px; }
.ac-price{ font-family: var(--f-mono); font-size: 15px; color: var(--gold); margin: 0 0 26px; }
.ac-price span{ color: var(--faint); font-size: 12px; }

.ac-form .field{ margin-bottom: 16px; }
.ac-form label{ display: block; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.opt{ color: var(--faint); }
.ac-form input, .ac-form textarea{
  width: 100%; background: var(--void); border: 1px solid var(--line);
  border-radius: 3px; padding: 12px 13px; color: var(--text);
  font-family: var(--f-body); font-size: 14.5px;
  transition: border-color .18s var(--ease);
}
.ac-form input:focus, .ac-form textarea:focus{ outline: none; border-color: var(--gold); }
.ac-form textarea{ resize: vertical; }
.form-status{ margin: 14px 0 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--gold); min-height: 18px; }
.form-status.ok{ color: var(--cyan); }

.ac-alt{
  display: block; text-align: center; margin-top: 20px;
  font-family: var(--f-mono); font-size: 12px; color: var(--faint);
}
.ac-alt:hover{ color: var(--gold); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.ftr{ border-top: 1px solid var(--line-soft); padding: 34px 0; background: var(--ink); }
.ftr-row{ display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ftr-brand{ font-family: var(--f-display); font-weight: 600; color: var(--muted); font-size: 14px; }
.ftr-note{ font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); max-width: 500px; text-align: right; }

/* ---------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------- */
.rv{ opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.rv-on{ opacity: 1; transform: none; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px){
  .infra-grid, .intel-grid, .acquire-grid{ grid-template-columns: 1fr; gap: 44px; }
  .protect-grid{ grid-template-columns: repeat(2, 1fr); }
  .ftr-note{ text-align: left; }
}

@media (max-width: 720px){
  .nav{
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--void); border-bottom: 1px solid var(--line-soft);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .nav.open{ max-height: 320px; }
  .nav a{ padding: 16px 30px; width: 100%; border-top: 1px solid var(--line-soft); }
  .nav-cta{ margin: 14px 30px; }
  .nav-toggle{ display: flex; }

  .act{ padding: 100px 0; }
  .act-hero{ min-height: 92vh; }
  .protect-grid{ grid-template-columns: 1fr; }
  .infra-globe{ max-width: 320px; }
  .terminal-body{ height: 260px; }
}
