/* ===== BAS Digital Design System ===== */

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

:root {
  /* Colors */
  --bg-primary: #0B0F1A;
  --bg-secondary: #111827;
  --bg-card: #1A1F2E;
  --bg-card-hover: #222838;
  --bg-accent-subtle: rgba(79, 125, 243, 0.08);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent: #4F7DF3;
  --accent-hover: #6B91F7;
  --accent-light: rgba(79, 125, 243, 0.15);
  --green: #00C48C;
  --green-light: rgba(0, 196, 140, 0.15);
  --orange: #F59E0B;
  --red: #EF4444;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-y: 120px;
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.15s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 800px; }
.container--wide { max-width: 1400px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.text-center { text-align: center; }
.text-center .subtitle { margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 125, 243, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  color: var(--accent);
  padding: 14px 0;
}
.btn--ghost:hover { color: var(--accent-hover); }
.btn--ghost svg { transition: transform var(--duration) var(--ease); }
.btn--ghost:hover svg { transform: translateX(4px); }

.btn--green {
  background: var(--green);
  color: #fff;
}
.btn--green:hover {
  background: #00d69a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 196, 140, 0.3);
}

.btn--large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav__link:hover,
.nav__link.active { color: var(--text-primary); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__lang {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: transparent;
  position: relative;
}

.nav__lang:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: none;
  min-width: 120px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.lang-dropdown.open { display: block; }

.lang-dropdown__item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: 6px;
  text-align: left;
  transition: all var(--duration) var(--ease);
}

.lang-dropdown__item:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}

/* Mobile menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__burger span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 var(--section-y);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79, 125, 243, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0, 196, 140, 0.08), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-light);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 20px; }

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero split layout */
.hero--with-visual .hero__content { max-width: 520px; }

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

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__visual {
  position: relative;
  width: 100%;
}

/* Dashboard Mockup */
.dashboard-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  font-size: 11px;
}
.dashboard-mock__bar {
  background: var(--bg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dashboard-mock__dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.dashboard-mock__title { font-size:10px; color:var(--text-secondary); margin-left:auto; }
.dashboard-mock__body { display:flex; height:280px; }
.dashboard-mock__sidebar {
  width: 100px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.dm-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: default;
  font-size: 10px;
  white-space: nowrap;
}
.dm-nav.active { background: var(--accent-light); color: var(--accent); }
.dashboard-mock__main { flex: 1; padding: 12px; display:flex; flex-direction:column; gap:10px; overflow:hidden; }
.dm-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.dm-kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.dm-kpi__label { color:var(--text-secondary); font-size:9px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.dm-kpi__val { font-weight:700; font-size:12px; color:var(--text); }
.dm-kpi__trend { font-size:9px; margin-top:2px; }
.dm-kpi__trend.up { color:var(--green); }
.dm-chart { background:rgba(255,255,255,0.02); border:1px solid var(--border); border-radius:8px; padding:8px 10px; flex-shrink:0; }
.dm-chart__label { font-size:9px; color:var(--text-secondary); margin-bottom:6px; text-transform:uppercase; letter-spacing:.05em; }
.dm-chart__bars { display:flex; align-items:flex-end; gap:4px; height:50px; }
.dm-bar {
  flex:1;
  background: rgba(79,125,243,0.3);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: background 0.3s;
}
.dm-bar.active { background: var(--accent); }
.dm-bar span { position:absolute; bottom:-14px; left:50%; transform:translateX(-50%); font-size:8px; color:var(--text-secondary); white-space:nowrap; }
.dm-table { flex:1; overflow:hidden; }
.dm-table__row { display:grid; grid-template-columns:40px 1fr 70px 55px; gap:6px; padding:4px 0; align-items:center; border-bottom:1px solid rgba(255,255,255,0.04); font-size:9px; }
.dm-table__head { color:var(--text-secondary); font-size:8px; text-transform:uppercase; letter-spacing:.05em; }
.dm-badge { border-radius:3px; padding:1px 5px; font-size:8px; font-weight:600; text-align:center; }
.dm-badge.green { background:rgba(0,196,140,0.2); color:var(--green); }
.dm-badge.yellow { background:rgba(255,200,0,0.2); color:#f0c040; }

@media (max-width: 900px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__visual { display:none; }
}

/* --- Sections --- */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--alt { background: var(--bg-secondary); }

.section__header {
  margin-bottom: 64px;
}

.section__header .overline { margin-bottom: 16px; }
.section__header h2 { margin-bottom: 16px; }

/* --- Cards Grid --- */
.grid {
  display: grid;
  gap: 24px;
}

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

/* --- Feature Card --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.card__icon--blue { background: var(--accent-light); color: var(--accent); }
.card__icon--green { background: var(--green-light); color: var(--green); }
.card__icon--orange { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

.card h4 { margin-bottom: 8px; }

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Stats --- */
.stats {
  display: flex;
  gap: 48px;
  padding: 48px 0;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Advantages / Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.feature-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.feature-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.feature-item__content h4 { margin-bottom: 4px; font-size: 1rem; }
.feature-item__content p { color: var(--text-secondary); font-size: 0.875rem; }

/* --- Quote / Testimonial --- */
.quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}

.quote__text {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quote__text::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  line-height: 0;
  position: absolute;
  top: 40px;
  left: 40px;
  opacity: 0.3;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}

.quote__name { font-weight: 600; }
.quote__role { font-size: 0.875rem; color: var(--text-secondary); }

/* --- Team --- */
.team-card {
  text-align: center;
  padding: 32px 24px;
}

.team-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent-light), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__name { font-weight: 600; margin-bottom: 4px; }
.team-card__role { font-size: 0.875rem; color: var(--text-secondary); }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.faq-item + .faq-item { margin-top: 12px; }

.faq-item.open { border-color: var(--accent); }

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform var(--duration) var(--ease);
}

.faq-item.open .faq-item__icon { transform: rotate(45deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s var(--ease);
}

.faq-item.open .faq-item__answer { max-height: 500px; }

.faq-item__answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
  padding: var(--section-y) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(79, 125, 243, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 30% 80%, rgba(0, 196, 140, 0.08), transparent);
  pointer-events: none;
}

.cta__content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.125rem; }

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

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand { max-width: 300px; }
.footer__brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer__column h5 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__column a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a { transition: color var(--duration) var(--ease); }
.footer__legal a:hover { color: var(--text-secondary); }

/* --- Integrations Logos --- */
.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.logo-item {
  width: 100px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease);
}

