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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  padding: 0 24px;
  margin: 0 auto;
}

/* ===== Typography ===== */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.5rem); font-weight: 600; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.82; }

.btn--primary {
  padding: 14px 36px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 980px;
  font-size: 1rem;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
}

.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  object-fit: cover;
}

/* ===== Hero ===== */
.hero {
  padding: 96px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero__title {
  margin-bottom: 20px;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__free-badge {
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__visual img {
  max-width: 260px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

/* ===== Why Section ===== */
.why {
  padding: 96px 0;
  background: var(--bg-elevated);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-card__icon {
  display: block;
  margin-bottom: 16px;
}

.why-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

.why-card__desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== Features Section ===== */
.features {
  padding: 96px 0;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  margin-bottom: 96px;
}

.feature:last-child { margin-bottom: 0; }

.feature--alt { direction: rtl; }
.feature--alt > * { direction: ltr; }

.feature__visual img {
  max-width: 240px;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature__title {
  margin-bottom: 16px;
  color: var(--accent);
}

.feature__desc {
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ===== Devices Section ===== */
.devices {
  padding: 96px 0;
  background: var(--bg-elevated);
  text-align: center;
}

.devices__sub {
  color: var(--fg-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.devices__list {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.devices__item {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  padding: 10px 24px;
  border: 2px solid var(--accent);
  border-radius: 980px;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 96px 0;
}

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

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq__item.is-open .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding-bottom: 22px;
  color: var(--fg-muted);
  line-height: 1.8;
}

.faq__item.is-open .faq__answer {
  display: block;
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background: var(--accent);
}

.final-cta__title {
  color: var(--accent-fg);
  margin-bottom: 40px;
}

.final-cta__badge:hover { opacity: 0.82; }
.final-cta__badge img { margin: 0 auto; }

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== Responsive: 960px ===== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__cta { align-items: center; }
  .hero__visual { order: -1; }

  .feature {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature--alt { direction: ltr; }

  .feature__visual img { max-width: 200px; }
}

/* ===== Responsive: 640px ===== */
@media (max-width: 640px) {
  .hero,
  .why,
  .features,
  .devices,
  .faq-section { padding: 64px 0; }

  .final-cta { padding: 80px 0; }

  .feature { margin-bottom: 64px; }

  .section-title { margin-bottom: 32px; }

  .nav__inner { height: 56px; }
}
