/* Future @I — futureati.app */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0a0e17;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --primary: #00d4aa;
  --primary-dim: rgba(0, 212, 170, 0.15);
  --primary-glow: rgba(0, 212, 170, 0.3);
  --accent: #6366f1;
  --accent-dim: rgba(99, 102, 241, 0.15);
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.06);
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════════════ Ambient Background ═══════════════════════ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: var(--accent);
  bottom: -150px; right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: #8b5cf6;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ═══════════════════════ Navigation ═══════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(10, 14, 23, 0.75);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-brand-text span {
  color: var(--primary);
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--glass);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-dim);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

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

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(
    135deg,
    #00d4aa 0%,
    #6366f1 30%,
    #a78bfa 50%,
    #6366f1 70%,
    #00d4aa 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════ Buttons ═══════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00b894);
  color: #0a0e17;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--primary-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-glass {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════ Sections ═══════════════════════ */
.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* ═══════════════════════ App Cards ═══════════════════════ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 212, 170, 0.03));
  pointer-events: none;
}

.app-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 212, 170, 0.1);
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.app-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.app-card .app-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}

.app-card .app-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.app-meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.app-card .app-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.store-badge:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.store-badge svg {
  width: 18px;
  height: 18px;
}

.coming-soon {
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
  padding: 10px 0;
}

.version-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  vertical-align: middle;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.version-pill-soon {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.35);
  font-family: inherit;
  letter-spacing: 0.02em;
}

.version-pill-draft {
  background: rgba(220, 20, 60, 0.15);
  color: #ff6b6b;
  border-color: rgba(220, 20, 60, 0.4);
  font-family: inherit;
  letter-spacing: 0.02em;
}

/* ═══════════════════════ Features Strip ═══════════════════════ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.feature-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  text-align: center;
}

.feature-item .feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════ Legal Pages ═══════════════════════ */
.legal-page {
  padding: 120px 32px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-page .legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page .legal-body {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-body p, .legal-body li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

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

.legal-body .indent {
  padding-left: 24px;
}

.legal-body .legal-contact {
  margin-top: 32px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.legal-body .legal-contact p {
  margin-bottom: 4px;
}

/* App-specific legal nav */
.legal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.legal-nav a {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.legal-nav a:hover, .legal-nav a.active {
  color: var(--primary);
  background: var(--primary-dim);
  border-color: rgba(0, 212, 170, 0.2);
}

/* ═══════════════════════ Footer ═══════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

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

.footer-copy a {
  color: var(--primary);
  text-decoration: none;
}

/* ═══════════════════════ Responsive ═══════════════════════ */
@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: block;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 60px 20px;
  }

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

  .legal-page {
    padding: 100px 20px 60px;
  }

  .legal-body {
    padding: 24px !important;
  }
}

/* ═══════════════════════ Scroll Animations ═══════════════════════ */
.fade-up,
.feature-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up.visible,
.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.app-grid > .fade-up:nth-child(1) { transition-delay: 0ms; }
.app-grid > .fade-up:nth-child(2) { transition-delay: 120ms; }
.app-grid > .fade-up:nth-child(3) { transition-delay: 240ms; }
.app-grid > .fade-up:nth-child(4) { transition-delay: 360ms; }
.features-strip > .feature-item:nth-child(1) { transition-delay: 0ms; }
.features-strip > .feature-item:nth-child(2) { transition-delay: 100ms; }
.features-strip > .feature-item:nth-child(3) { transition-delay: 200ms; }
.features-strip > .feature-item:nth-child(4) { transition-delay: 300ms; }

/* ═══════════════════════ App icon gradients ═══════════════════════ */
.icon-green { background: linear-gradient(135deg, #00d4aa, #00b894); }
.icon-blue { background: linear-gradient(135deg, #6366f1, #818cf8); }
.icon-purple { background: linear-gradient(135deg, #a855f7, #c084fc); }
.icon-orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.icon-red { background: linear-gradient(135deg, #ef4444, #f87171); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

/* ═══════════════════════ Visual Overhaul v2 ═══════════════════════ */

/* Hero — mouse-follow spotlight + stacking context for content */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 212, 170, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero — staggered entrance */
.hero-badge { animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero h1    { animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.hero p     { animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
.hero-cta   { animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both; }

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

/* Nav — scroll state */
.nav {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* App cards — glass reflection sweep on hover (overrides existing ::before) */
.app-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  transition: left 0.6s ease;
  pointer-events: none;
  inset: auto;
}
.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(0, 212, 170, 0.08);
}
.app-card:hover::before { left: 100%; }

/* App card icon pulse */
.app-card-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}
.app-card:hover .app-card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

/* Primary button — glow + press + ripple */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.25),
              0 8px 24px rgba(0, 0, 0, 0.3);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-primary::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  width: 100px; height: 100px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.btn-primary:active::after {
  animation: btnRipple 0.5s ease-out;
}
@keyframes btnRipple {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* Glass button — border glow + press */
.btn-glass {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}
.btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}
.btn-glass:active {
  transform: scale(0.97);
}

/* Feature items — hover glow */
.feature-item {
  transition: background 0.3s ease,
              transform 0.3s ease,
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.feature-item:hover {
  background: rgba(0, 212, 170, 0.04);
  border-color: rgba(0, 212, 170, 0.15);
  transform: translateY(-4px);
}
.feature-item:hover .feature-icon svg {
  filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.4));
}

/* Footer link — accent hover */
.footer-links a:hover,
.footer a:hover {
  color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb  { background: rgba(0, 212, 170, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 170, 0.5); }

/* Text selection */
::selection {
  background: rgba(0, 212, 170, 0.3);
  color: #fff;
}

/* Focus states */
*:focus-visible {
  outline: 2px solid rgba(0, 212, 170, 0.5);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .feature-item { opacity: 1 !important; transform: none !important; }
}
