/* Sowgatly — landing styles. Brand: midnight navy + gold + ivory. */

:root {
  --navy-900: #090E1C;
  --navy-800: #0D1326;
  --navy-700: #141C33;
  --navy-600: #1A2340;
  --navy-500: #2A3655;
  --gold:     #C8A65B;
  --gold-200: #E4CE95;
  --gold-soft: rgba(200, 166, 91, 0.14);
  --gold-glow: rgba(200, 166, 91, 0.33);
  --ivory:    #F7F5EF;
  --text:     #EEEDE6;
  --muted:    #BBC2D6;
  --line:     rgba(200, 166, 91, 0.26);
  --bezel:    linear-gradient(160deg, #2b3652, #1a2340);
  --card:     rgba(255, 255, 255, 0.05);
  --card-brd: rgba(255, 255, 255, 0.11);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--navy-800);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed brand backdrop: deep navy with two drifting gold/navy auroras. */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 720px at 80% -10%, rgba(200,166,91,0.13), transparent 58%),
    radial-gradient(1100px 820px at 50% 16%, rgba(46,60,96,0.55), transparent 70%),
    linear-gradient(180deg, #0B1020 0%, #111A31 46%, #0B1020 100%);
}
.bg::before, .bg::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.38; z-index: -1;
}
.bg::before {
  width: 46vw; height: 46vw; top: -12vw; right: -8vw;
  background: radial-gradient(circle, var(--gold-glow), transparent 68%);
  animation: drift1 22s var(--ease) infinite alternate;
}
.bg::after {
  width: 40vw; height: 40vw; bottom: -14vw; left: -10vw;
  background: radial-gradient(circle, rgba(74,90,138,0.45), transparent 68%);
  animation: drift2 26s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate(-6vw, 8vw) scale(1.12); } }
@keyframes drift2 { to { transform: translate(7vw, -6vw) scale(1.1); } }

/* subtle grain/stars */
.bg .stars { position: absolute; inset: 0; opacity: 0.5; }
.bg .stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--gold-200); opacity: 0.0;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0; } 50% { opacity: 0.6; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 19, 38, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.brand span { font-family: var(--serif); font-size: 1.32rem; color: var(--ivory); letter-spacing: 0.4px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.25s; }
.nav-links a:hover { color: var(--ivory); }
.nav-cta {
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  color: var(--navy-900); background: linear-gradient(135deg, var(--gold-200), var(--gold));
  box-shadow: 0 8px 24px rgba(200,166,91,0.28); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,166,91,0.42); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ivory); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold-200);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.4px; margin-bottom: 26px;
}
.eyebrow b { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 {
  font-family: var(--serif); font-weight: 600; color: var(--ivory);
  font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -0.5px; margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-200), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic;
}
.hero p.lead { font-size: 1.14rem; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero .note svg { color: var(--gold); }

/* Store badges */
.badge {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 12px 20px; border-radius: 15px; background: var(--ivory); color: var(--navy-900);
  transition: transform 0.25s var(--ease), box-shadow 0.25s; box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.badge:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,0.5); }
.badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.badge .b-text { display: flex; flex-direction: column; line-height: 1.1; }
.badge .b-text small { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.7; }
.badge .b-text strong { font-size: 1.05rem; font-weight: 700; }

/* Hero phone */
.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1400px; }
.phone {
  position: relative; width: 100%; max-width: 336px; border-radius: 36px;
  background: var(--bezel); padding: 7px;
  box-shadow: 0 44px 96px rgba(0,0,0,0.62), 0 0 0 1px rgba(200,166,91,0.3), 0 0 72px rgba(200,166,91,0.14);
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
  animation: floaty 6s ease-in-out infinite;
}
.phone img { width: 100%; display: block; border-radius: 28px; }
.hero-visual::after {
  content: ""; position: absolute; width: 82%; height: 82%; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,166,91,0.42), transparent 70%); filter: blur(46px); z-index: -1;
}
@keyframes floaty { 0%,100% { transform: rotateY(-12deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-12deg) rotateX(4deg) translateY(-16px); } }

/* ---------- Section shells ---------- */
.section { padding: 92px 0; position: relative; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-head .kicker { color: var(--gold); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; font-size: 0.78rem; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; color: var(--ivory); font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.14; margin: 14px 0 12px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feat {
  grid-column: span 2; background: linear-gradient(160deg, rgba(46,59,94,0.55), rgba(24,33,58,0.6));
  border: 1px solid rgba(200,166,91,0.16);
  border-radius: 20px; padding: 30px; box-shadow: 0 14px 36px rgba(0,0,0,0.3);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.feat:hover {
  transform: translateY(-6px); border-color: rgba(200,166,91,0.44);
  background: linear-gradient(160deg, rgba(56,70,108,0.62), rgba(30,41,72,0.66));
  box-shadow: 0 22px 48px rgba(0,0,0,0.42);
}
.feat.wide { grid-column: span 3; }
.feat .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold-200);
}
.feat .ic svg { width: 26px; height: 26px; }
.feat h3 { font-size: 1.22rem; color: var(--ivory); margin-bottom: 8px; font-weight: 700; }
.feat p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Showcase ---------- */
.showcase { overflow: hidden; }
.shots {
  display: flex; gap: 26px; overflow-x: auto; padding: 10px 24px 30px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(50% - 50vw); padding-left: max(24px, calc(50vw - var(--maxw)/2));
}
.shots::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto; width: 288px; scroll-snap-align: center;
  background: var(--bezel); padding: 7px; border-radius: 32px;
  border: 1px solid rgba(200,166,91,0.3);
  box-shadow: 0 30px 66px rgba(0,0,0,0.62), 0 0 44px rgba(200,166,91,0.09);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.shot img { width: 100%; display: block; border-radius: 25px; }
.shot:hover { transform: translateY(-10px); box-shadow: 0 38px 76px rgba(0,0,0,0.66), 0 0 60px rgba(200,166,91,0.16); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 10px; position: relative; }
.step .num {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold-200);
  background: var(--gold-soft); border: 1px solid var(--line);
}
.step h3 { color: var(--ivory); font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; max-width: 300px; margin: 0 auto; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 30px; padding: 66px 40px; text-align: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  border: 1px solid var(--line);
}
.cta-card::before {
  content: ""; position: absolute; width: 60%; height: 160%; top: -30%; right: -10%;
  background: radial-gradient(circle, var(--gold-glow), transparent 68%); filter: blur(50px);
}
.cta-card h2 { position: relative; font-family: var(--serif); font-weight: 600; color: var(--ivory); font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.cta-card p { position: relative; color: var(--muted); max-width: 520px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-card .cta-row { position: relative; justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 30px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { color: var(--ivory); font-size: 0.9rem; letter-spacing: 0.4px; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; margin-bottom: 10px; transition: color 0.25s; }
.foot-col a:hover { color: var(--gold-200); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row, .hero .note { justify-content: center; }
  .hero-visual { margin-top: 20px; order: -1; }
  .phone { animation: none; transform: none; max-width: 280px; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 4px;
    background: rgba(13,19,38,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 16px 24px 24px; align-items: stretch;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
    display: flex;
  }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 4px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-burger { display: block; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bento { grid-template-columns: 1fr 1fr; }
  .feat, .feat.wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .section { padding: 64px 0; }
}

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