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

:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --card: #ececea;
  --ph: #dedddb;
  --ph-dark: #3d3d3b;
  --text: #141413;
  --muted: #73736e;
  --border: #e4e3e0;
  --border-strong: #d6d5d1;
  --dark: #161615;
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

::selection {
  background: var(--text);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 100% - 48px);
}

/* ============ Placeholders ============ */
.ph {
  background: var(--ph);
  border-radius: 16px;
}

.ph-dark {
  background: var(--ph-dark);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

/* ============ Type ============ */
h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
}

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn-dark:hover {
  background: #2c2c2a;
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--surface);
}

.btn-light {
  background: #fff;
  color: var(--text);
}

.btn-light:hover {
  background: #e9e9e7;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px 10px 26px;
  box-shadow: 0 8px 30px rgba(20, 20, 19, 0.05);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.8;
}

.nav-login:hover {
  opacity: 1;
}

/* ============ Hero ============ */
.hero {
  padding: clamp(72px, 10vw, 120px) 0 0;
  text-align: center;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 24px auto 0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-media {
  margin-top: clamp(48px, 6vw, 72px);
  width: 100%;
  height: clamp(380px, 58vw, 700px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ============ Categories ============ */
.categories {
  padding: clamp(64px, 8vw, 96px) 0 0;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  border-color: var(--border-strong);
}

.tab.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ============ Features ============ */
.features {
  padding-top: clamp(64px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 440px;
}

.feature-content {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.feature-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.feature-content p {
  font-size: 15px;
  color: var(--muted);
  max-width: 400px;
}

.feature-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.feature-media {
  min-height: 320px;
  border-radius: 0;
}

/* ============ Testimonials ============ */
.testimonials {
  padding: clamp(88px, 11vw, 140px) 0 0;
}

.testimonial-grid {
  columns: 3;
  column-gap: 20px;
  margin-top: 56px;
}

.testimonial {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial blockquote {
  font-size: 15px;
  line-height: 1.6;
}

.testimonial-logo {
  height: 26px;
  width: 92px;
  border-radius: 7px;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial figcaption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.testimonial figcaption em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* ============ Showcase ============ */
.showcase {
  padding: clamp(88px, 11vw, 140px) 0 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.showcase-media {
  aspect-ratio: 3 / 4;
  width: 100%;
  transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-media {
  transform: translateY(-4px);
}

.showcase-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}

.showcase-item figcaption strong {
  font-size: 14px;
  font-weight: 600;
}

.showcase-item figcaption span {
  font-size: 13px;
  color: var(--muted);
}

/* ============ Pricing ============ */
.pricing {
  padding: clamp(88px, 11vw, 140px) 0 0;
}

.billing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.billing-toggle button {
  padding: 9px 22px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-toggle button.is-active {
  background: var(--text);
  color: #fff;
}

.price-card {
  max-width: 440px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 70px rgba(20, 20, 19, 0.07);
}

.price-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.price {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-currency {
  font-size: 28px;
  font-weight: 600;
  vertical-align: 20px;
  margin-right: 2px;
}

.price-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}

.price-features {
  list-style: none;
  margin-top: 28px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.price-features li:last-child {
  border-bottom: 0;
}

.price-features li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.price-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ============ FAQ ============ */
.faq {
  padding: clamp(88px, 11vw, 140px) 0 0;
}

.faq-list {
  margin-top: 40px;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: opacity 0.2s ease;
}

.faq-list summary:hover {
  opacity: 0.75;
}

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

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-list details[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-list details p {
  padding: 0 40px 22px 4px;
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
}

/* ============ Newsletter ============ */
.newsletter {
  padding-top: clamp(88px, 11vw, 140px);
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--dark);
  color: #f5f5f4;
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}

.newsletter-card h2 {
  color: #fff;
}

.newsletter-content > p {
  margin-top: 16px;
  font-size: 15px;
  color: #a3a39e;
  max-width: 400px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid #3a3a38;
  background: #1f1f1e;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-form input::placeholder {
  color: #85857f;
}

.newsletter-form input:focus {
  border-color: #6b6b66;
}

.newsletter-note {
  margin-top: 14px;
  font-size: 13px;
  color: #85857f;
}

.newsletter-media {
  min-height: 300px;
  border-radius: 18px;
}

/* ============ Footer ============ */
.footer {
  padding: clamp(72px, 9vw, 104px) 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 7vw, 110px);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 80px);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ph);
  transition: background 0.2s ease;
}

.socials a:hover {
  background: var(--border-strong);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .testimonial-grid {
    columns: 2;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .feature-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-media {
    min-height: 280px;
    order: -1;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
  }

  .newsletter-media {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-login {
    display: none;
  }

  .navbar-inner {
    grid-template-columns: auto 1fr;
    padding: 10px 12px 10px 22px;
  }

  .nav-actions {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .testimonial-grid {
    columns: 1;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .feature-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
