@import './tokens.css';

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-color: #080808;
  background-image:
    radial-gradient(ellipse 120% 85% at 70% 0%, rgba(230, 179, 37, 0.55) 0%, rgba(184, 137, 18, 0.28) 35%, transparent 65%),
    radial-gradient(ellipse 80% 55% at 20% 10%, rgba(230, 179, 37, 0.18) 0%, transparent 55%);
  background-attachment: scroll;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (min-width: 960px) {
  body {
    background-attachment: fixed;
  }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .container {
    width: min(100% - 2.5rem, var(--container));
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: clamp(3.5rem, 8vw, var(--space-9)) 0;
  position: relative;
  overflow-x: clip;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 5vw, var(--space-7));
}

@media (max-width: 719px) {
  .section-head {
    text-align: center;
    margin-inline: auto;
  }

  .section-head .eyebrow {
    justify-content: center;
  }
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 0.75rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #111;
  box-shadow: 0 10px 30px rgba(230, 179, 37, 0.22);
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(230, 179, 37, 0.45);
  background: rgba(230, 179, 37, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 420px) {
  .hero__actions .btn,
  .download-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 0;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(9, 9, 9, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.nav-actions .btn {
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.menu-toggle {
  position: relative;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 340px);
  height: 100%;
  background: #0d0d0d;
  border-left: 1px solid var(--border-subtle);
  padding: 6rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(18px);
  transition: transform 0.3s var(--ease);
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__panel a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mobile-drawer__cta {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}

.mobile-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mobile-social a,
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-social a i,
.social-row a i {
  font-size: 0.92rem;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-social a:hover,
.social-row a:hover {
  color: var(--gold);
  border-color: var(--border);
}

@media (min-width: 900px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.5rem) 0 3rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: -20% -25% -10% -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 214, 90, 0.45) 0%, rgba(230, 179, 37, 0.22) 35%, transparent 65%);
  filter: blur(2px);
  pointer-events: none;
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(8, 8, 8, 0.65) 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.hero__copy {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__copy .eyebrow {
  justify-content: center;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0.35rem 0 0.85rem;
}

.hero__brand span {
  color: var(--gold);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  max-width: 18ch;
}

.hero__support {
  margin-top: 0.85rem;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  padding-inline: 0.25rem;
}

.hero__actions {
  margin-top: 1.1rem;
  margin-bottom: 0.15rem;
  justify-content: center;
  width: 100%;
}

.hero__visual {
  position: relative;
  justify-self: center;
  align-self: center;
  width: min(88vw, 360px);
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  animation: floatY 7s var(--ease) infinite;
}

.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  }

  .hero__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .hero__copy {
    justify-self: center;
  }

  .hero__visual {
    width: min(100%, 480px);
    justify-self: center;
  }
}

/* About */
.about {
  position: relative;
}

.about-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: clamp(20px, 4vw, 28px);
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background:
    radial-gradient(ellipse 80% 70% at 90% 20%, rgba(230, 179, 37, 0.28), transparent 55%),
    radial-gradient(ellipse at top left, rgba(230, 179, 37, 0.14), transparent 50%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.about-panel .eyebrow {
  justify-content: center;
}

.about-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0.5rem 0 0.85rem;
}

.about-panel p {
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .about-panel {
    grid-template-columns: 1.2fr 0.8fr;
    justify-items: stretch;
    text-align: left;
  }

  .about-panel .eyebrow {
    justify-content: flex-start;
  }

  .about-panel p {
    margin-inline: 0;
  }
}

/* Products / Services */
.products {
  background:
    radial-gradient(ellipse at top center, rgba(230, 179, 37, 0.12), transparent 45%),
    transparent;
}

.product-grid {
  display: grid;
  gap: 1rem;
}

.product {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.product:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(230, 179, 37, 0.08), rgba(255, 255, 255, 0.02));
}

.product__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(230, 179, 37, 0.12);
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.product__icon svg {
  width: 24px;
  height: 24px;
}

.product h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.product p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Proof */
.proof-strip {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--space-7);
}

.stat {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  color: var(--gold);
}

.stat span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .proof-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.results-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.results-rail::-webkit-scrollbar {
  height: 6px;
}

.results-rail::-webkit-scrollbar-thumb {
  background: rgba(230, 179, 37, 0.35);
  border-radius: 999px;
}

.result-card {
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.result-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.quotes {
  display: grid;
  gap: 1rem;
  margin-top: var(--space-7);
}

.quote {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  background: var(--surface);
}

.quote p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.quote footer {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.quote strong {
  color: var(--gold);
  font-weight: 600;
}

@media (min-width: 900px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Download */
.download {
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0% auto auto 50%;
  width: 90%;
  height: 85%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(230, 179, 37, 0.45), transparent 62%);
  pointer-events: none;
}

.download-panel {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: clamp(20px, 4vw, 28px);
  padding: clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at bottom right, rgba(230, 179, 37, 0.35), transparent 48%),
    linear-gradient(135deg, rgba(230, 179, 37, 0.16), transparent 42%),
    rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(8px);
}

.download-panel .eyebrow {
  justify-content: center;
}

.download-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.6rem 0 0.85rem;
}

.download-panel > div p {
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
}

.download-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
  justify-items: center;
}

.download-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.download-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.download-actions {
  margin-top: 1.75rem;
}

.download-visual,
.about-panel .download-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 260px);
}

.about-visual {
  width: min(100%, 280px);
}

.download-visual img,
.about-panel .download-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
}

.about-visual img {
  border-radius: 20px;
}

@media (min-width: 900px) {
  .download-panel {
    grid-template-columns: 1.05fr 0.95fr;
    justify-items: stretch;
    text-align: left;
    gap: 2rem;
  }

  .download-panel .eyebrow {
    justify-content: flex-start;
  }

  .download-panel > div p {
    margin-inline: 0;
  }

  .download-list {
    justify-items: start;
  }

  .download-visual {
    justify-self: end;
    width: min(100%, 380px);
  }

  .about-panel .download-visual,
  .about-visual {
    justify-self: end;
    width: min(100%, 320px);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-8) 0 var(--space-6);
  background: #070707;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 28ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.social-row {
  display: flex;
  gap: 0.65rem;
}

.compliance {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: var(--space-7);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.compliance img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.compliance strong {
  display: block;
  font-size: 0.88rem;
}

.compliance span {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-bottom a:hover {
  color: var(--gold);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* Legal / FAQ pages */
.page-main {
  padding: calc(var(--header-h) + 2.5rem) 0 var(--space-8);
}

.page-main h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.legal-body,
.faq-body {
  max-width: 760px;
}

.legal-body h2,
.legal-body h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.65rem;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.legal-body ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  border-color: var(--border);
}

.faq-item p {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-muted);
}

.faq-contact {
  margin-top: 2rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__visual {
    animation: none !important;
    transform: none;
  }

  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
