:root {
  --bg: #030303;
  --bg-soft: #080808;
  --panel: #0f0f0f;
  --panel-2: #151515;
  --gold: #d4af37;
  --gold-light: #f6c94c;
  --cyan: #16d6ff;
  --text: #ffffff;
  --muted: #bdbdbd;
  --line: rgba(212, 175, 55, 0.24);
  --container: 1240px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.page-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.ace-avatar-mini {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(212, 175, 55, 0.18), transparent),
    #090909;
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.18);
}

.brand-copy strong {
  display: block;
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 18px;
}

.brand-copy small {
  display: block;
  color: #777;
  letter-spacing: 1.7px;
  font-size: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #b8b8b8;
  font-size: 14px;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-picker { position: relative; }

.icon-button,
.menu-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0b;
  color: #fff;
}

.icon-button { padding: 0 13px; }

.language-menu {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 185px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: var(--shadow);
  display: none;
}

.language-menu.open { display: block; }

.language-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #ddd;
  text-align: left;
}

.language-menu button:hover {
  background: rgba(212, 175, 55, 0.09);
  color: #fff;
}

.nav-cta {
  padding: 11px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
}

.menu-button {
  width: 44px;
  padding: 9px;
  display: none;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
}

.hero {
  min-height: 100vh;
  padding: 138px 0 92px;
  position: relative;
  isolation: isolate;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.24), transparent 34%),
    radial-gradient(circle at 15% 82%, rgba(22, 214, 255, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 50px 50px, 50px 50px;
}

.hero-layout {
  min-height: calc(100vh - 230px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold-light);
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 18px var(--gold-light);
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(50px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -2px;
}

h1 span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.24);
}

.hero-lead {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 900;
}

.hero-support {
  margin: 0 0 30px;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 580px;
}

.lead-form input {
  min-width: 0;
  padding: 17px 18px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  outline: none;
}

.lead-form input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.09);
}

.lead-form button {
  min-width: 190px;
  padding: 17px 22px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #080808;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.2);
  transition: 0.22s ease;
}

.lead-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(212, 175, 55, 0.28);
}

.form-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--gold-light);
  font-size: 13px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 13px;
  color: #8f8f8f;
  font-size: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badges span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d8d8d8;
  font-size: 12px;
}

.hero-visual { position: relative; }

.visual-frame {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    #090909;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.66), 0 0 64px rgba(212, 175, 55, 0.13);
}

.visual-frame img {
  width: 100%;
  border-radius: 18px;
}

.visual-topbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 10px;
}

.visual-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4e4e4e;
}

.visual-topbar p {
  margin: 0 0 0 auto;
  color: #666;
  font-size: 10px;
  letter-spacing: 1.4px;
}

.floating-card {
  position: absolute;
  min-width: 220px;
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.floating-card small {
  display: block;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-bottom: 4px;
}

.floating-card strong { font-size: 13px; }

.card-create { top: 16%; left: -10%; }
.card-automate { right: -8%; bottom: 18%; }
.card-grow { left: 7%; bottom: -5%; }

section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 16px;
  text-align: center;
  color: var(--gold);
  font-size: clamp(34px, 5vw, 56px);
}

.section-subtitle {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  padding: 26px;
  min-height: 220px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 201, 76, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--gold-light);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contrast-section {
  background: linear-gradient(180deg, #050505, #0b0b0b);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  gap: 22px;
  align-items: stretch;
}

.comparison-card {
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.muted-card { opacity: 0.78; }
.bright-card { box-shadow: 0 0 45px rgba(212, 175, 55, 0.11); }

.comparison-card h3 {
  margin: 0 0 16px;
  color: var(--gold-light);
}

.comparison-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #ddd;
}

.comparison-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 40px;
}

.method-letter {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 26px;
  font-weight: 900;
}

.roadmap-section { background: #050505; }

.roadmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.roadmap-step {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
}

.roadmap-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-weight: 900;
}

.roadmap-step h3 { margin: 26px 0 8px; }

.roadmap-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.global-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #050505, #0b0b0b);
}

.global-section::before {
  content: "THE AI ACE";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(212, 175, 55, 0.035);
  font-size: clamp(70px, 14vw, 190px);
  font-weight: 900;
  white-space: nowrap;
}

.flags {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 26px;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.stat-card {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-card strong {
  display: block;
  color: var(--gold-light);
  font-size: 34px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.cta-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.91)),
    url("../assets/images/the-ai-ace-hero.png") center / cover;
}

.cta-box {
  max-width: 820px;
  margin: auto;
  padding: 48px;
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(0, 0, 0, 0.76);
  box-shadow: var(--shadow);
}

.cta-form { margin: auto; }

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: #8e8e8e;
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 9px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.94);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}

.assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 90;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: 0.25s ease;
}

.assistant-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.assistant-header {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.assistant-header strong {
  display: block;
  color: var(--gold-light);
  font-size: 18px;
}

.assistant-header small { color: var(--muted); }

.assistant-close {
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 26px;
}

.assistant-body { padding: 18px; }

.assistant-body p {
  margin: 0 0 16px;
  color: #ddd;
}

.assistant-options {
  display: grid;
  gap: 10px;
}

.assistant-options button {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101010;
  color: #fff;
  text-align: left;
}

.assistant-options button:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.assistant-response {
  min-height: 24px;
  margin-top: 14px;
  color: var(--gold-light);
  font-size: 14px;
}

.ace-character {
  position: relative;
  width: 70px;
  height: 78px;
}

.ace-head {
  position: absolute;
  left: 14px;
  top: 0;
  width: 42px;
  height: 46px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(145deg, var(--gold-light), #8c6710);
  color: #090909;
  font-weight: 900;
  padding-top: 14px;
}

.ace-eye {
  position: absolute;
  top: 27px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #030303;
}

.eye-left { left: 28px; }
.eye-right { left: 39px; }

.ace-body {
  position: absolute;
  left: 20px;
  top: 43px;
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: #131313;
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 900;
}

.ace-arm,
.ace-leg {
  position: absolute;
  width: 4px;
  border-radius: 4px;
  background: var(--gold);
  transform-origin: top;
}

.ace-arm { height: 24px; top: 47px; }
.arm-left { left: 16px; transform: rotate(28deg); }
.arm-right { right: 16px; transform: rotate(-28deg); }

.ace-leg { height: 15px; top: 65px; }
.leg-left { left: 28px; transform: rotate(8deg); }
.leg-right { right: 28px; transform: rotate(-8deg); }

.page-shell.light {
  --bg: #f7f4eb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1ede3;
  --text: #151515;
  --muted: #5d5d5d;
  --line: rgba(130, 98, 0, 0.22);
}

.page-shell.light .site-header {
  background: rgba(247, 244, 235, 0.9);
}

.page-shell.light .icon-button,
.page-shell.light .menu-button {
  background: #fff;
  color: #111;
}

.page-shell.light .language-menu {
  background: #fff;
}

.page-shell.light .lead-form input {
  background: #fff;
  color: #111;
}

.page-shell.light .feature-card,
.page-shell.light .comparison-card,
.page-shell.light .roadmap-step,
.page-shell.light .stat-card {
  background: #fff;
}

.page-shell.light .assistant-panel,
.page-shell.light .assistant-launcher {
  background: rgba(255, 255, 255, 0.98);
  color: #111;
}

.page-shell.light .assistant-options button {
  background: #fff;
  color: #111;
}
