:root {
  --primary: #017FD3;
  --primary-dark: #0367aa;
  --primary-soft: #e6f5ff;
  --ink: #0d2035;
  --muted: #64748b;
  --line: #d9e8f5;
  --surface: #ffffff;
  --bg: #f6fbff;
  --dark: #071a2d;
  --shadow: 0 24px 70px rgba(1, 127, 211, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 251, 255, 0.88);
  border-bottom: 1px solid rgba(217, 232, 245, 0.9);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #44bdff);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(1, 127, 211, 0.28);
}
.brand strong { display: block; line-height: 1.05; font-size: 1.02rem; letter-spacing: -0.04em; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.main-menu { display: flex; align-items: center; gap: 6px; }
.main-menu a {
  padding: 10px 13px;
  color: #31445b;
  font-weight: 800;
  border-radius: 999px;
  transition: 0.2s ease;
}
.main-menu a:hover, .main-menu a.active { color: var(--primary); background: var(--primary-soft); }
.nav-cta, .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nav-cta, .btn-primary { background: var(--primary); color: white; box-shadow: 0 14px 32px rgba(1, 127, 211, 0.27); }
.nav-cta:hover, .btn:hover { transform: translateY(-2px); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: white; color: var(--primary); border: 1px solid var(--line); }
.btn-white { background: white; color: var(--primary); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 999px; transition: 0.2s ease; }

.section-pad { padding: 90px 0; }
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 0%, rgba(1, 127, 211, 0.20), transparent 36%),
    linear-gradient(180deg, #f6fbff, #ffffff);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr); gap: 58px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(1, 127, 211, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.center { margin-left: auto; margin-right: auto; }
h1, h2, h3 { letter-spacing: -0.055em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); margin-bottom: 24px; }
h1 span, h2 span { color: var(--primary); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 16px; }
h3 { font-size: 1.22rem; margin-bottom: 10px; }
.hero-copy p, .section-head p, .page-hero p, .muted { color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-trust div, .stats-grid div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(13, 32, 53, 0.05);
}
.hero-trust strong, .stats-grid strong { color: var(--primary); font-size: 1.45rem; display: block; line-height: 1; }
.hero-trust span, .stats-grid span { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.hero-visual { position: relative; }
.chat-window {
  background: white;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.window-top {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), #3fc0ff);
  color: white;
}
.window-top span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.46); }
.window-top strong { margin-left: 8px; }
.channel-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; background: #f4f9fd; border-bottom: 1px solid var(--line); }
.channel-tabs button { border: 0; border-radius: 999px; background: white; color: #38506a; padding: 10px 8px; font-weight: 800; box-shadow: 0 8px 18px rgba(13, 32, 53, 0.05); }
.chat-body { padding: 22px; display: grid; gap: 14px; }
.ticket-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #f9fcff; }
.ticket-card strong, .ticket-card small { display: block; }
.ticket-card small { color: var(--muted); }
.ticket-card b { color: #8a5600; background: #fff4d8; border-radius: 999px; padding: 7px 10px; font-size: 0.78rem; }
.message { max-width: 84%; padding: 13px 15px; border-radius: 18px; background: #eef5fb; color: #30465e; }
.message.ai { margin-left: auto; color: white; background: linear-gradient(135deg, var(--primary), #35bcff); box-shadow: 0 14px 25px rgba(1, 127, 211, 0.2); }
.reply-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); }
.reply-bar button { border: 0; border-radius: 999px; background: var(--primary); color: white; padding: 10px 14px; font-weight: 900; }
.floating-metric { position: absolute; left: -22px; bottom: 34px; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: 0 22px 48px rgba(13,32,53,0.15); }
.floating-metric strong { display: block; font-size: 2rem; color: var(--primary); line-height: 1; }
.floating-metric span { color: var(--muted); font-weight: 700; }

.logo-strip { background: var(--dark); color: white; padding: 22px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: center; text-align: center; }
.strip-grid span { padding: 11px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); font-weight: 800; color: #d8ecff; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.feature-grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .channel-card, .price-card, .legal-card, .contact-panel, .contact-form, .workflow-card, .code-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 44px rgba(13, 32, 53, 0.06);
}
.feature-card { padding: 28px; }
.feature-card.tall { min-height: 260px; }
.feature-card p, .channel-card p, .price-card p { color: var(--muted); }
.icon, .channel-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.45rem;
  margin-bottom: 18px;
}
.blue-section { background: linear-gradient(180deg, #ffffff, #eaf7ff); border-block: 1px solid var(--line); }
.soft-section { background: #fff; border-top: 1px solid var(--line); }
.split-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr); gap: 44px; align-items: center; }
.steps { display: grid; gap: 14px; margin-top: 28px; }
.steps div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 14px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.steps b { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: white; }
.code-preview { background: #071a2d; color: #dff3ff; padding: 24px; overflow: hidden; }
.code-header { color: #9fc8e6; margin-bottom: 18px; font-weight: 800; }
.code-header span { display: inline-block; width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; margin-right: 6px; }
pre { overflow-x: auto; line-height: 1.8; font-size: 0.95rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats-grid div { padding: 26px 18px; }
.stats-grid strong { font-size: 2.25rem; margin-bottom: 8px; }
.cta-section { padding: 74px 0; background: var(--dark); color: white; }
.cta-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px; border: 1px solid rgba(255,255,255,0.12); border-radius: 34px; padding: 42px; background: radial-gradient(circle at 20% 10%, rgba(1,127,211,.7), transparent 32%), linear-gradient(135deg, #0e3153, #071a2d); }
.cta-box p { color: #bfd8ef; }
.cta-box a:not(.btn) { color: white; font-weight: 900; }

.page-hero { padding: 86px 0 54px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(1,127,211,.18), transparent 36%), #f7fbff; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.channel-card { padding: 28px; }
.channel-card h2 { font-size: 1.5rem; }
.channel-card a { display: inline-block; margin-top: 18px; color: var(--primary); font-weight: 900; }
.workflow-card { padding: 26px; display: grid; gap: 14px; }
.workflow-card div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; background: #f7fbff; border-radius: 18px; color: #334b63; font-weight: 800; }
.workflow-card b { color: var(--primary); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 30px; }
.price-card.popular { border-color: rgba(1,127,211,0.45); box-shadow: var(--shadow); transform: translateY(-8px); }
.popular-badge { position: absolute; top: 18px; right: 18px; background: var(--primary); color: white; border-radius: 999px; padding: 7px 10px; font-weight: 900; font-size: .78rem; }
.price { color: var(--primary); font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -0.06em; margin: 24px 0; }
.price span { font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; display: grid; gap: 11px; margin: 0 0 26px; }
.price-card li { display: flex; gap: 10px; color: #3c526b; }
.price-card li::before { content: '✓'; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 900; flex: 0 0 auto; }
.legal-card { padding: 34px; }
.legal-card h2 { font-size: 1.45rem; margin: 28px 0 8px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); }
.legal-card a { color: var(--primary); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; align-items: start; }
.contact-panel, .contact-form { padding: 30px; }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list div { padding: 15px; border-radius: 18px; background: #f7fbff; border: 1px solid var(--line); }
.contact-list b, .contact-list a { display: block; }
.contact-list a { color: var(--primary); font-weight: 800; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: #334b63; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); background: #f8fbff; color: var(--ink); border-radius: 16px; padding: 14px 15px; font: inherit; outline: none;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(1,127,211,.58); box-shadow: 0 0 0 4px rgba(1,127,211,.1); }
.thank-you { min-height: 58vh; display: grid; place-items: center; }
.success-icon, .error-icon { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 900; }
.success-icon { background: #dcfce7; color: #15803d; }
.error-icon { background: #fee2e2; color: #b91c1c; }

.site-footer { background: #061524; color: #b8cada; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .85fr .85fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand strong { color: white; }
.footer-copy { margin-top: 18px; max-width: 390px; }
.site-footer h3 { color: white; font-size: 1rem; margin-bottom: 14px; }
.site-footer a, .site-footer span { display: block; color: #b8cada; margin-bottom: 9px; }
.site-footer a:hover, .powered-link { color: white; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-bottom span, .footer-bottom a { display: inline; margin: 0; }

.animate-in { opacity: 0; transform: translateY(18px); transition: 0.65s ease; }
.animate-in.visible, .animate-in.delay-1 { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }

@media (max-width: 1020px) {
  .hero-grid, .split-grid, .contact-grid, .cta-box { grid-template-columns: 1fr; }
  .feature-grid.three, .channel-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { max-width: 720px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 74px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .main-menu {
    position: absolute;
    left: 14px; right: 14px; top: 80px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 20px 48px rgba(13, 32, 53, 0.14);
  }
  .main-menu.open { display: flex; }
  .main-menu a { padding: 13px 14px; }
  .section-pad { padding: 64px 0; }
  .hero-grid { gap: 36px; }
  h1 { letter-spacing: -0.06em; }
  .hero-trust, .feature-grid.three, .channel-grid, .pricing-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .channel-tabs, .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-metric { position: static; margin-top: 14px; }
  .price-card.popular { transform: none; }
  .cta-box { padding: 28px; }
  .page-hero { padding: 64px 0 38px; }
}

@media (max-width: 440px) {
  .brand small { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .channel-tabs { grid-template-columns: 1fr; }
  .message { max-width: 100%; }
}
