/* ════════════════════════════════════════════════════════════════════════
   attoh.tech — Futuristic showpiece styles
   Tier above attoh.digital · the proof of what's under the hood
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-0:    #030310;   /* deepest */
  --bg-1:    #050510;   /* base */
  --bg-2:    #0a0a1c;   /* surface */
  --bg-3:    #11112a;   /* elevated */
  --border:  #1a1a35;
  --bdim:    #0f0f24;

  --fg:      #e8ecf5;
  --fg2:     #9ba3b8;
  --fg3:     #5a6377;

  --gold:    #D4A843;          /* AMAYA continuity */
  --gold-2:  #E8C76A;
  --gold-dim:rgba(212,168,67,.10);
  --gold-mid:rgba(212,168,67,.28);

  --cyan:    #00e5ff;           /* tech accent */
  --cyan-2:  #7ff0ff;
  --cyan-dim:rgba(0,229,255,.08);
  --cyan-mid:rgba(0,229,255,.30);

  --lav:     #c084fc;           /* AI accent */
  --lav-dim: rgba(192,132,252,.10);

  --red:     #f87171;
  --green:   #4ade80;

  --fd: 'Syne', sans-serif;
  --fb: 'Inter', sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

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

body {
  margin: 0;
  font-family: var(--fb);
  background: var(--bg-1);
  color: var(--fg);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Mesh gradient background base */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,   rgba(0,229,255,0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%,  rgba(212,168,67,0.06), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(192,132,252,0.06), transparent 60%);
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
}

main, nav, footer { position: relative; z-index: 2; }

/* ─── NAV ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(5,5,16,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.brand .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 20px rgba(0,229,255,0.3);
  animation: pulse 2.4s var(--ease) infinite;
}
.brand .accent { color: var(--cyan); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.78); }
}
.nav-r {
  display: flex; align-items: center; gap: 1.6rem;
}
.nav-link {
  color: var(--fg2);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .04em;
  transition: color .15s var(--ease);
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--bg-1);
  font-family: var(--fd);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .65rem 1.3rem;
  border-radius: 3px;
  text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,67,0.35);
}

/* ─── CONTAINER ─────────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 0 4rem;
}
.eyebrow {
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--cyan);
}
.eyebrow .live-tag {
  background: rgba(0,229,255,.15);
  border: 1px solid var(--cyan-mid);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: .58rem;
  letter-spacing: .15em;
  color: var(--cyan);
  margin-left: .5rem;
}
.eyebrow .live-tag::before {
  content: '●';
  margin-right: 4px;
  animation: pulse 1.6s var(--ease) infinite;
}

h1.display {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}
h1.display em {
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan) 0%, var(--gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--fg2);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 2.5rem;
  font-weight: 300;
}
.lede strong { color: var(--fg); font-weight: 500; }

.cta-row {
  display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 3rem;
}
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.7rem;
  font-family: var(--fd);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  cursor: pointer;
  border-radius: 2px;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg-1);
  box-shadow: 0 0 0 1px var(--cyan-mid), 0 6px 24px rgba(0,229,255,0.18);
}
.btn-primary:hover {
  background: var(--cyan-2);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--cyan), 0 10px 32px rgba(0,229,255,0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--fg2); background: rgba(255,255,255,0.03); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--bg-1);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,168,67,0.32); }

/* ─── Hero stats marquee ────────────────────────────────────────────── */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1rem;
}
.stat {
  background: var(--bg-2);
  padding: 1.5rem 1.25rem;
  position: relative;
}
.stat .n {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}
.stat .n.gold { color: var(--gold); }
.stat .n.lav  { color: var(--lav); }
.stat .l {
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-top: .55rem;
  line-height: 1.4;
}
@media (max-width: 980px) { .stat-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }

/* ─── SECTION layout ────────────────────────────────────────────────── */
section.bay { padding: 5rem 0; position: relative; }
section.bay + section.bay { border-top: 1px solid var(--border); }

h2.section-h {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 22ch;
}
h2.section-h em {
  font-style: normal;
  color: var(--cyan);
}
.section-sub {
  font-size: 1rem;
  color: var(--fg2);
  font-weight: 300;
  max-width: 60ch;
  margin: 0 0 2.5rem;
  line-height: 1.65;
}

