:root {
  --primary: #4f46e5;
  --accent: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e2e8f0;
  --radius: 18px;
  --header-h: 68px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { 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;
  transition: opacity 0.3s ease;
}

body.is-loading { opacity: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
section { scroll-margin-top: var(--header-h); }
svg { display: block; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }

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

.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.brand-mark svg { width: 20px; height: 20px; }

.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.nav a:hover { color: var(--ink); }

.lang-switch { display: flex; padding: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; }
.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 6rem 0 7rem;
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 60%),
    #0b1023;
}

.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.75); max-width: 38rem; }

.badges { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badges li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}
.badges svg { width: 16px; height: 16px; color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 25px -10px var(--primary); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.hero-card {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.pulse {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.pulse svg { width: 32px; height: 32px; }
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.6); opacity: 0; }
}

.hero-card-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.hero-price { display: flex; align-items: baseline; gap: 0.5rem; font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; margin: 0.25rem 0 1.5rem; }
.hero-price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.7); }

.hero-card-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hero-card-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.95rem; }
.hero-card-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card-list span { color: rgba(255, 255, 255, 0.75); }

/* Sections */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
}
.icon svg { width: 24px; height: 24px; }

.price-card, .feature, .option {
  position: relative;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover, .feature:hover, .option:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.25); }

.price-card h3, .feature h3, .option h3 { font-size: 1.15rem; }
.price-card p, .feature p, .option p { color: var(--muted); margin: 0; }

.price { display: flex; flex-direction: column; margin: 0.25rem 0 1rem; }
.price .amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.price .unit { font-size: 0.85rem; color: var(--muted); }

.tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.price-card.is-highlight {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(160deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
}
.price-card.is-highlight .unit, .price-card.is-highlight p { color: rgba(255, 255, 255, 0.82); }
.price-card.is-highlight .icon, .price-card.is-highlight .tag { color: #fff; background: rgba(255, 255, 255, 0.18); }

.option ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.5rem; }
.option li { display: flex; gap: 0.5rem; align-items: flex-start; }
.option li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* Calculator */
.calc { padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.calc-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; font-size: 1.25rem; cursor: pointer; color: var(--ink); background: var(--bg-alt); transition: background 0.15s; }
.stepper button:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 12%, white); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper output { min-width: 56px; text-align: center; font-weight: 700; font-size: 1.1rem; }

.calc-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.calc-table th, .calc-table td { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.calc-table th { text-align: left; font-weight: 400; color: var(--muted); }
.calc-table td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.calc-table tfoot th, .calc-table tfoot td { border-bottom: 0; color: var(--ink); }
.calc-table .total th, .calc-table .total td { font-weight: 800; font-size: 1.25rem; padding-top: 1.25rem; }
.calc-table .total td { color: var(--primary); }

/* CTA */
.cta {
  text-align: center;
  color: #fff;
  padding: 4rem 2rem;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 80% 0%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%),
    linear-gradient(135deg, var(--primary), #1e1b4b);
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

.load-error { max-width: 600px; margin: 4rem auto; padding: 1.5rem; border-radius: 12px; background: #fef2f2; color: #991b1b; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .lang-switch { margin-left: auto; }
}

@media (max-width: 600px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 5rem; }
  .section { padding: 4rem 0; }
  .hero-price { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
