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

:root {
  --bg-page: #f4f1ea;
  --bg-soft: #eeebe3;
  --bg-surface: #ffffff;
  --bg-tint: #f7f5ef;
  --text-primary: #172133;
  --text-secondary: #4a5568;
  --text-muted: #72809a;
  --border-soft: #ded8cb;
  --border-strong: #c6bcab;
  --accent: #b96e3c;
  --accent-strong: #9f592b;
  --navy: #122238;
  --navy-soft: #1d314b;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max-w: 1160px;
  --content-pad: 24px;
  --header-h: 72px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 12px 26px rgba(9, 20, 37, 0.08);
  --shadow-md: 0 20px 40px rgba(9, 20, 37, 0.12);
  --shadow-lg: 0 30px 60px rgba(9, 20, 37, 0.18);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 90% 2%, rgba(185, 110, 60, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 8% 14%, rgba(18, 34, 56, 0.06) 0%, transparent 28%),
    linear-gradient(180deg, var(--bg-page) 0%, #f2efe7 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== ENTRANCE ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2) { transition-delay: 0.06s; }
.feature-card:nth-child(3) { transition-delay: 0.12s; }
.feature-card:nth-child(4) { transition-delay: 0.04s; }
.feature-card:nth-child(5) { transition-delay: 0.1s; }
.feature-card:nth-child(6) { transition-delay: 0.16s; }

/* ===== SCROLL WRAPPER ===== */
.page-wrapper {
  height: 100vh;
  padding-top: var(--header-h);
  overflow-y: auto;
  scroll-snap-type: y proximity;
}

.frame {
  min-height: calc(100vh - var(--header-h));
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: rgba(252, 250, 245, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(204, 194, 175, 0.7);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-svg { width: 32px; height: 32px; }
.logo-svg.sm { width: 21px; height: 21px; }

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

.logo-text.sm { font-size: 15px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.22s ease;
}

.nav-link:hover { color: var(--text-primary); }

/* ===== BUTTONS ===== */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  padding: 13px 27px;
  color: #fff8f3;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 22px rgba(154, 86, 40, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(154, 86, 40, 0.32);
}

.btn-sm {
  padding: 10px 20px;
}

.btn-outline {
  padding: 13px 27px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-soft);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--border-strong);
}

/* ===== COMMON SECTION STYLES ===== */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-header.center {
  text-align: center;
  align-items: center;
}

.section-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-desc {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.72;
}

/* ===== HERO ===== */
.frame--hero {
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  background-image: url("images/hero-main.jpg?v=20260212-1245");
  background-size: cover;
  background-position: center 42%;
}

.frame--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 235, 0.66) 0%, rgba(247, 243, 235, 0.34) 35%, rgba(247, 243, 235, 0.08) 62%, rgba(247, 243, 235, 0.2) 100%),
    linear-gradient(180deg, rgba(247, 243, 235, 0.26) 0%, rgba(247, 243, 235, 0.08) 35%, rgba(247, 243, 235, 0.42) 100%);
}

