:root {
  --bg: #1a1c20;
  --bg2: #222529;
  --bg3: #2a2d32;
  --brass: #8B7346;
  --copper: #C87941;
  --gold: #DAA520;
  --patina: #5C8A6B;
  --red: #B54A3A;
  --cream: #FAF7F2;
  --parch: #EDE5D8;
  --muted: #8a8279;
  --line: rgba(139,115,70,.15);
  --max: 1120px;
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--cream);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* GRAIN */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .03;
  mix-blend-mode: overlay;
}

/* LABEL */
.label {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}

/* NAV */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(26,28,32,.82);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.topnav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topnav__brand {
  font-family: "Playfair Display", serif;
  font-weight: 700; font-size: 18px;
  display: flex; align-items: center; gap: 6px;
}
.topnav__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--brass), var(--copper));
  border-radius: 8px; font-size: 16px; font-weight: 700;
  font-family: "Inter", sans-serif;
}
.topnav__links { display: flex; gap: 28px; }
.topnav__links a {
  font-size: 13px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; transition: color .2s;
}
.topnav__links a:hover { color: var(--cream); }
.topnav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.topnav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--cream); border-radius: 1px; transition: .3s;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transform: scale(1.08);
  transition: transform 12s ease-out;
}
.hero.in-view .hero__img { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,28,32,.5) 0%, rgba(26,28,32,.3) 30%, rgba(26,28,32,.85) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(26,28,32,.9) 0%, transparent 60%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 560px;
}
.hero__badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(200,121,65,.3);
  border-radius: 100px;
  display: inline-block;
}
.hero__title { margin-bottom: 20px; }
.hero__line1 {
  display: block;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  color: var(--cream);
}
.hero__line2 {
  display: block;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 17px; color: rgba(250,247,242,.7);
  max-width: 440px; margin-bottom: 36px;
}
.hero__stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__val {
  font-family: "Playfair Display", serif;
  font-size: 22px; font-weight: 700; color: var(--brass);
}
.stat__label { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.hero__phone {
  position: absolute;
  right: max(6%, calc(50% - 540px));
  bottom: 60px;
  z-index: 2;
}
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* DEVICE */
.device {
  width: 280px;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.06),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.device__screen {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: #000;
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device--sm { width: 220px; border-radius: 36px; padding: 10px; }
.device--sm .device__screen { border-radius: 27px; }

/* ABOUT */
.about { padding: 120px 0; background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}
.about__text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--cream), var(--parch));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.about__text p { font-size: 16px; color: var(--muted); max-width: 480px; }
.era-stack {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.era-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 500;
  padding: 10px 20px;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 100px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  transition: transform .25s, background .25s;
}
.era-tag:hover {
  transform: translateY(-2px) scale(1.04);
  background: color-mix(in srgb, var(--c) 16%, transparent);
}

/* FEATURES */
.features {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features__title {
  font-size: clamp(32px, 4vw, 50px);
  margin-bottom: 56px;
}
.features__title br + * { color: var(--brass); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feat {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.feat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent, var(--brass)), transparent);
  opacity: 0; transition: opacity .3s;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(0,0,0,.4); }
.feat:hover::before { opacity: 1; }
.feat__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  margin-bottom: 20px;
}
.feat__icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.feat h3 { font-size: 20px; margin-bottom: 10px; font-family: "Inter", sans-serif; font-weight: 700; }
.feat p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* CAROUSEL */
.screens { padding: 120px 0 80px; background: var(--bg); }
.screens__title {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 48px;
}
.carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 24px 40px;
  cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:active { cursor: grabbing; }
.carousel__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 calc(50vw - 140px) 0 0;
}
.carousel__slide {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.carousel__slide:hover { transform: translateY(-6px); }
.carousel__caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* PRIVACY */
.privacy {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.privacy__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.privacy__header h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 16px;
}
.privacy__date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--copper);
}
.privacy__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.privacy__card {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.privacy__card h3 {
  font-family: "Inter", sans-serif; font-weight: 700;
  font-size: 15px; margin-bottom: 8px; color: var(--cream);
}
.privacy__card p { font-size: 14px; color: var(--muted); }

/* SUPPORT */
.support {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.support__main h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 12px; }
.support__main p { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.support__email {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--brass);
  padding: 12px 24px;
  border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent);
  border-radius: 100px;
  transition: background .2s, color .2s;
}
.support__email:hover {
  background: var(--brass);
  color: var(--bg);
}
.support__faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.support__faq summary {
  font-weight: 600; font-size: 15px;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--cream);
  transition: color .2s;
}
.support__faq summary:hover { color: var(--brass); }
.support__faq summary::after {
  content: "+"; font-size: 20px; font-weight: 300;
  color: var(--muted); transition: transform .3s;
}
.support__faq details[open] summary::after { transform: rotate(45deg); }
.support__faq summary::-webkit-details-marker { display: none; }
.support__faq p { font-size: 14px; color: var(--muted); padding-top: 10px; line-height: 1.7; }

/* FOOTER */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer__brand {
  font-family: "Playfair Display", serif;
  font-weight: 700; font-size: 16px;
  color: var(--brass);
}
.footer__copy { font-size: 13px; color: var(--muted); }

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-phone {
  opacity: 0;
  transform: translateY(40px) scale(.95);
  transition: opacity .9s cubic-bezier(.22,1,.36,1) .2s, transform .9s cubic-bezier(.22,1,.36,1) .2s;
}
.reveal-phone.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__phone { display: none; }
  .hero__content { max-width: 100%; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .privacy__grid { grid-template-columns: 1fr; }
  .privacy__body { grid-template-columns: 1fr; }
  .support__grid { grid-template-columns: 1fr; gap: 40px; }
  .features__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topnav__links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(26,28,32,.96);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .topnav__links.open { display: flex; }
  .topnav__toggle { display: flex; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .about, .features, .screens, .privacy, .support { padding: 80px 0; }
  .hero__scroll { display: none; }
}
