/* ==========================================================================
   Mobinuity — shared design system
   Matches the iOS "Its AI?" aesthetic: dark premium with aurora gradients.
   ========================================================================== */

:root {
  --bg: #0A0A0F;
  --surface: #14141C;
  --surface-elevated: #1C1C26;
  --stroke: rgba(255, 255, 255, 0.08);

  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.64);
  --text-tertiary: rgba(255, 255, 255, 0.40);

  --accent: #8B5CF6;       /* violet */
  --accent-2: #22D3EE;     /* cyan */
  --accent-3: #EC4899;     /* pink */
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F43F5E;

  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #22D3EE 50%, #EC4899 100%);
  --gradient-aurora: linear-gradient(135deg, rgba(124, 58, 237, 0.55) 0%, rgba(6, 182, 212, 0.45) 50%, rgba(219, 39, 119, 0.45) 100%);

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-s: 12px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-huge: 96px;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --max-width: 1100px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-2); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.8; }

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

button { font-family: inherit; border: none; cursor: pointer; }

/* ==========================================================================
   Aurora background — subtle animated gradient blobs
   ========================================================================== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora::before,
.aurora::after,
.aurora > span {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.aurora::before {
  width: 520px; height: 520px;
  top: -140px; left: -120px;
  background: var(--accent);
  animation: float1 22s ease-in-out infinite;
}

.aurora::after {
  width: 640px; height: 640px;
  top: 30%; right: -200px;
  background: var(--accent-2);
  animation: float2 28s ease-in-out infinite;
  opacity: 0.4;
}

.aurora > span {
  width: 600px; height: 600px;
  bottom: -180px; left: 30%;
  background: var(--accent-3);
  animation: float3 26s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 80px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -60px); } }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

section {
  padding: var(--space-huge) 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); margin-bottom: var(--space-m); }
h3 { font-size: 1.35rem; margin-bottom: var(--space-xs); }
h4 { font-size: 1.05rem; }

p { color: var(--text-secondary); }
p.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: var(--space-m);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(10, 10, 15, 0.6);
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
}

.nav-links { display: flex; gap: var(--space-l); list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); opacity: 1; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 24px;
  border-radius: var(--radius-m);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.5);
  opacity: 1;
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: var(--space-huge) 0 var(--space-xxl);
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-m);
}

.hero .lead {
  margin: 0 auto var(--space-l);
  text-align: center;
}

.hero-actions {
  display: inline-flex;
  gap: var(--space-s);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-l);
}

/* ==========================================================================
   Cards / feature grid
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  font-size: 24px;
  margin-bottom: var(--space-m);
}

.grid {
  display: grid;
  gap: var(--space-m);
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   App card — showcase tile with real icon
   ========================================================================== */
.app-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 1;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-icon-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-tertiary);
}

.app-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-wrap: wrap;
}

.app-title-row h3 { margin: 0; }

.app-tagline {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.5;
}

.app-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.app-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--stroke);
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
}

.app-cta {
  margin-top: auto;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.app-card-placeholder {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(34,211,238,0.08));
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}

.section-header p {
  font-size: 1.05rem;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  border-radius: var(--radius-l);
  padding: var(--space-xxl) var(--space-xl);
  background: var(--gradient-aurora);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--stroke);
}

.cta-band h2 { margin-bottom: var(--space-s); }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: var(--space-l); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--stroke);
  padding: var(--space-xl) 0 var(--space-xl);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.footer-links {
  display: flex; gap: var(--space-l);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

/* ==========================================================================
   Legal pages (Privacy, Terms) — prose styling
   ========================================================================== */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-l);
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-s);
}

.prose .meta {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-s);
  color: var(--text);
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: var(--space-l);
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.prose p, .prose li {
  color: var(--text-secondary);
  margin-bottom: var(--space-s);
}

.prose ul { padding-left: var(--space-l); margin-bottom: var(--space-m); }

.prose a {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
}

.prose strong { color: var(--text); }

/* ==========================================================================
   Product hero (Its AI)
   ========================================================================== */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
  padding: var(--space-huge) 0 var(--space-xxl);
}

.product-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.product-icon {
  position: relative;
  z-index: 2;
  width: 240px;
  height: 240px;
  border-radius: 54px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.product-icon-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, rgba(34, 211, 238, 0.35) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-icon { width: 180px; height: 180px; border-radius: 40px; }
  .product-hero-visual { min-height: 260px; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-l { margin-top: var(--space-l); }
.mt-xl { margin-top: var(--space-xl); }
.hidden { display: none; }
