/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --ink: #0f1115;
  --ink-soft: #5b5d6b;
  --ink-faint: #8a8c99;
  --line: #e6e7ee;
  --brand: #3654ff;
  --brand-dark: #2540d1;
  --brand-soft: #eef1ff;
  --brand-grad: linear-gradient(135deg, #3654ff, #6d5bff);
  --accent: #ffb020;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px -2px rgba(15, 17, 21, 0.08);
  --shadow-md: 0 14px 28px -10px rgba(15, 17, 21, 0.14);
  --shadow-lg: 0 30px 60px -20px rgba(15, 17, 21, 0.22);
  --container: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; color: var(--ink-soft); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

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

.container-narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-sm), 0 8px 20px -8px rgba(54, 84, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 10px 24px -8px rgba(54, 84, 255, 0.6);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav[hidden],
.menu-toggle[hidden] {
  display: none;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-bar {
  flex: 1;
  max-width: 800px;
  margin: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 16px 26px;
  color: var(--ink-faint);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  background: #fff;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
}

.search-bar input::placeholder { color: var(--ink-faint); }

.search-bar input::-webkit-search-cancel-button { cursor: pointer; }

.no-results {
  text-align: center;
  padding: 40px 0;
  font-size: 15px;
}

@media (max-width: 720px) {
  .search-bar { margin: 0 16px; padding: 11px 18px; }
  .search-bar input { font-size: 15px; }
}

@media (max-width: 560px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 10px; }
  .search-bar { order: 3; margin: 0; max-width: 100%; width: 100%; }
}

.auth-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.auth-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-link:hover { color: var(--brand); }

.forgot-link {
  align-self: flex-end;
  margin-top: -6px;
}

.auth-email {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-menu {
  position: relative;
}

.avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}

.avatar-btn:hover .avatar {
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 60;
}

.avatar-dropdown-email {
  padding: 8px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  word-break: break-all;
}

.avatar-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.avatar-dropdown-item:hover {
  background: var(--bg-alt);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 100px 0 76px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 1px 1px, rgba(54, 84, 255, 0.12) 1.5px, transparent 0) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 78%);
  mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(36px, 4.2vw, 54px);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item .icon { color: var(--brand); }

.trust-item div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.trust-item strong { font-size: 15px; font-weight: 700; }
.trust-item span { font-size: 13px; color: var(--ink-faint); }

.hero-visual {
  position: relative;
  height: 400px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  z-index: 0;
}

.blob-1 {
  width: 260px;
  height: 260px;
  background: var(--brand);
  top: -30px;
  right: 40px;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: 10px;
  left: 0;
  opacity: 0.22;
}

.doc-card {
  position: absolute;
  width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  border: 1px solid var(--line);
}

.doc-card-1 {
  top: 6px;
  right: 60px;
  transform: rotate(3deg);
  z-index: 2;
}

.doc-card-2 {
  top: 100px;
  right: -10px;
  transform: rotate(-7deg);
  z-index: 1;
  background: var(--brand-soft);
  border-color: transparent;
}

.doc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand);
  margin-bottom: 18px;
}

.doc-line {
  height: 8px;
  border-radius: 6px;
  background: var(--line);
  margin-bottom: 12px;
}

.doc-card-2 .doc-line { background: rgba(54, 84, 255, 0.16); }

.doc-line.short { width: 60%; }

.doc-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 9px;
  border-radius: 999px;
}

.doc-card-price {
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

/* ============ Strip ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.strip-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.strip-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.strip-inner .icon { color: var(--brand); }

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 12px;
}

.section-sub { font-size: 16px; }

/* ============ Products ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product-card[hidden] {
  display: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-thumb {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  padding: 14px;
}

.product-thumb .icon { opacity: 0.9; }

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.placeholder-thumb {
  flex-direction: column;
  gap: 8px;
  background: var(--bg-alt);
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--line);
}

.placeholder-thumb .icon { opacity: 0.5; }

.thumb-note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-body { padding: 20px; }

.product-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.product-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.product-body p {
  font-size: 14px;
  min-height: 42px;
  margin-bottom: 12px;
}

.placeholder-text {
  color: var(--ink-faint);
  font-style: italic;
}

.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.stars span {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
  margin-left: 4px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 20px;
  font-weight: 800;
}

.view-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s var(--ease);
}

.product-card:hover .view-link { gap: 8px; }

/* ============ Product detail page ============ */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.breadcrumb:hover { color: var(--brand); }
.breadcrumb .icon { transform: rotate(180deg); }

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.cover-placeholder {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-faint);
}

.cover-placeholder .icon { opacity: 0.5; }

.cover-placeholder span {
  font-size: 14px;
  font-weight: 600;
}

.cover-image {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.detail-info h1 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 12px;
}

.detail-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 18px;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 16px;
}

.detail-description {
  font-size: 16px;
  margin: 0 0 22px;
}

.detail-list-label {
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.detail-list li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 800;
  flex-shrink: 0;
}

.detail-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.btn-disabled {
  background: var(--line);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* ============ Auth pages ============ */
.auth-section {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.settings-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.settings-card:last-child { margin-bottom: 0; }

.settings-card h1 {
  font-size: 18px;
  margin-bottom: 16px;
}

.settings-head {
  text-align: left;
  margin-bottom: 32px;
}

.settings-note {
  margin-bottom: 16px;
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-sub {
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field input,
.form-field select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-field input:disabled {
  background: var(--bg-alt);
  color: var(--ink-faint);
}

.form-field input:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--brand);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-message {
  font-size: 14px;
  margin: 0;
  min-height: 1em;
}

.auth-message.error { color: #dc2626; }
.auth-message.success { color: #16a34a; }

.auth-switch {
  margin-top: 24px;
  font-size: 14px;
  text-align: center;
}

.auth-switch a {
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
}

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.feature-icon {
  color: var(--brand);
  background: var(--brand-soft);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p { font-size: 14px; }

/* ============ Testimonials ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  margin: 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
}

.testimonial .stars { margin-bottom: 14px; }

.testimonial p {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 18px;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.faq-item[open] { border-color: var(--brand); }

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .chevron {
  color: var(--brand);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .chevron { transform: rotate(180deg); }

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
}

/* ============ Newsletter ============ */
.newsletter {
  background: var(--ink);
  padding: 64px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 8px;
}

.newsletter p { color: #b7b8c2; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #2c2c36;
  background: #1d1d26;
  color: #fff;
  font-family: var(--font);
  min-width: 240px;
  transition: border-color 0.2s ease;
}

.newsletter-form input:focus-visible {
  outline: none;
  border-color: var(--brand);
}

.newsletter-form input::placeholder { color: #7a7b87; }

.newsletter-message {
  margin: 10px 0 0;
  font-size: 13px;
  min-height: 1em;
}

.newsletter-message.error { color: #f87171; }
.newsletter-message.success { color: #4ade80; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  margin: 0;
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) and (min-width: 721px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .header-actions { gap: 12px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav.nav-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }

  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}
