/* Flow FavManager — Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors */
  --navy-900: #0D1520;
  --navy-800: #131E2E;
  --navy-700: #1B2838;
  --navy-600: #243548;
  --navy-500: #2E4258;
  --navy-400: #3A5068;

  /* Accent */
  --accent-blue: #4A9EFF;
  --accent-cyan: #22D3EE;
  --accent-purple: #A78BFA;
  --accent-gold: #FBBF24;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;

  /* Gradients */
  --gradient-hero: linear-gradient(160deg, #0D1520 0%, #1B2838 40%, #1a2744 70%, #162035 100%);
  --gradient-card: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(34, 211, 238, 0.04) 100%);
  --gradient-accent: linear-gradient(135deg, #4A9EFF 0%, #22D3EE 100%);
  --gradient-gold: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);

  /* Glass */
  --glass-bg: rgba(27, 40, 56, 0.6);
  --glass-border: rgba(74, 158, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--gray-200);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Animations ---- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.4);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(13, 21, 32, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-normal);
  border-radius: 1px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px !important;
  background: var(--gradient-accent);
  border-radius: 50px;
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition-normal);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.35);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition-normal);
  border-radius: 2px;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.06) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 .flow {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--gray-400);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(74, 158, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.hero-visual {
  flex: 0 0 420px;
  position: relative;
}

.hero-icon-container {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.hero-icon-container img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero-icon-glow {
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle, rgba(74, 158, 255, 0.25) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Orbiting dots */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border: 1px dashed rgba(74, 158, 255, 0.12);
  border-radius: 50%;
  animation: rotate-slow 30s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.orbit-dot:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-dot:nth-child(2) {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.orbit-dot:nth-child(3) {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  background: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.orbit-dot:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ---- Features Section ---- */
.features {
  padding: var(--section-py) 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.features-grid .feature-card {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 300px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon.profiles {
  background: rgba(74, 158, 255, 0.12);
  color: var(--accent-blue);
}

.feature-icon.visual {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-purple);
}

.feature-icon.organization {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
}

.feature-icon.creation {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
}

.feature-icon.security {
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.feature-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card li {
  font-size: 0.9rem;
  color: var(--gray-300);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.feature-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 600;
}

.feature-icon svg {
  display: block;
}

/* ---- Preview Section ---- */
.preview {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(74, 158, 255, 0.02) 50%, transparent 100%);
}

.preview-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.preview-image:hover {
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 25px 80px rgba(74, 158, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.preview-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Installation Section ---- */
.installation {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(74, 158, 255, 0.02) 50%, transparent 100%);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.install-method {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.install-method:hover {
  border-color: rgba(74, 158, 255, 0.3);
}

.install-method.recommended {
  border-color: rgba(74, 158, 255, 0.3);
}

.recommended-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 14px;
  background: var(--gradient-accent);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.install-method h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-method .method-desc {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.install-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.install-step {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.install-step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74, 158, 255, 0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(74, 158, 255, 0.2);
}

.install-step p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
  padding-top: 4px;
}

.install-step code {
  display: inline-block;
  background: rgba(74, 158, 255, 0.08);
  border: 1px solid rgba(74, 158, 255, 0.15);
  border-radius: 6px;
  padding: 2px 10px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-top: 4px;
  word-break: break-all;
}

.install-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--accent-gold);
  line-height: 1.5;
}

.install-warning .warn-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- Languages Section ---- */
.languages {
  padding: var(--section-py) 0;
}

.languages-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.lang-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  text-align: center;
  transition: var(--transition-smooth);
  min-width: 140px;
}

.lang-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.lang-flag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  letter-spacing: 0.05em;
}

.lang-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.lang-code {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ---- Requirements & Legal Section ---- */
.info-section {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(74, 158, 255, 0.015) 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card p,
.info-card li {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.7;
}

.info-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card li {
  padding-left: 18px;
  position: relative;
}

.info-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-box {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---- Back to Top Button ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 8px 30px rgba(74, 158, 255, 0.5);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---- Responsive Design ---- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-visual {
    flex: 0 0 auto;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature-card {
    flex: 0 1 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 70px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 21, 32, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-icon-container {
    width: 240px;
    height: 240px;
  }

  .orbit-ring {
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid .feature-card {
    flex: 0 1 100%;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-stat .number {
    font-size: 1.3rem;
  }

  .languages-grid {
    gap: 12px;
  }

  .lang-card {
    min-width: 110px;
    padding: 16px 20px;
  }

  .install-method {
    padding: 28px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.88rem;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-400);
}

/* ---- Selection ---- */
::selection {
  background: rgba(74, 158, 255, 0.3);
  color: var(--white);
}