/* ============================================================
   SHOTPAD LANDING PAGE — STYLES
   Design: Dark cinematic / Liquid Glass aesthetic
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette — from Theme.swift dark mode */
  --bg-primary: #0A1220;
  --bg-secondary: #0E1B2C;
  --bg-tertiary: #18263B;
  --bg-card: #1F3047;
  --bg-card-hover: #243754;

  --coral: #FF4F4F;
  --coral-dim: #FF4F4F99;
  --coral-glow: rgba(255, 79, 79, 0.15);
  --coral-glow-strong: rgba(255, 79, 79, 0.3);
  --cyan: #35C9F2;
  --cyan-dim: #35C9F299;
  --cyan-glow: rgba(53, 201, 242, 0.12);
  --green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.12);
  --purple: #A78BFA;
  --purple-glow: rgba(167, 139, 250, 0.12);

  --text: #FFFFFF;
  --text-secondary: #D4D9E1;
  --text-muted: #9EA8B9;
  --text-dim: #607080;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-pad: clamp(56px, 7vh, 80px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Atmospheric background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, var(--coral-glow) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 10%, var(--cyan-glow) 0%, transparent 55%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(53, 201, 242, 0.06) 0%, transparent 50%),
    linear-gradient(175deg, #0A1220 0%, #0E1B2C 40%, #0A1220 100%);
}

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

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

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.kicker::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 1px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.section-header .kicker::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-sub {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 0 0 0 var(--coral-glow-strong), 0 4px 16px rgba(255, 79, 79, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--coral-glow-strong), 0 8px 24px rgba(255, 79, 79, 0.3);
}

/* Shimmer sweep */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease-out);
}

.btn--primary:hover::after {
  left: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.35s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 79, 79, 0.12);
  color: var(--coral);
  border: 1px solid rgba(255, 79, 79, 0.2);
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: rgba(255, 79, 79, 0.2);
  border-color: rgba(255, 79, 79, 0.4);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: clamp(120px, 15vh, 180px);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow--coral {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: var(--coral-glow);
}

.hero-glow--cyan {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
  background: var(--cyan-glow);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(53, 201, 242, 0.08);
  border: 1px solid rgba(53, 201, 242, 0.15);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(53, 201, 242, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(53, 201, 242, 0); }
}

.hero-headline {
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Device Frame (iPad) --- */
.device-frame--ipad {
  position: relative;
}

.device-frame-bezel {
  position: relative;
  padding: 12px;
  background: #1a1a2e;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 80px var(--coral-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.device-frame-screen {
  border-radius: 10px;
  width: 100%;
  display: block;
}

.device-frame--ipad::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- Device Frame (MacBook) --- */
.device-frame--macbook {
  position: relative;
}

.device-frame--macbook .device-frame-bezel {
  position: relative;
  padding: 8px 8px 0;
  background: #1a1a2e;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.device-frame--macbook .device-frame-screen {
  border-radius: 6px 6px 0 0;
}

/* MacBook base/hinge */
.device-frame--macbook .device-base {
  position: relative;
  height: 14px;
  background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
  border-radius: 0 0 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.device-frame--macbook .device-base::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

/* (proof strip removed) */

/* --- Features --- */
.features {
  padding: var(--section-pad) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.feature-card--wide:last-child {
  grid-template-columns: 1fr 1.2fr;
}

.feature-card-visual {
  padding: 20px;
  overflow: hidden;
}

.feature-card-visual img {
  border-radius: var(--radius-md);
  transition: transform 0.6s var(--ease-out);
}

.feature-card:hover .feature-card-visual img {
  transform: scale(1.03);
}

.feature-card-text {
  padding: clamp(24px, 3vw, 40px);
}

.feature-card:not(.feature-card--wide) .feature-card-visual {
  padding: 20px 20px 0;
}

.feature-card:not(.feature-card--wide) .feature-card-visual img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--coral-glow);
  color: var(--coral);
  margin-bottom: 16px;
}

.feature-icon--cyan {
  background: var(--cyan-glow);
  color: var(--cyan);
}

.feature-icon--green {
  background: var(--green-glow);
  color: var(--green);
}

.feature-icon--purple {
  background: var(--purple-glow);
  color: var(--purple);
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Extra features list */
.features-extra {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.extra-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* --- Sync Section --- */
.sync {
  padding: clamp(32px, 4vh, 48px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sync-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.sync-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan-glow);
  color: var(--cyan);
  flex-shrink: 0;
}

.sync-text h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 8px;
  line-height: 1.2;
}

.sync-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.sync-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(53, 201, 242, 0.06);
  border: 1px solid rgba(53, 201, 242, 0.12);
  padding: 7px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.sync-pill svg {
  color: var(--cyan);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .sync-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .sync-icon {
    margin: 0 auto;
  }

  .sync-pills {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Audience --- */
.audience {
  padding: var(--section-pad) 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease-out);
}

.audience-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.audience-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--coral-glow);
  color: var(--coral);
  margin-bottom: 20px;
}

.audience-icon--cyan {
  background: var(--cyan-glow);
  color: var(--cyan);
}

.audience-icon--green {
  background: var(--green-glow);
  color: var(--green);
}

.audience-card h3 {
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* --- Signup --- */
.signup {
  padding: var(--section-pad) 0;
}

.signup-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px);
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

/* Accent glow behind signup card */
.signup-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, var(--coral-glow) 0%, transparent 70%);
  pointer-events: none;
}

.signup-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.signup-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
}

.signup-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
}

.signup-header .kicker::after {
  left: 50%;
  transform: translateX(-50%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.optional {
  color: var(--text-dim);
  font-weight: 400;
}

.form-group input,
.form-group select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: all 0.25s var(--ease-out);
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(53, 201, 242, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239EA8B9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text);
}

.gdpr-line {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.signup-form .btn {
  position: relative;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 48px 24px;
  color: var(--green);
  animation: fadeInUp 0.5s ease-out;
}

.form-success svg {
  opacity: 0.9;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
}

.form-success p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-success.show {
  display: flex;
}

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

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-link:hover {
  color: var(--cyan);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Scroll reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-card--wide {
    grid-template-columns: 1fr;
  }

  .feature-card--wide:last-child {
    grid-template-columns: 1fr;
  }

  .feature-card--wide:last-child .feature-card-text {
    order: 1;
  }

  .feature-card--wide:last-child .feature-card-visual {
    order: 2;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: span 1;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}