/* ─── STACK DIAGRAM (4 layers) ──────────────────────────────────────── */
.stack {
  display: grid; gap: 12px;
}
.layer {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all .25s var(--ease);
}
.layer:hover {
  border-color: var(--cyan-mid);
  border-left-color: var(--cyan-2);
  background: var(--bg-3);
}
.layer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-mid) 50%, transparent);
  opacity: .3;
}
.layer-num {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--cyan);
  line-height: 1;
}
.layer.l-founder    { border-left-color: var(--gold); }
.layer.l-founder .layer-num    { color: var(--gold); }
.layer.l-india      { border-left-color: var(--lav); }
.layer.l-india .layer-num      { color: var(--lav); }
.layer.l-agents     { border-left-color: var(--cyan); }
.layer.l-sector     { border-left-color: var(--green); }
.layer.l-sector .layer-num     { color: var(--green); }
.layer-body h3 {
  margin: 0 0 .35rem;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.15rem;
}
.layer-body p {
  margin: 0;
  color: var(--fg2);
  font-size: .92rem;
  line-height: 1.55;
}
.layer-meta {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fg3);
  text-align: right;
}
.layer-meta .pct {
  display: block;
  color: var(--fg);
  font-family: var(--fd);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
@media (max-width: 780px) {
  .layer { grid-template-columns: 60px 1fr; }
  .layer-meta { grid-column: 1 / -1; text-align: left; padding-top: .6rem; border-top: 1px solid var(--border); }
}

/* ─── AGENT CLUSTERS GRID ───────────────────────────────────────────── */
.clusters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.cluster {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all .2s var(--ease);
}
.cluster:hover { border-color: var(--cyan-mid); transform: translateY(-2px); }
.cluster .badge {
  font-family: var(--fm);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.cluster .badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
}
.cluster h4 {
  margin: 0 0 .5rem;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.05rem;
}
.cluster .count {
  font-family: var(--fm);
  font-size: .72rem;
  color: var(--fg3);
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.cluster .count strong { color: var(--gold); font-weight: 600; }
.cluster ul {
  margin: 0; padding: 0; list-style: none;
}
.cluster li {
  font-family: var(--fm);
  font-size: .78rem;
  color: var(--fg2);
  padding: .3rem 0;
  border-bottom: 1px solid var(--bdim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cluster li:last-child { border-bottom: none; }
.cluster li .role {
  font-size: .58rem;
  color: var(--fg3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ─── LIVE FEED (terminal style) ────────────────────────────────────── */
.terminal {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  font-family: var(--fm);
  font-size: .82rem;
  line-height: 1.7;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}
.terminal::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg-0));
  pointer-events: none;
  z-index: 2;
}
.terminal-head {
  display: flex; gap: .35rem; margin-bottom: 1rem;
}
.terminal-head span {
  width: 11px; height: 11px; border-radius: 50%;
}
.terminal-head span:nth-child(1) { background: #fb7185; }
.terminal-head span:nth-child(2) { background: #fbbf24; }
.terminal-head span:nth-child(3) { background: var(--green); }
#live-feed { padding: 0; margin: 0; list-style: none; }
#live-feed li {
  display: grid;
  grid-template-columns: 90px 110px 1fr;
  gap: 1rem;
  padding: 3px 0;
  color: var(--fg2);
  animation: feed-in .4s var(--ease);
}
@keyframes feed-in { from { opacity:0; transform: translateY(6px);} to {opacity:1; transform:translateY(0);} }
#live-feed .ts { color: var(--fg3); font-size: .72rem; }
#live-feed .agent { color: var(--cyan); font-weight: 500; font-size: .78rem; }
#live-feed .msg { color: var(--fg); font-size: .8rem; }
#live-feed .ok    { color: var(--green); }
#live-feed .warn  { color: #fbbf24; }
#live-feed .info  { color: var(--lav); }

/* ─── INTEL CARDS ────────────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.intel-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.6rem 1.7rem;
  border-radius: 4px;
  position: relative;
}
.intel-card .num {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 1rem;
}
.intel-card .num strong { color: var(--cyan); }
.intel-card h3,
.intel-card h4 {
  margin: 0 0 .6rem;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.1rem;
}
.intel-card p {
  margin: 0;
  color: var(--fg2);
  font-size: .9rem;
  line-height: 1.6;
}

/* ─── CODE BLOCKS ────────────────────────────────────────────────────── */
.codeblock {
  background: var(--bg-0);
  border: 1px solid var(--border);
  padding: 1.3rem 1.6rem;
  font-family: var(--fm);
  font-size: .82rem;
  line-height: 1.7;
  border-radius: 4px;
  overflow-x: auto;
  color: var(--fg2);
  margin: 1.25rem 0;
}
.codeblock .k { color: var(--cyan); }
.codeblock .s { color: var(--gold); }
.codeblock .n { color: var(--lav); }
.codeblock .c { color: var(--fg3); font-style: italic; }
.codeblock .o { color: var(--fg); }

/* ─── VERTICALS RAIL ─────────────────────────────────────────────────── */
.rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.vertical {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.4rem 1.4rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.vertical .idx {
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--fg3);
}
.vertical h5 {
  margin: .6rem 0 .4rem;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
}
.vertical p {
  margin: 0;
  font-size: .8rem;
  color: var(--fg2);
  line-height: 1.55;
}
.vertical .stage {
  margin-top: .9rem;
  font-family: var(--fm);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ─── PROOF PANEL ────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 880px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-list {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.6rem 1.8rem;
  border-radius: 4px;
}
.proof-list h3,
.proof-list h4 {
  margin: 0 0 1rem;
  font-family: var(--fd);
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: .02em;
}
.proof-list table {
  width: 100%; border-collapse: collapse;
}
.proof-list td {
  padding: .55rem 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--bdim);
}
.proof-list tr:last-child td { border-bottom: none; }
.proof-list td:first-child { color: var(--fg2); }
.proof-list td:last-child {
  text-align: right;
  font-family: var(--fm);
  color: var(--fg);
  font-weight: 500;
}
.proof-list td.ok  { color: var(--green); }
.proof-list td.warn { color: #fbbf24; }

/* ─── FOR PARTNERS panel ────────────────────────────────────────────── */
.partners-pitch {
  background:
    linear-gradient(135deg, rgba(0,229,255,0.06), rgba(212,168,67,0.04)),
    var(--bg-2);
  border: 1px solid var(--cyan-mid);
  padding: 2.5rem;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.partners-pitch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(0,229,255,0.12), transparent 50%);
  pointer-events: none;
}
.partners-pitch h3 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 1rem;
  letter-spacing: -.015em;
}
.partners-pitch h3 em {
  font-style: normal;
  color: var(--cyan);
}
.partners-pitch p {
  color: var(--fg);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 64ch;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.foot h3,
.foot h6 {
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}
.foot ul { padding: 0; margin: 0; list-style: none; }
.foot li { padding: .25rem 0; }
.foot a { color: var(--fg2); text-decoration: none; font-size: .85rem; transition: color .15s var(--ease); }
.foot a:hover { color: var(--fg); }
.foot p { color: var(--fg2); font-size: .85rem; line-height: 1.6; }
.foot-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--fm);
  font-size: .68rem;
  color: var(--fg3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ─── REVEAL ON SCROLL ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand .dot, .eyebrow .live-tag::before, #live-feed li { animation: none; }
  #particles-canvas { display: none; }
}

/* ─── ARCHITECTURE LINKS ─────────────────────────────────────────────── */
.arch-links {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin-top: 1.5rem;
}
.arch-pill {
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--fg2);
  border-radius: 20px;
  text-decoration: none;
  transition: all .15s var(--ease);
}
.arch-pill:hover {
  border-color: var(--cyan-mid);
  color: var(--fg);
  background: var(--bg-3);
}

/* ─── SCROLLBAR ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bdim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ─── ADVICE BOUNDARY ────────────────────────────────────────────────── */
.boundary {
  background: rgba(248,113,113,.04);
  border-top: 1px solid rgba(248,113,113,.18);
  border-bottom: 1px solid rgba(248,113,113,.18);
  padding: 1rem 2rem;
  text-align: center;
  font-family: var(--fm);
  font-size: .72rem;
  color: var(--red);
  letter-spacing: .08em;
  text-transform: uppercase;
}
