@import url("./tokens.css");

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ea-font-sans);
  color: var(--ea-text);
  background: var(--ea-bg);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4 {
  font-family: var(--ea-font-sans);
  letter-spacing: -0.02em;
}

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

a {
  color: var(--ea-primary);
  text-decoration: none;
}

a:hover {
  color: var(--ea-primary-dark);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ea-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ea-heading);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ea-text-muted);
}

.site-nav a:hover {
  color: var(--ea-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--ea-radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn--primary {
  background: var(--ea-primary);
  color: #fff;
  box-shadow: var(--ea-shadow-sm);
}

.btn--primary:hover {
  background: var(--ea-primary-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ea-primary);
  border: 1px solid #93c5fd;
}

.btn--ghost:hover {
  background: #eff6ff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn--white {
  background: #fff;
  color: var(--ea-primary);
}

.btn--white:hover {
  background: #eff6ff;
  color: var(--ea-primary-dark);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--ea-heading);
}

/* Hero */
.hero {
  background: var(--ea-gradient-hero);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--ea-radius-pill);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: #fde68a;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual {
  position: relative;
}

.mock-panel {
  background: var(--ea-surface);
  border-radius: var(--ea-radius-lg);
  box-shadow: var(--ea-shadow-lg);
  overflow: hidden;
  color: var(--ea-text);
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
}

.mock-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ea-gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.mock-panel-bar img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.mock-panel-body {
  padding: 16px;
  background: #fafbfc;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
  border-radius: var(--ea-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ea-border);
}

.mock-table th {
  background: var(--ea-primary-light);
  color: #1e40af;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
}

.mock-table td {
  padding: 8px 10px;
  border-top: 1px solid var(--ea-border);
  color: var(--ea-text-muted);
}

.mock-export-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--ea-radius-sm);
  background: var(--ea-primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

/* Stats */
.stats {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--ea-surface);
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--ea-shadow-sm);
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--ea-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--ea-text-subtle);
  margin-top: 4px;
}

/* Templates */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.template-group {
  background: var(--ea-bg);
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius-md);
  padding: 24px;
}

.template-group h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ea-heading);
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--ea-radius-pill);
  background: var(--ea-surface);
  border: 1px solid var(--ea-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ea-text);
  box-shadow: var(--ea-shadow-sm);
}

/* Sections */
.section {
  padding: 80px 0;
}

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ea-heading);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ea-text-muted);
  font-size: 16px;
}

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

.feature-card {
  background: var(--ea-surface);
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius-md);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.section--alt .feature-card {
  background: var(--ea-bg);
}

.feature-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--ea-shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--ea-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ea-heading);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ea-text-muted);
  line-height: 1.65;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--ea-radius-md);
  background: var(--ea-surface);
  border: 1px solid var(--ea-border);
}

.step-num {
  font-size: 32px;
  font-weight: 800;
  color: #bfdbfe;
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ea-heading);
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ea-text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--ea-surface);
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.pricing-card--free {
  background: var(--ea-bg-alt);
}

.pricing-card--popular {
  border-color: var(--ea-primary);
  box-shadow: 0 0 0 1px var(--ea-primary), var(--ea-shadow-md);
}

.pricing-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ea-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--ea-radius-pill);
  white-space: nowrap;
}

.pricing-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--ea-heading);
}

.pricing-meta {
  font-size: 13px;
  color: var(--ea-text-subtle);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--ea-primary);
  line-height: 1.2;
}

.pricing-period {
  font-size: 12px;
  color: var(--ea-text-subtle);
  margin-bottom: 16px;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ea-text-muted);
  padding: 12px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--ea-radius-sm);
  max-width: 560px;
  margin-inline: auto;
}

/* CTA band */
.cta-band {
  background: var(--ea-gradient-brand);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

/* Footer */
.site-footer {
  background: var(--ea-heading);
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-tagline {
  margin: 0;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.footer-lang-btn:hover {
  color: #fff;
}

.footer-lang-btn.is-active {
  color: #fff;
  font-weight: 700;
}

.footer-lang-list--inline {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.footer-lang-list--inline .footer-lang-btn:not(.is-active)::after {
  content: none;
}

.footer-bottom--doc {
  align-items: center;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-home-link {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.footer-home-link:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
}

.footer-disclaimer {
  max-width: 480px;
  line-height: 1.5;
}

/* Privacy page */
.doc-page {
  padding: 48px 0 80px;
}

.doc-header {
  margin-bottom: 32px;
}

.doc-header h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: var(--ea-heading);
}

.doc-lead {
  margin: 0 0 8px;
  color: var(--ea-text-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
}

.doc-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ea-text-subtle);
}

.doc-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-section {
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius-md);
  background: var(--ea-surface);
  padding: 20px 22px;
}

.doc-section h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--ea-heading);
}

.doc-section p,
.doc-section li {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ea-text-muted);
  line-height: 1.7;
}

.doc-section ul {
  margin: 0;
  padding-left: 20px;
}

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

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

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .mock-panel {
    transform: none;
  }

  .stats-grid,
  .templates-grid,
  .features-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ea-surface);
    border-bottom: 1px solid var(--ea-border);
    padding: 16px 20px;
    gap: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .stats-grid,
  .templates-grid,
  .features-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 56px 0;
  }
}
