/* ================================================================
   DouMai Design System — 兜买自营在线商超
   Premium Neighborhood Supermarket
   ================================================================ */

:root {
  --brand-primary: #FE4542;
  --brand-secondary: #FF5400;
  --brand-dark: #E53935;
  --brand-light: #FFF0EF;
  --brand-light-20: rgba(255, 240, 239, 0.2);
  --bg-primary: #FAF8F6;
  --bg-surface: #FFFFFF;
  --bg-variant: #F5F0ED;
  --text-primary: #1F1B1A;
  --text-secondary: #6B5F5B;
  --text-hint: #958C87;
  --border: #E8E0DB;
  --success: #2E7D32;
  --gradient-start: #FF6B6B;
  --gradient-end: #FE4542;

  --font-display: 'LXGW WenKai', 'PingFang SC', 'Noto Serif SC', serif;
  --font-serif: 'Playfair Display', 'LXGW WenKai', serif;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  /* Z-index scale: 10=decorative, 20=content, 30=sticky, 50=overlay, 100=modal */
  --z-deco: 10;
  --z-content: 20;
  --z-sticky: 30;
  --z-overlay: 50;
  --z-modal: 100;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--brand-light);
  color: var(--brand-dark);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: var(--radius-pill); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ================================================================
   Noise Texture
   ================================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ================================================================
   Navigation
   ================================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  background: rgba(250, 248, 246, 0.82);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-img {
  transform: scale(1.06);
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: var(--font-display);
  color: var(--text-primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
  padding: 4px 0;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 6px;
  border-radius: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--brand-primary);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 12px 28px;
  background: var(--text-primary);
  color: var(--bg-surface) !important;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(31, 27, 26, 0.12);
}

.nav-cta:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(254, 69, 66, 0.3);
}

.nav-cta:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
}

