/* Ice Cream Empire — Landing Page
   Palette from app Assets.xcassets/Colors */

:root {
  --frost-deep: #0d1b2a;
  --frost-mid: #1e3a5f;
  --cream-white: #fdfdfd;
  --cream-warm: #fff8f0;
  --muted-ice: #b0c4de;
  --golden-vanilla: #ffd700;
  --strawberry-pink: #ff1493;
  --berry-purple: #800080;
  --mint-fresh: #4caf50;
  --arctic-blue: #4cc9f0;
  --imperial-red: #c41e3a;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-glow: 0 0 40px rgba(255, 215, 0, 0.15);
  --glass: rgba(13, 27, 42, 0.72);
  --glass-border: rgba(176, 196, 222, 0.18);
  --font: "Nunito", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--frost-deep);
  color: var(--cream-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--golden-vanilla);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.85; }

/* Animated snow particles */
.snowfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 30% 65%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(2px 2px at 85% 40%, rgba(255,255,255,0.28) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 45% 90%, rgba(255,255,255,0.22) 50%, transparent 50%);
  animation: drift 18s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-120px); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 27, 42, 0.82);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream-white);
  font-weight: 800;
  font-size: 1.05rem;
}

.nav-brand img {
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--muted-ice);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 215, 0, 0.12);
  color: var(--golden-vanilla);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,27,42,0.55) 0%, rgba(13,27,42,0.92) 70%, var(--frost-deep) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(255,20,147,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(76,201,240,0.1) 0%, transparent 45%);
}

.hero-content {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(128, 0, 128, 0.35);
  border: 1px solid rgba(255, 20, 147, 0.4);
  color: var(--strawberry-pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-logo {
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 24px rgba(255, 215, 0, 0.35));
}

.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--cream-white) 0%, var(--golden-vanilla) 60%, var(--strawberry-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted-ice);
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--golden-vanilla), #ffb347);
  color: var(--frost-deep);
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream-white);
  border: 1px solid var(--glass-border);
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--golden-vanilla);
  line-height: 1.2;
}

.stat span {
  font-size: 0.82rem;
  color: var(--muted-ice);
  font-weight: 600;
}

/* Onboarding strip */
.onboarding-strip {
  max-width: 1140px;
  margin: -40px auto 0;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.onboarding-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.onboarding-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.3);
}

.onboarding-card img {
  width: 140px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
}

.onboarding-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--cream-white);
}

.onboarding-card p {
  font-size: 0.9rem;
  color: var(--muted-ice);
}

/* Sections */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-fresh);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted-ice);
  font-size: 1.05rem;
}

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

.feature-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center/cover no-repeat;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.5s;
}

.feature-card:hover::before {
  opacity: 0.5;
  transform: scale(1.05);
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(13,27,42,0.3) 0%, rgba(13,27,42,0.92) 100%);
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--accent, var(--golden-vanilla));
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted-ice);
  flex: 1;
}

/* Pipeline */
.pipeline-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(128,0,128,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(76,201,240,0.1) 0%, transparent 50%);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  margin-bottom: 20px;
}

.pipeline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pipeline-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.pipeline-copy > p {
  color: var(--muted-ice);
  margin-bottom: 28px;
}

.pipeline-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.pipeline-steps span {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--golden-vanilla);
  background: rgba(255,215,0,0.12);
  padding: 4px 8px;
  border-radius: 6px;
}

.pipeline-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.pipeline-visual img {
  max-width: 320px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.4));
}

.pipeline-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,20,147,0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Legal / Privacy */
.legal-section {
  padding-top: 40px;
}

.legal-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.legal-icon {
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
}

.legal-updated {
  color: var(--muted-ice);
  font-size: 0.85rem;
  margin-top: 4px;
}

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--golden-vanilla);
  margin: 28px 0 10px;
}

.legal-body p,
.legal-body li {
  color: var(--muted-ice);
  font-size: 0.95rem;
}

.legal-body ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body strong {
  color: var(--cream-white);
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.support-card,
.contact-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.support-card h2,
.contact-card h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.support-card > p,
.contact-card > p {
  color: var(--muted-ice);
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream-white);
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--golden-vanilla);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover { background: rgba(255,215,0,0.06); }

.faq-item p {
  padding: 0 18px 16px;
  color: var(--muted-ice);
  font-size: 0.9rem;
}

.contact-card {
  text-align: center;
  position: sticky;
  top: 100px;
}

.contact-logo {
  margin: 0 auto 16px;
  filter: drop-shadow(0 6px 20px rgba(255,215,0,0.3));
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px 24px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 999px;
  margin-bottom: 12px;
}

.contact-note {
  font-size: 0.82rem !important;
  margin-bottom: 24px !important;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.contact-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.contact-meta strong {
  color: var(--muted-ice);
  font-weight: 600;
}

.contact-meta span {
  color: var(--cream-white);
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 24px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}

.footer-inner img { border-radius: 8px; }

.footer-inner p {
  color: var(--muted-ice);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted-ice);
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-links a:hover { color: var(--golden-vanilla); opacity: 1; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .onboarding-strip { grid-template-columns: 1fr; margin-top: 0; }
  .pipeline-layout { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .feature-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px; }
  .legal-header { flex-direction: column; text-align: center; }
  .hero-stats { gap: 20px; }
}
