/* ===== Base ===== */
:root {
  --bg: #0E0E10;          /* near black */
  --bg-2: #7A0F14;        /* deep red band (marquee, gallery, footer) */
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.10);
  --text: #FFFFFF;
  --muted: rgba(237, 237, 237, 0.72);  /* neutral #EDEDED, softened */
  --accent: #D71A21;      /* red */
  --accent-2: #F5B800;    /* gold */
  --accent-3: #FFD84D;    /* gold highlight */
  --radius: 22px;
  --container: 1320px;   /* wider layout */
  --shadow: 0 30px 80px -20px rgba(215, 26, 33, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .logo span { font-family: "Outfit", "Inter", sans-serif; letter-spacing: -0.02em; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }

/* ===== Background blobs ===== */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 480px; height: 480px; background: var(--accent); top: -120px; left: -100px; }
.b2 { width: 420px; height: 420px; background: var(--accent-2); top: 30%; right: -120px; animation-delay: -6s; }
.b3 { width: 380px; height: 380px; background: var(--accent-3); bottom: -100px; left: 30%; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 14, 16, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; }
.logo img { height: 42px; width: auto; border-radius: 10px; }
.logo.small img { height: 32px; }
.logo.small { font-size: 1.05rem; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .3s, box-shadow .3s, background .3s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  color: var(--bg); box-shadow: 0 14px 40px -10px rgba(245, 184, 0, 0.6);
}
.btn-primary:hover { box-shadow: 0 20px 50px -8px rgba(215, 26, 33, 0.6); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 10px 20px; font-size: .9rem; }
.shimmer::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 3.5s infinite;
}
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: clamp(40px, 6vw, 90px); padding: clamp(50px, 8vw, 110px) 0 60px;
}
.eyebrow {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent-2); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; font-weight: 800; margin-bottom: 22px; }
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientMove 6s linear infinite;
}
@keyframes gradientMove { to { background-position: 200% center; } }
.summary { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { list-style: none; display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.stats strong { font-family: "Outfit", sans-serif; font-size: 2rem; font-weight: 800; display: block; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ===== iPhone 16 Pro Max frame =====
   Logical screen size: 430 x 932 px (aspect-ratio 430 / 932).
   Put images at 430 x 932 (or 1290 x 2796 for @3x) named phone-1.jpg, phone-2.jpg, phone-3.jpg
   and 1.jpg / 2.jpg / 3.jpg where used. */
.iphone-16-pro-max {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 430 / 932;
  margin-inline: auto;
  border-radius: 58px;
  padding: 12px;
  background: linear-gradient(145deg, #3b3f4d, #14161f 45%, #3b3f4d);
  box-shadow: inset 0 0 0 2px #50566a, var(--shadow);
}
.iphone-notch {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 34px; background: #000; border-radius: 20px; z-index: 3;
}
.iphone-screen {
  width: 100%; height: 100%; border-radius: 48px; overflow: hidden; background: #000;
}
.iphone-screen img { width: 100%; height: 100%; object-fit: cover; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero-visual .iphone-16-pro-max { width: min(340px, 80vw); }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span {
  font-family: "Outfit", sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 56px; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--accent-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Section heads ===== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2, .install-text h2, .cta-banner h2, .faq-wrap h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Feature cards ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(10px); transition: transform .45s, border-color .45s, box-shadow .45s;
}
.card:hover { transform: translateY(-10px); border-color: rgba(215,26,33,.5); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 28px; }
.card-body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card-body p { color: var(--muted); }

/* ===== Gallery ===== */
.gallery-section { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.phone-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; }
.phone-row .iphone-16-pro-max:nth-child(2) { width: min(340px, 80vw); }
.phone-row .iphone-16-pro-max:nth-child(1), .phone-row .iphone-16-pro-max:nth-child(3) { opacity: .85; }

/* ===== Install ===== */
.install-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
  background: linear-gradient(135deg, rgba(215,26,33,.18), rgba(245,184,0,.08));
  border: 1px solid var(--border); border-radius: 32px; padding: clamp(32px, 5vw, 64px);
  backdrop-filter: blur(12px);
}
.steps { list-style: none; display: grid; gap: 18px; margin: 28px 0 36px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); }
.steps li strong { color: var(--text); }
.steps li em { color: var(--accent-2); font-style: normal; }
.steps span {
  flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700;
}
.fine-print { margin-top: 18px; color: var(--muted); font-size: .85rem; }
.install-visual .iphone-16-pro-max { width: min(300px, 75vw); }

/* ===== FAQ ===== */
.faq-wrap .section-head { margin-bottom: 40px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; transition: border-color .3s;
}
.faq details[open] { border-color: rgba(215,26,33,.5); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; }

/* ===== CTA banner ===== */
.cta-banner {
  text-align: center; padding: clamp(50px, 7vw, 90px) 24px; margin-bottom: 80px;
  border-radius: 32px; background: linear-gradient(120deg, var(--accent), var(--bg-2));
  box-shadow: var(--shadow);
}
.cta-banner p { margin: 0 0 30px; opacity: .9; font-size: 1.1rem; }
.cta-banner .btn { background: #fff; color: #0E0E10; box-shadow: none; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg-2); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-wrap p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--text); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero, .install-card { grid-template-columns: 1fr; text-align: center; }
  .summary, .steps li { margin-inline: auto; }
  .cta-row, .stats { justify-content: center; }
  .steps li { justify-content: flex-start; text-align: left; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(14, 14, 16, 0.97); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 16px 4%; }
  .menu-toggle { display: flex; }
  .nav-actions .btn-small { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone-row .iphone-16-pro-max:nth-child(1), .phone-row .iphone-16-pro-max:nth-child(3) { display: none; }
  .footer-wrap { justify-content: center; text-align: center; }
  .stats { gap: 24px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
