/* ==========================================================================
   晤风智能 — Design System
   ========================================================================== */

:root {
  /* Colors — Apple-inspired neutral palette */
  --color-bg: #ffffff;
  --color-bg-alt: #fbfbfd;
  --color-bg-dark: #000000;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-light: #86868b;
  --color-text-inverse: #f5f5f7;
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;

  /* Brand gradient for product visuals */
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-cool: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-mono: linear-gradient(135deg, #1d1d1f 0%, #424245 100%);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --max-width-text: 720px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 980px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

  /* Motion */
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

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

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--color-text);
  line-height: 1.1;
}

.display-1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.display-2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.heading-1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.heading-2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.heading-3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.subheadline {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-secondary);
  max-width: 720px;
}

.body-large {
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
}

.body-secondary {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-light);
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-text {
  max-width: var(--max-width-text);
}

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

.section-sm {
  padding: var(--space-10) 0;
}

.section-bg-alt {
  background-color: var(--color-bg-alt);
}

.section-bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3 {
  color: var(--color-text-inverse);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .subheadline {
  margin: var(--space-4) auto 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  opacity: 0.88;
  transition: opacity var(--duration-fast) var(--easing);
}

.nav-link:hover {
  opacity: 1;
  color: var(--color-text);
  text-decoration: none;
}

.nav-link.active {
  font-weight: 500;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  display: block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--duration-fast) var(--easing);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--easing);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-dark {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.btn-dark:hover {
  background: #424245;
  color: var(--color-text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

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

.btn-link {
  color: var(--color-accent);
  font-size: 17px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.btn-link::after {
  content: "›";
  font-size: 1.2em;
  transition: transform var(--duration-fast) var(--easing);
}

.btn-link:hover {
  text-decoration: none;
}

.btn-link:hover::after {
  transform: translateX(3px);
}

.btn-group {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

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

.hero .subheadline {
  margin: 0 auto var(--space-8);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-visual {
  position: relative;
  margin-top: var(--space-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-brand);
  aspect-ratio: 16 / 9;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}

.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Decorative background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-bg::before {
  background: #6366f1;
  top: -200px;
  left: -100px;
}

.hero-bg::after {
  background: #ec4899;
  bottom: -200px;
  right: -100px;
}

/* ==========================================================================
   Feature Grid
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-normal) var(--easing), box-shadow var(--duration-normal) var(--easing);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: var(--space-3);
  font-size: 20px;
}

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

/* ==========================================================================
   Product Cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

.product-card {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--easing);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card.product-card-dark {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.product-card.product-card-dark h3 {
  color: var(--color-text-inverse);
}

.product-card.product-card-dark p {
  color: rgba(245, 245, 247, 0.7);
}

.product-card.product-card-gradient {
  background: var(--gradient-brand);
  color: #ffffff;
}

.product-card.product-card-gradient h3 {
  color: #ffffff;
}

.product-card.product-card-gradient p {
  color: rgba(255, 255, 255, 0.85);
}

.product-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--space-3);
}

.product-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--space-4);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-card p {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.product-card .btn-link {
  color: inherit;
  opacity: 0.9;
}

.product-visual {
  margin-top: var(--space-6);
  height: 160px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  opacity: 0.18;
}

.product-card-dark .product-visual,
.product-card-gradient .product-visual {
  opacity: 0.3;
}

/* ==========================================================================
   Big Feature (Banner-style)
   ========================================================================== */

.banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  overflow: hidden;
  text-align: center;
  background: var(--color-bg-alt);
}

.banner-dark {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.banner-dark h2 {
  color: var(--color-text-inverse);
}

.banner-gradient {
  background: var(--gradient-brand);
  color: #ffffff;
}

.banner-gradient h2 {
  color: #ffffff;
}

.banner-gradient p {
  color: rgba(255, 255, 255, 0.85);
}

.banner h2 {
  margin-bottom: var(--space-4);
}

.banner p {
  font-size: clamp(17px, 2vw, 21px);
  max-width: 680px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-value {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Two-column Content
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.split-content h2 {
  margin-bottom: var(--space-5);
}

.split-content p {
  color: var(--color-text-secondary);
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.split-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background: var(--gradient-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: var(--space-6);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-bg);
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.timeline-item h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.timeline-item p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-5) 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 19px;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2) 0;
}

.faq-toggle {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-text-secondary);
}

.faq-toggle::before {
  width: 14px;
  height: 1.5px;
}

.faq-toggle::after {
  width: 1.5px;
  height: 14px;
  transition: transform var(--duration-fast) var(--easing);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 680px;
}

/* ==========================================================================
   Contact / Info Card
   ========================================================================== */

.info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

.info-block .info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.info-block .info-value {
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.5;
}

.info-block .info-value a {
  color: var(--color-text);
}

.info-block .info-value a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-bg-alt);
  padding: var(--space-10) 0 var(--space-6);
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border-light);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-brand {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-col ul li a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-light);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-size: 12px;
  color: var(--color-text-light);
}

.footer-legal a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ==========================================================================
   Page Header (for non-home pages)
   ========================================================================== */

.page-header {
  padding: var(--space-12) 0 var(--space-10);
  text-align: center;
  background: var(--color-bg-alt);
}

.page-header h1 {
  margin-bottom: var(--space-3);
}

.page-header .subheadline {
  margin: 0 auto;
}

/* ==========================================================================
   Article (privacy/terms)
   ========================================================================== */

.article {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: var(--space-10) var(--space-5);
}

.article h1 {
  margin-bottom: var(--space-3);
}

.article .article-meta {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.article h2 {
  font-size: 24px;
  margin: var(--space-8) 0 var(--space-4);
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 19px;
  margin: var(--space-6) 0 var(--space-3);
}

.article p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
  line-height: 1.7;
}

.article ul,
.article ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

.article ul li,
.article ol li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
  position: relative;
  padding-left: var(--space-3);
}

.article ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.article ol {
  list-style: decimal;
  padding-left: var(--space-6);
}

.article ol li {
  padding-left: 0;
}

.article ol li::before {
  display: none;
}

.article strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

/* .fade-in is kept as a hook for future scroll-reveal but does NOT hide content,
   ensuring the site renders identically with or without JS / when crawled. */
.fade-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

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

  .banner {
    padding: var(--space-8) var(--space-5);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-5);
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration-normal) var(--easing), opacity var(--duration-fast) var(--easing);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: var(--space-2) 0;
    font-size: 17px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-link.btn {
    border: 1px solid var(--color-accent);
    padding: var(--space-3);
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: var(--space-10) 0 var(--space-8);
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: var(--space-6);
    min-height: auto;
  }

  .banner {
    padding: var(--space-6) var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