.logo-item:hover { opacity: 1; }

/* --- Tabs / Switcher --- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

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

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Pricing --- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card--featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-card--featured::before {
  content: attr(data-label);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 32px;
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-card__feature svg { color: var(--green); min-width: 18px; }
.pricing-card__feature--disabled { opacity: 0.4; }
.pricing-card__feature--disabled svg { color: var(--text-muted); }

/* --- Steps --- */
.steps {
  display: flex;
  gap: 32px;
  counter-reset: step;
}

.step {
  flex: 1;
  position: relative;
  counter-increment: step;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.9375rem; }

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.modal__close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9375rem; }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--duration) var(--ease);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input { resize: vertical; min-height: 100px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394A3B8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * { transition-delay: calc(var(--i, 0) * 0.05s); }

/* --- Integration Page --- */
.integration-hero {
  padding: 160px 0 80px;
  position: relative;
}

.integration-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-light);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

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

/* --- Calculator --- */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.calc-result {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.calc-result__price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.calc-result__period {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root { --section-y: 80px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-wrap: wrap; }
  .step { min-width: 45%; }
  .hero__visual { display: none; }
  .feature-block { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-y: 60px; }
  html { font-size: 15px; }

  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 24px; }
  .steps { flex-direction: column; }
  .step { min-width: 100%; }

  .hero { padding: 120px 0 60px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }

  .pricing-card { padding: 32px 24px; }
  .quote { padding: 32px; }
  .modal { padding: 32px; }

  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }

  .logos { gap: 24px; }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 80px 24px 40px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open { display: flex; }

.mobile-menu__link {
  display: block;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--duration) var(--ease);
}

.mobile-menu__link:hover { color: var(--text-primary); }

/* --- Legal Content --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.legal-content h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3:first-child { margin-top: 0; }

.legal-content p { margin-bottom: 12px; }

.legal-content ul {
  margin: 8px 0 16px 24px;
  list-style: disc;
}

.legal-content ul li {
  padding: 4px 0;
}

.legal-content strong { color: var(--text-primary); }

/* --- Misc --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--blue { background: var(--accent-light); color: var(--accent); }
.badge--green { background: var(--green-light); color: var(--green); }
.badge--orange { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

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

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Scroll indicator --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(79, 125, 243, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 125, 243, 0.4);
}