.frame--hero .hero-inner,
.frame--hero .specs-bar {
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: auto;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 40, 61, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(185, 110, 60, 0.15);
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.badge-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 66px;
  line-height: 0.93;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-sub {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.74;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.specs-bar {
  max-width: var(--max-w);
  width: 100%;
  margin: auto auto 0;
  padding: 16px var(--content-pad) 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.spec {
  min-height: 88px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.spec-val {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

.spec-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* ===== HARDWARE ===== */
.frame--hardware {
  position: relative;
  overflow: hidden;
  background-image: url("images/device-exploded.jpg?v=20260212-1149");
  background-size: cover;
  background-position: center 56%;
}

.frame--hardware::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(248, 245, 238, 0.9) 0%,
      rgba(248, 245, 238, 0.64) 24%,
      rgba(248, 245, 238, 0.18) 44%,
      rgba(248, 245, 238, 0.12) 62%,
      rgba(248, 245, 238, 0.72) 82%,
      rgba(248, 245, 238, 0.9) 100%
    );
}

.frame--hardware .hardware {
  position: relative;
  z-index: 1;
}

.hardware {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
  padding: 46px var(--content-pad) 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hardware-header-top .section-title {
  max-width: none;
  white-space: nowrap;
}

.hardware-header-top .section-desc {
  max-width: 62ch;
}

.hardware-header-top {
  padding-top: 34px;
}

.hardware-legend-intro {
  margin: 0 auto 8px;
  margin-top: auto;
  max-width: 780px;
  color: #2f3b52;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}

.hardware-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hw-item {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(198, 188, 171, 0.85);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.hw-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.hw-desc {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* ===== FEATURES ===== */
.frame--features {
  background:
    linear-gradient(180deg, #f7f4ec 0%, #f1eee6 100%);
}

.features {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 70px var(--content-pad);
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 225px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.23s ease, box-shadow 0.23s ease;
}

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

.feature-icon { color: var(--accent-strong); }

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.64;
}

/* ===== CTA + FOOTER ===== */
.frame--cta {
  justify-content: flex-start;
  background:
    radial-gradient(circle at 8% 12%, rgba(185, 110, 60, 0.12) 0%, transparent 28%),
    linear-gradient(180deg, #f5f2ea 0%, #f2eee6 48%, #eee9df 100%);
  padding: 28px var(--content-pad) 0;
}

.cta-section {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 82px var(--content-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  flex: 1;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cta-title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.cta-sub {
  max-width: 630px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.72;
}

.cta-form {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(20, 34, 52, 0.09);
}

.cta-input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  outline: none;
  color: var(--text-primary);
  background: var(--bg-tint);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cta-input::placeholder { color: #8a97ae; }

.cta-input:focus {
  border-color: rgba(185, 110, 60, 0.55);
  background: #fff;
}

.cta-trust {
  color: #74839e;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.cta-legal {
  max-width: 720px;
  color: #687894;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
}

.success-msg {
  display: none;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(185, 110, 60, 0.35);
  background: rgba(185, 110, 60, 0.12);
  color: #7f4a26;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.footer-bar {
  border-top: 1px solid var(--border-soft);
  background: rgba(251, 248, 242, 0.92);
  padding: 20px 0;
}

.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-link {
  color: #6f7f99;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent-strong); }

.footer-copy {
  color: #7b8aa3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.frame--cta .logo-text,
.frame--cta .logo-text.sm {
  color: var(--text-primary);
}

.frame--cta .logo-svg,
.frame--cta .logo-svg.sm {
  filter: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-inner {
    display: block;
    padding-top: 20px;
  }

  .hero-title { font-size: 56px; }

  .hero-text { max-width: min(700px, 100%); }

  .specs-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hardware {
    gap: 20px;
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hardware-header-top .section-title,
  .hardware-header-top .section-desc {
    max-width: none;
  }

  .hardware-header-top .section-title {
    white-space: normal;
  }

  .hardware-header-top {
    padding-top: 18px;
  }

  .hardware-legend-intro {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .hardware-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root { --content-pad: 18px; }

  .section-title { font-size: 34px; }
  .hero-title { font-size: 46px; }
  .hero-sub,
  .section-desc,
  .cta-sub { font-size: 15px; }

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

  .hardware-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-title { font-size: 38px; }

  .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root { --content-pad: 16px; }

  .page-wrapper { scroll-snap-type: none; }

  .nav-link { display: none; }
  .nav { gap: 14px; }

  /* Mobile hero: use portrait image, center content */
  .frame--hero {
    background-image: url("images/hero-mobile.jpg");
    background-position: center center;
  }

  .frame--hero::before {
    background:
      linear-gradient(180deg,
        rgba(247, 243, 235, 0.75) 0%,
        rgba(247, 243, 235, 0.45) 30%,
        rgba(247, 243, 235, 0.15) 55%,
        rgba(247, 243, 235, 0.55) 85%,
        rgba(247, 243, 235, 0.85) 100%);
  }

  .hero-inner {
    padding: 28px var(--content-pad);
  }

  .hero-title {
    font-size: 38px;
    text-shadow: 0 2px 12px rgba(247, 243, 235, 0.7);
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .hero-sub {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    color: #ffffff;
    max-width: 90%;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .specs-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px var(--content-pad) 18px;
  }

  .spec { min-height: 68px; }
  .spec-val { font-size: 17px; }

  .hardware,
  .features {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-title { font-size: 28px; }

  .hardware-legend-intro {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  .hardware-legend {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; padding: 18px; }

  .cta-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cta-title { font-size: 30px; }
  .cta-sub { font-size: 14px; }

  .cta-form {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
    padding: 10px;
  }

  .btn-primary,
  .btn-outline,
  .btn-sm { width: 100%; justify-content: center; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

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