@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #090a0f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --ink: #f0f2f5;
  --muted: #a0a6b5;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff007b;
  --accent-2: #7b00ff;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --green: #00e5ff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  --glass-blur: blur(20px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(123, 0, 255, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 0, 123, 0.15), transparent 40%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand, .button, .store-button strong, .eyebrow {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  transition: all 0.2s ease;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  top: 16px;
}

/* TOPBAR */
@keyframes shrink-header {
  to {
    padding: 8px 0;
    background: rgba(9, 10, 15, 0.85);
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(9, 10, 15, 0.6);
  border-bottom: 1px solid var(--line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 16px 0;
  /* Scroll-driven animation for supporting browsers */
  animation: shrink-header linear both;
  animation-timeline: scroll(block root);
  animation-range: 0px 100px;
  transition: padding 0.3s ease, background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-links .primary-link {
  color: #fff;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.nav-links .primary-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 0, 123, 0.4);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,0.2);
}

.lang-switch a {
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
}

.lang-switch a.active {
  background: var(--surface-2);
  color: #fff;
}

/* HERO SECTION */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  align-items: center;
  gap: 64px;
  padding: 160px 0 120px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: fade-up 0.8s ease-out backwards;
}

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

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  color: var(--green);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #a0a6b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 600px;
}

.store-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.store-status span:first-child {
  color: var(--green);
}

.store-separator {
  color: var(--line);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
  min-height: 68px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a.store-button:hover,
a.store-button:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(255, 0, 123, 0.2);
}

.store-button > span:last-child {
  display: grid;
  line-height: 1.1;
}

.store-button small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-button strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.store-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.google-play-mark {
  color: #7ce1ae;
}

.apple-mark {
  color: var(--ink);
}

.store-button.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.hero-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hero-links a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* HERO VISUAL (Parallax & Float) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  animation: fade-up 1s ease-out 0.2s backwards;
}

.phone-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(123, 0, 255, 0.4), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 48px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(5deg);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 100px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone-screen {
  overflow: hidden;
  border-radius: 36px;
  background: #000;
  line-height: 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* SECTIONS */
.section {
  padding: 120px 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 20%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 24px;
}

/* CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(255, 0, 123, 0.3);
}

.card h3 {
  margin-bottom: 16px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

/* SCREENS GALLERY */
.screens-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 32px;
  padding: 20px 0 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.screens-gallery::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.screen-item {
  display: grid;
  gap: 24px;
  margin: 0;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.screen-item:hover {
  transform: scale(1.02);
}

.phone-sm {
  width: 260px;
  padding: 12px;
  border-radius: 40px;
  animation: none;
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.phone-sm:hover {
  animation: none;
  transform: none;
}
.phone-sm .phone-notch {
  top: 12px;
  width: 80px;
  height: 22px;
}
.phone-sm .phone-screen {
  border-radius: 28px;
}

.screen-item figcaption {
  display: grid;
  gap: 8px;
  text-align: center;
}

.screen-item figcaption b {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.screen-item figcaption span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

/* CHECKLIST (Legal / App Store prep) */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  color: var(--green);
  font-weight: 900;
  font-size: 14px;
}

.check-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.check-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.check-item a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* LEGAL PAGES */
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 160px 0 120px;
}

.legal-nav {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
}

.legal-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--ink);
}

.legal {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
}

.legal h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 16px;
}

.legal h2 {
  margin-top: 48px;
  margin-bottom: 24px;
  font-size: 32px;
}

.legal h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 24px;
}

.legal p, .legal ul {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.meta {
  margin: 0 0 40px;
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}

.notice {
  padding: 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 0, 123, 0.05);
  margin: 32px 0;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 10, 15, 0.8);
  padding: 48px 0;
}

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

.footer p {
  color: var(--muted);
  margin: 0;
}

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

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav {
    flex-wrap: wrap;
    padding: 8px 0;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 80px;
    padding: 140px 0 80px;
  }
  
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .lead {
    margin: 24px auto 0;
  }
  
  .store-status, .store-actions, .hero-links {
    justify-content: center;
  }
  
  .hero-visual .phone {
    transform: none;
    animation: float 6s ease-in-out infinite;
  }
  
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 120px 0 80px;
  }
  
  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .wrap, .nav, .hero, .legal-layout {
    width: min(100% - 32px, 1200px);
  }

  .nav-links {
    width: auto;
    justify-content: flex-end;
  }

  .nav-links > a:not(.primary-link) {
    display: none; /* Hide non-essential links on very small screens to prevent overlap */
  }

  .hero {
    padding: 120px 0 60px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero-visual .phone {
    width: 100%;
    max-width: 280px;
    padding: 12px;
  }

  .store-button {
    width: 100%;
    justify-content: center;
    min-height: 60px;
    padding: 10px;
  }

  .store-button strong {
    font-size: 18px;
  }
  
  .checklist {
    grid-template-columns: 1fr;
  }
  
  .legal {
    padding: 24px;
  }
  
  .footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}
