:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --ink: #f8fafc;
  --muted: rgba(248, 250, 252, 0.62);
  --muted-soft: rgba(248, 250, 252, 0.42);
  --gold: #d4af37;
  --gold-bright: #e8c547;
  --gold-light: #f5e6b8;
  --border: rgba(212, 175, 55, 0.22);
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --phone-w: min(260px, 42vw);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

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

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

/* Ambient glow */
.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: glowPulse 8s var(--ease) infinite alternate;
}

.glow-a {
  width: 52vw;
  height: 52vw;
  max-width: 560px;
  max-height: 560px;
  top: -12%;
  left: -8%;
  background: rgba(212, 175, 55, 0.28);
}

.glow-b {
  width: 40vw;
  height: 40vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 10%;
  right: -10%;
  background: rgba(168, 132, 26, 0.22);
  animation-delay: -3s;
}

@keyframes glowPulse {
  from { opacity: 0.22; transform: scale(1); }
  to { opacity: 0.4; transform: scale(1.08); }
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.header-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.header-cta:hover {
  border-color: rgba(232, 197, 71, 0.55);
  background: rgba(232, 197, 71, 0.08);
}

/* Hero — one composition */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(48px, 8vw, 80px);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
}

.hero-copy,
.hero-phones {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  animation: riseIn 0.8s var(--ease) both;
}

.brand-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.wordmark {
  margin: 0;
  font-size: clamp(40px, 6.5vw, 64px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1;
}

.hero-line {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
  max-width: 18ch;
  animation: riseIn 0.8s var(--ease) 0.08s both;
}

.hero-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 36ch;
  animation: riseIn 0.8s var(--ease) 0.14s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  animation: riseIn 0.8s var(--ease) 0.2s both;
}

.cta-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1408;
  background: linear-gradient(150deg, #f4d873 0%, #e8c14a 42%, #b8891d 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 248, 220, 0.45);
  box-shadow: 0 10px 28px rgba(168, 132, 26, 0.35);
}

.cta-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-soft);
}

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: min(72vh, 640px);
  perspective: 1200px;
}

.phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--phone-w) * 0.11);
  overflow: hidden;
  border: 1px solid rgba(245, 230, 184, 0.18);
  background: transparent;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-phones .phone-back {
  --phone-w: min(220px, 34vw);
  transform: translate(18%, -4%) rotate(-8deg);
  opacity: 0.88;
  z-index: 1;
  animation: phoneIn 0.95s var(--ease) 0.12s both;
}

.hero-phones .phone-front {
  --phone-w: min(280px, 44vw);
  transform: translate(-10%, 2%) rotate(3deg);
  z-index: 2;
  animation: phoneIn 0.95s var(--ease) 0.22s both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
  }
}

.hero-phones .phone-back {
  animation-name: phoneInBack;
}

.hero-phones .phone-front {
  animation-name: phoneInFront;
}

@keyframes phoneInBack {
  from {
    opacity: 0;
    transform: translate(18%, 20%) rotate(-8deg);
  }
  to {
    opacity: 0.88;
    transform: translate(18%, -4%) rotate(-8deg);
  }
}

@keyframes phoneInFront {
  from {
    opacity: 0;
    transform: translate(-10%, 28%) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translate(-10%, 2%) rotate(3deg);
  }
}

/* Gallery */
.gallery {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 10vw, 96px) 0 clamp(40px, 6vw, 64px);
}

.section-head {
  padding: 0 clamp(20px, 4vw, 48px);
  margin-bottom: 28px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.7px;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px clamp(20px, 4vw, 48px) 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.gallery-item {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(240px, 68vw);
}

.gallery-item .phone {
  --phone-w: 100%;
  width: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.gallery-item:hover .phone {
  transform: translateY(-8px);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.65));
}

.gallery-item figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 48px) clamp(64px, 10vw, 100px);
  max-width: 880px;
  margin: 0 auto;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 16px 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-list strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

