:root {
  --ink: #081527;
  --muted: #5d6b7f;
  --line: #dbe5ef;
  --surface: #f5f8fb;
  --white: #fff;
  --navy: #061426;
  --cyan: #16d7d0;
  --blue: #2f6bff;
  --violet: #7657ff;
  --coral: #ff647c;
  --green: #19ad74;
  --shadow: 0 24px 70px rgba(7, 27, 54, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -80px; padding: 12px 18px; background: var(--white); border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(217, 229, 240, .82);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 19px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: #344259; font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 21px; border: 1px solid transparent; border-radius: 13px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 14px 32px rgba(53, 90, 243, .24); }
.btn-light { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-dark { color: var(--white); background: var(--navy); }
.btn-small { min-height: 40px; padding-inline: 16px; font-size: 14px; }
.text-link { color: var(--blue); font-weight: 750; }

.hero { position: relative; overflow: hidden; color: var(--white); background: #061426; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(47,107,255,.25), transparent 32%), radial-gradient(circle at 80% 60%, rgba(22,215,208,.12), transparent 28%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.25fr; min-height: 680px; align-items: center; gap: 46px; padding-block: 78px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #6cf1e4; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 20px 0 24px; font-size: clamp(44px, 6vw, 72px); line-height: 1.04; letter-spacing: -.055em; }
.hero p { max-width: 610px; color: #b9c9dc; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero .btn-light { color: var(--white); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: #8ea6bd; font-size: 13px; }
.hero-note span::before { content: "✓"; margin-right: 7px; color: var(--cyan); }
.hero-visual { position: relative; margin-right: -15vw; }
.hero-visual img { width: 900px; border-radius: 28px 0 0 28px; box-shadow: 0 30px 100px rgba(0,0,0,.36); }

.channel-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.channel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding-block: 25px; }
.channel { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; color: #344259; border: 1px solid #e8eef5; border-radius: 13px; background: #fbfdff; font-weight: 750; font-size: 14px; }
.channel-dot { width: 10px; height: 10px; border-radius: 4px; background: var(--blue); box-shadow: 0 0 0 5px rgba(47,107,255,.1); }
.channel:nth-child(2) .channel-dot { background: var(--cyan); }
.channel:nth-child(3) .channel-dot { background: var(--violet); }
.channel:nth-child(4) .channel-dot { background: var(--coral); }
.channel:nth-child(5) .channel-dot { background: #ff9d36; }
.channel:nth-child(6) .channel-dot { background: var(--green); }

.section { padding-block: 100px; }
.section-soft { background: var(--surface); }
.section-dark { color: var(--white); background: var(--navy); }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.kicker { margin-bottom: 12px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
h3 { margin-bottom: 11px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 18px; }
.section-dark .lead { color: #aebed0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 35px rgba(8, 32, 63, .055); }
.card p { margin-bottom: 0; color: var(--muted); }
.icon { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border-radius: 15px; color: var(--blue); background: #eaf0ff; font-size: 23px; font-weight: 900; }
.icon.teal { color: #078c87; background: #ddfbf7; }
.icon.violet { color: var(--violet); background: #efebff; }
.icon.coral { color: #d94b63; background: #ffe9ed; }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.dashboard-card { padding: 24px; border: 1px solid #dbe7f1; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.dash-title { font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #087351; background: #ddf9ee; font-size: 12px; font-weight: 800; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #19ad74; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.metric { padding: 16px; border-radius: 16px; background: var(--surface); }
.metric small { display: block; color: var(--muted); }
.metric strong { display: block; margin-top: 4px; font-size: 23px; }
.bars { display: flex; height: 180px; align-items: end; gap: 9px; padding-top: 28px; }
.bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--cyan), var(--blue)); opacity: .92; }
.check-list { display: grid; gap: 15px; margin: 27px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; color: #334156; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 12px; font-weight: 900; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; }
.stat { padding: 34px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border: 0; }
.stat strong { display: block; color: var(--cyan); font-size: 36px; letter-spacing: -.04em; }
.stat span { color: #aebed0; font-size: 14px; }

.quote { padding: 34px; border-radius: 24px; background: #10213a; }
.quote p { color: #d8e2ed; font-size: 18px; }
.quote footer { color: #91a6bd; font-size: 14px; }

.page-hero { padding-block: 88px 74px; background: linear-gradient(180deg, #f4f8ff, #fff); }
.page-hero .container { display: grid; grid-template-columns: minmax(0, 780px) 1fr; gap: 40px; align-items: end; }
.page-hero h1 { color: var(--ink); font-size: clamp(42px, 6vw, 66px); }
.page-hero p { color: var(--muted); font-size: 19px; }
.mini-panel { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }

.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.integration-card { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.integration-mark { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); font-weight: 900; }
.integration-card p { margin: 0; color: var(--muted); font-size: 14px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 22px; }
.price-card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: white; }
.price-card.popular { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.popular-tag { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 999px; color: white; background: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.price { margin-block: 20px; font-size: 40px; font-weight: 850; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: normal; }
.price-card ul { min-height: 205px; padding-left: 20px; color: var(--muted); }
.price-card li { margin-bottom: 10px; }

.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #ccd9e6; border-radius: 12px; outline: 0; background: #fbfdff; padding: 13px 14px; transition: .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.1); }
.field textarea { min-height: 125px; resize: vertical; }
.form-note { color: var(--muted); font-size: 12px; }
.form-status { display: none; margin-top: 16px; padding: 13px 15px; border-radius: 12px; font-size: 14px; }
.form-status.show { display: block; }
.form-status.success { color: #086e4d; background: #e0f8ee; }
.form-status.error { color: #a53445; background: #ffeaee; }

.login-wrap { display: grid; min-height: calc(100vh - 76px); grid-template-columns: 1fr 1fr; }
.login-aside { display: grid; padding: 70px; place-items: center; color: white; background: var(--navy); }
.login-aside > div { max-width: 500px; }
.login-main { display: grid; padding: 40px; place-items: center; }
.login-card { width: min(430px, 100%); }
.login-card h1 { color: var(--ink); font-size: 42px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; border-radius: 30px; color: white; background: linear-gradient(125deg, #10294d, #123b76 55%, #216b87); box-shadow: var(--shadow); }
.cta h2 { max-width: 720px; margin-bottom: 8px; font-size: clamp(31px, 4vw, 46px); }
.cta p { margin: 0; color: #c1d2e4; }

.site-footer { padding-block: 64px 28px; color: #91a4b9; background: #04101f; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: white; }
.site-footer h3 { color: white; font-size: 14px; }
.footer-links { display: grid; gap: 10px; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 50px; font-size: 30px; }
.prose p, .prose li { color: var(--muted); }
.prose code { padding: 2px 6px; border-radius: 5px; background: var(--surface); }
.notice { padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 8px 14px 14px 8px; background: #eef4ff; color: #344259; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto; display: none; padding: 22px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); background: white; }
  .nav-links.open { display: flex; }
  .nav-actions .btn-light { display: none; }
  .hero-grid, .feature-split, .form-layout, .page-hero .container { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 70px; }
  .hero-visual { margin: 10px -20px -78px 10%; }
  .hero-visual img { width: 110%; }
  .channel-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-3, .pricing-grid, .integration-grid { grid-template-columns: 1fr 1fr; }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .login-wrap { grid-template-columns: .8fr 1.2fr; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav { min-height: 68px; }
  .nav-links { top: 68px; }
  .nav-actions .btn-primary { display: none; }
  .hero-grid { min-height: 0; padding-block: 62px 54px; }
  h1 { font-size: 43px; }
  .hero-visual { display: none; }
  .hero-actions .btn { width: 100%; }
  .channel-grid, .grid-2, .grid-3, .grid-4, .pricing-grid, .integration-grid, .stats, .field-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 72px; }
  .feature-split { gap: 42px; }
  .metric-grid { grid-template-columns: 1fr; }
  .stats { display: grid; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:last-child { border-bottom: 0; }
  .cta { padding: 32px 25px; flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-main { padding: 60px 20px; }
  .form-card { padding: 24px; }
}

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