/* ── Variables ── */
:root {
  --bg: #18181B;
  --bg-elevated: #1f1f23;
  --bg-card: #232327;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --orange: #F97316;
  --pink: #EC4899;
  --gradient: linear-gradient(135deg, var(--orange), var(--pink));
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --nav-break: 768px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

/* ── Layout ── */
.container {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Typography ── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-headline-top {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--text);
}

.hero-headline-price {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  color: var(--text);
}

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

/* ── Header ── */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  min-width: 0;
  flex-shrink: 1;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-sm {
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(236, 72, 153, 0.35);
}

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

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

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

.btn-outline:hover {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.06);
}

.btn-block {
  width: 100%;
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(3rem, 8vw, 5rem);
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero {
    min-height: 90vh;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(249, 115, 22, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(236, 72, 153, 0.06), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  margin-block: 1.5rem 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 200px;
  padding-block: 1rem;
}

.hero-logo-ring {
  position: relative;
  z-index: 1;
}

.hero-logo-ring img {
  width: clamp(160px, 20vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.2));
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

@media (hover: hover) {
  .feature-card:hover {
    border-color: var(--border-hover);
  }
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s;
}

.price-card:hover {
  border-color: var(--border-hover);
}

.price-card-featured {
  border-color: rgba(249, 115, 22, 0.3);
}

.price-card-header {
  margin-bottom: 1.5rem;
}

.price-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price {
  margin-bottom: 0.35rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-features {
  flex: 1;
  margin-bottom: 1.75rem;
}

.price-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
  padding-left: 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

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

.price-features li::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features li.muted {
  opacity: 0.6;
}

.price-features li.muted::before {
  content: '–';
}

.pricing-extras {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

.extra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.extra-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.extra-price {
  margin-bottom: 1.25rem;
}

.extra-price .price-amount {
  font-size: 1.75rem;
}

.extra-card-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.extra-card-compact p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.extra-card-compact strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Contact ── */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact-content p {
  color: var(--text-muted);
}

.contact-action {
  text-align: center;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-note code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* ── Footer ── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .price-card-featured {
    order: -1;
  }

  .pricing-extras {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive: Mobile landscape & small tablet ── */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: clamp(3rem, 8vw, 4.5rem) 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-headline {
    align-items: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

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

  .hero-visual {
    order: -1;
    min-height: 180px;
    margin-bottom: 0.5rem;
  }

  .hero-logo-ring img {
    width: clamp(120px, 35vw, 160px);
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .price-card {
    padding: 1.75rem 1.5rem;
    padding-top: 2.25rem;
  }

  .price-amount {
    font-size: 1.75rem;
  }

  .contact-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(1.5rem, 5vw, 2rem);
    gap: 2rem;
  }

  .contact-action .btn-lg {
    width: 100%;
    max-width: 360px;
  }

  .extra-card {
    padding: 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--container-pad) calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 95;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 1rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 0.75rem;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .footer {
    padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ── Responsive: Small phones ── */
@media (max-width: 480px) {
  .hero-headline-top {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .hero-headline-price {
    font-size: clamp(2.5rem, 13vw, 3.25rem);
  }

  .logo-text {
    display: none;
  }

  .footer .logo-text {
    display: inline;
  }

}

/* ── Responsive: Large screens ── */
@media (min-width: 1200px) {
  .hero-grid {
    gap: 4rem;
  }

  .pricing-grid {
    gap: 1.5rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