.feature-list span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  color: var(--muted-soft);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.copy {
  margin: 0 0 0 auto;
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    padding: 16px clamp(16px, 4vw, 28px);
    padding-top: max(16px, env(safe-area-inset-top));
    width: 100%;
    max-width: 100%;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    width: 100%;
    max-width: 100%;
    padding: 8px clamp(16px, 4vw, 28px) clamp(36px, 8vw, 56px);
    gap: 28px;
    overflow: hidden;
    justify-items: center;
  }

  .brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 14px;
    margin-bottom: 16px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 4px;
  }

  .wordmark {
    font-size: clamp(34px, 10vw, 52px);
    letter-spacing: -1px;
    text-align: center;
    width: 100%;
    margin-inline: auto;
  }

  .hero-line {
    font-size: clamp(18px, 5vw, 24px);
    max-width: min(20ch, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-sub {
    font-size: 15px;
    max-width: min(34ch, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 22px;
    text-align: center;
  }

  .cta-row {
    display: flex;
    flex-direction: column;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    align-self: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .cta-soon,
  .cta-note {
    display: inline-flex;
    text-align: center;
    margin-inline: auto;
  }

  .cta-note {
    width: auto;
  }

  .hero-phones {
    min-height: auto;
    height: min(58vw, 420px);
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-inline: 0;
    overflow: hidden;
    perspective: none;
  }

  .hero-phones .phone-back {
    --phone-w: min(148px, 34vw);
    transform: translate(10%, -2%) rotate(-6deg);
    animation: none;
    opacity: 0.88;
  }

  .hero-phones .phone-front {
    --phone-w: min(188px, 44vw);
    transform: translate(-6%, 2%) rotate(2deg);
    animation: none;
  }

  .gallery {
    padding-top: clamp(40px, 8vw, 64px);
  }

  .section-head {
    padding: 0 clamp(16px, 4vw, 28px);
    margin-bottom: 20px;
  }

  .gallery-track {
    gap: 14px;
    padding: 8px clamp(16px, 4vw, 28px) 24px;
    scroll-padding-inline: clamp(16px, 4vw, 28px);
  }

  .gallery-item {
    width: min(200px, 58vw);
  }

  .features {
    padding: clamp(32px, 8vw, 56px) clamp(16px, 4vw, 28px) clamp(48px, 10vw, 72px);
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px clamp(16px, 4vw, 28px) max(28px, env(safe-area-inset-bottom));
  }

  .copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 14px;
    gap: 8px;
  }

  .logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .header-cta {
    font-size: 12px;
    padding: 7px 12px;
  }

  .brand-icon {
    width: 68px;
    height: 68px;
    border-radius: 17px;
  }

  .brand-lockup {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero {
    gap: 22px;
    padding-bottom: 28px;
  }

  .hero-line {
    margin-bottom: 10px;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .cta-soon {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .cta-note {
    font-size: 12px;
  }

  .hero-phones {
    height: min(68vw, 340px);
  }

  .hero-phones .phone-back {
    --phone-w: min(128px, 34vw);
    transform: translate(8%, -2%) rotate(-6deg);
  }

  .hero-phones .phone-front {
    --phone-w: min(164px, 44vw);
    transform: translate(-5%, 3%) rotate(2deg);
  }

  .section-head h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .section-lead {
    font-size: 14px;
  }

  .gallery-item {
    width: min(180px, 62vw);
  }

  .gallery-item figcaption {
    margin-top: 10px;
    font-size: 12px;
  }

  .gallery-item:hover .phone {
    transform: none;
    filter: none;
  }

  .feature-list strong,
  .feature-list span {
    font-size: 14px;
  }

  .site-footer {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .wordmark {
    font-size: 30px;
  }

  .hero-phones .phone-back {
    --phone-w: 112px;
  }

  .hero-phones .phone-front {
    --phone-w: 144px;
  }

  .gallery-item {
    width: 70vw;
  }
}

@media (hover: none) {
  .gallery-item:hover .phone {
    transform: none;
    filter: none;
  }

  .header-cta:hover {
    border-color: var(--border);
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