.mobile-menu-btn {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 12px 8px;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: var(--bg-primary);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 40%, rgba(254, 69, 66, 0.055) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 82% 65%, rgba(255, 84, 0, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 60% 22%, rgba(255, 240, 239, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 35%, rgba(254, 69, 66, 0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Giant decorative character */
.hero-deco-char {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 46vw;
  font-weight: 700;
  color: var(--brand-primary);
  opacity: 0.018;
  line-height: 1;
  font-family: var(--font-display);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Floating geometric accents */
.geo-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.geo-1 {
  width: 300px; height: 300px;
  border: 1.5px solid var(--brand-primary);
  border-radius: 50%;
  right: 9%; top: 20%;
  opacity: 0.1;
  animation: float-slow 9s ease-in-out infinite;
}

.geo-2 {
  width: 160px; height: 160px;
  background: linear-gradient(135deg, var(--brand-light), transparent);
  border-radius: 50%;
  right: 23%; bottom: 24%;
  opacity: 0.45;
  animation: float-slow 11s ease-in-out infinite 1.5s;
}

.geo-3 {
  width: 70px; height: 70px;
  border: 2px solid var(--brand-secondary);
  border-radius: var(--radius-md);
  right: 34%; top: 32%;
  opacity: 0.12;
  transform: rotate(18deg);
  animation: float-slow 7.5s ease-in-out infinite 0.8s;
}

.geo-4 {
  width: 10px; height: 10px;
  background: var(--brand-primary);
  border-radius: 50%;
  right: 16%; top: 58%;
  opacity: 0.35;
  animation: float-slow 6s ease-in-out infinite 2.5s;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-light-20);
  border: 1px solid rgba(254, 69, 66, 0.15);
  color: var(--brand-primary);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(46, 125, 50, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero h1 {
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 3px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

.hero h1 .line {
  display: block;
}

/* Label line — smaller, lighter, descriptive */
.hero h1 .line-label {
  font-size: 0.48em;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 0.35em;
  animation: fadeInUp 0.6s ease-out 0.35s both;
}

/* Hero line — the emotional hook, bolder and bigger */
.hero h1 .line-hero {
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FF6B6B 0%, var(--brand-primary) 40%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Comma gets special spacing treatment */
.hero-comma {
  margin: 0 -0.05em 0 0.05em;
  letter-spacing: 0;
}

.hero-subtitle {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: fadeInUp 0.8s ease-out 0.65s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 8px 32px rgba(254, 69, 66, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(254, 69, 66, 0.4);
}

.btn-version {
  font-size: 13px;
  color: var(--text-hint);
  letter-spacing: 1px;
  padding-left: 4px;
}

/* Hero Visual — Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.phone-mockup {
  width: 290px;
  height: 580px;
  background: var(--text-primary);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 60px 120px -20px rgba(31, 27, 26, 0.22),
    0 30px 60px -30px rgba(254, 69, 66, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup:hover {
  transform: rotate(-1.5deg) translateY(-10px);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: var(--text-primary);
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.phone-content {
  padding: 42px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Search bar */
.phone-search {
  width: 100%;
  height: 34px;
  background: var(--bg-variant);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  margin-bottom: 6px;
  animation: slideInCard 0.6s ease-out 0.7s both;
}

.phone-search-icon {
  width: 14px; height: 14px;
  border: 2px solid var(--text-hint);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.phone-search-icon::after {
  content: '';
  position: absolute;
  width: 5px; height: 2px;
  background: var(--text-hint);
  bottom: -2px; right: -3px;
  transform: rotate(45deg);
  border-radius: 1px;
}

.phone-search span {
  font-size: 11px;
  color: var(--text-hint);
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

/* Category pills */
.phone-categories {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  animation: slideInCard 0.6s ease-out 0.8s both;
}

.phone-cat {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.phone-cat.active {
  background: var(--brand-primary);
  color: white;
}

.phone-cat:not(.active) {
  background: var(--bg-variant);
  color: var(--text-hint);
}

/* Product cards in phone */
.phone-product {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  animation: slideInCard 0.6s ease-out both;
}

.phone-product:nth-child(3) { animation-delay: 0.9s; }
.phone-product:nth-child(4) { animation-delay: 1.05s; }

.phone-product-img {
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-product-img.grocery { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.phone-product-img.drink  { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }

.phone-product-info {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-product-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-product-name-bar {
  height: 8px;
  background: var(--text-primary);
  border-radius: 3px;
  opacity: 0.75;
}

.phone-product-name-bar:first-child { width: 55px; }
.phone-product-name-bar:last-child  { width: 35px; opacity: 0.4; }

.phone-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

/* Bottom nav in phone */
.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  animation: slideInCard 0.6s ease-out 1.2s both;
}

.phone-nav-item {
  width: 22px; height: 22px;
  border-radius: 6px;
}

.phone-nav-item:nth-child(1) { background: var(--brand-primary); }
.phone-nav-item:nth-child(2) { background: var(--bg-variant); }
.phone-nav-item:nth-child(3) { background: var(--bg-variant); border-radius: 50%; }
.phone-nav-item:nth-child(4) { background: var(--bg-variant); }

@keyframes slideInCard {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-hint);
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out 1.2s both, bounce-down 2s ease-in-out 2s infinite;
  z-index: 2;
}

.scroll-hint-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-hint), transparent);
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   Stats Strip
   ================================================================ */
.stats-strip {
  background: var(--text-primary);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(254, 69, 66, 0.4), transparent);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: 1px;
  font-style: italic;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  font-weight: 400;
}

.stat-divider {
  width: 6px; height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 8px;
  opacity: 0.7;
}

/* ================================================================
   Features Section
   ================================================================ */
.features {
  padding: 150px 0 160px;
  background: var(--bg-surface);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 20px;
  position: relative;
  padding-left: 48px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 1.5px;
  background: var(--brand-primary);
}

.section-header h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
}

/* 6-card grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 44px 34px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  outline: none;
}

.feature-card:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 24px 64px rgba(31, 27, 26, 0.08);
}

.feature-card:hover::before { transform: scaleX(1); }

/* Offset middle row for visual rhythm */
.feature-card:nth-child(2),
.feature-card:nth-child(5) {
  transform: translateY(20px);
}
.feature-card:nth-child(2):hover,
.feature-card:nth-child(5):hover {
  transform: translateY(14px);
}

.feature-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background: var(--brand-light-20);
  border: 1px solid rgba(254, 69, 66, 0.1);
  color: var(--brand-primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon {
  background: var(--brand-light);
  transform: scale(1.08) rotate(-4deg);
  color: var(--brand-dark);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

/* ================================================================
   Download Section
   ================================================================ */
.download {
  padding: 140px 0;
  background: var(--bg-primary);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(254, 69, 66, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Giant faded character */
.download::after {
  content: '兜';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 38vw;
  font-weight: 700;
  color: var(--brand-primary);
  opacity: 0.016;
  line-height: 1;
  font-family: var(--font-display);
  pointer-events: none;
  user-select: none;
}

.download .section-inner {
  position: relative;
  z-index: 2;
}

.download-card {
  max-width: 580px;
  margin: 0 auto;
  padding: 64px 48px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(31, 27, 26, 0.06);
  position: relative;
}

.download-card .section-tag { text-align: center; display: block; padding-left: 0; }
.download-card .section-tag::before { display: none; }

.download-card h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.download-card .btn-primary {
  padding: 20px 48px;
  font-size: 17px;
}

.download-card .btn-primary svg {
  transition: transform 0.3s ease;
}

.download-card .btn-primary:hover svg {
  transform: translateY(2px);
}

.download-meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-hint);
  letter-spacing: 1px;
}

.download-meta span {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-variant);
  border-radius: var(--radius-pill);
  margin: 0 4px;
}

/* ================================================================
   Contact / Feedback Section
   ================================================================ */
.contact {
  padding: 140px 0;
  background: var(--bg-surface);
  position: relative;
}

.contact .section-inner {
  max-width: 720px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group:nth-child(3) {
  grid-column: 1 / -1;
}

.contact-form .form-group:last-child {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--brand-primary);
  margin-left: 2px;
}

.form-input,
.form-textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  letter-spacing: 1px;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(254, 69, 66, 0.05);
  outline: none;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-hint);
  letter-spacing: 1px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 28px rgba(254, 69, 66, 0.22);
  min-height: 52px;
}

.btn-submit:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(254, 69, 66, 0.35);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success message */
.contact-success {
  display: none;
  text-align: center;
  padding: 60px 24px;
}

.contact-success.visible { display: block; }

.contact-success .success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.08);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.contact-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.contact-success p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 1px;
}

.field-error {
  font-size: 12px;
  color: var(--brand-primary);
  letter-spacing: 1px;
  display: none;
}

.field-error.visible { display: block; }

/* ================================================================
   Footer
   ================================================================ */
footer {
  background: var(--text-primary);
  color: white;
  padding: 100px 48px 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.footer-deco {
  position: absolute;
  right: -5%; bottom: -8%;
  font-size: 32vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.012);
  line-height: 1;
  font-family: var(--font-display);
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand .logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  font-size: 14px;
  max-width: 280px;
}

.footer-col h4, .footer-links-col h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-serif);
}

.footer-col a, .footer-links-col a {
  display: block;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.footer-col a:hover, .footer-links-col a:hover {
  color: white;
  padding-left: 6px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: rgba(255, 255, 255, 0.65);
}

.contact-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  letter-spacing: 1px;
}

.icp-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.icp-links a {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

.icp-links a:hover {
  color: rgba(255, 255, 255, 0.55);
}

.icp-divider {
  color: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

/* ================================================================
   Animations
   ================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ================================================================
   Responsive — 1024px
   ================================================================ */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }

  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 24px;
    gap: 40px;
  }

  .hero-subtitle { margin: 0 auto 48px; }
  .hero-actions { align-items: center; }
  .hero-visual { display: none; }
  .hero-deco-char { font-size: 60vw; opacity: 0.012; }

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

  .stat-divider { display: none; }

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

  .feature-card:nth-child(2),
  .feature-card:nth-child(5) { transform: none; }
  .feature-card:nth-child(2):hover,
  .feature-card:nth-child(5):hover { transform: translateY(-6px); }

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

/* ================================================================
   Responsive — 640px
   ================================================================ */
@media (max-width: 640px) {
  .section-inner { padding: 0 24px; }
  .features { padding: 100px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 36px 28px; }

  .stats-strip { padding: 40px 0; }
  .stats-inner { gap: 28px; }
  .stat-number { font-size: 32px; }

  .download { padding: 100px 0; }
  .download-card { padding: 40px 28px; }

  .contact { padding: 100px 0; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .form-group:nth-child(3) { grid-column: 1; }

  .footer { padding: 80px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .scroll-hint { display: none; }

  .btn { padding: 16px 32px; font-size: 14px; }
}
