/* ===== Tokens ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ink: #14233f;
  --ink-soft: #5b6a82;
  --line: #e2e8f0;
  --brand: #1d53a0;
  --brand-dark: #17427e;
  --brand-soft: #eaf1f9;
  --grad: #1d53a0;
  --shadow-sm: 0 4px 14px rgba(20, 40, 80, .06);
  --shadow: 0 18px 50px rgba(20, 50, 100, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(29, 83, 160, .28); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-dark); box-shadow: 0 14px 30px rgba(29, 83, 160, .34); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; max-width: 1700px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff;
}
.logo-mark img { display: block; }
.logo-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: -5px;
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; color: var(--ink-soft); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }

/* ===== Hero — copy on the left, chat window on the right, flat blue & white ===== */
.hero { position: relative; overflow: hidden; padding: 56px 0 70px; }
.hero-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 56px;
  text-align: left; max-width: 1700px;
}
.hero h1 {
  font-size: 34px; line-height: 1.1; letter-spacing: -1px; margin: 0; font-weight: 800;
  white-space: nowrap;
}
.grad { color: var(--brand); }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; margin: 0; flex-wrap: wrap; justify-content: flex-start; }
.hero-copy {
  flex: 1 1 auto; min-width: 0; max-width: 660px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 46px;
}


/* Hero visual — faithful, enlarged recreation of the live Chatruletka app interface */
.hero-visual { position: relative; flex: 0 1 980px; width: 980px; max-width: 980px; min-width: 0; }
.chat-window {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Brand blue top nav */
.cw-topbar {
  display: flex; align-items: center; background: var(--brand); color: #fff; height: 44px; padding: 0 16px;
}
.cw-nav { display: flex; gap: 24px; margin-inline: auto; }
.cw-nav a { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .82); cursor: pointer; }
.cw-nav a.is-active, .cw-nav a:hover { color: #fff; }
.cw-more { background: none; border: none; color: #fff; font-size: 19px; cursor: pointer; line-height: 1; padding: 0; }

/* Two video panels */
.cw-screens { display: flex; aspect-ratio: 980 / 552; }
.cw-screen { position: relative; flex: 1; overflow: hidden; }
.cw-screen-self { background: #363636; }
.cw-screen-peer { background: #000; }
.cam-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.is-ready .cam-img { opacity: 1; }
.cw-flag {
  position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 18px; line-height: 1;
  background: rgba(0, 0, 0, .35); padding: 4px 6px; border-radius: 6px;
}
.cw-online {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: #eee; text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.cw-online i { width: 10px; height: 10px; border-radius: 50%; background: #2ecc40; box-shadow: 0 0 7px #2ecc40; }

/* Loading spinner per panel until its video is ready */
.cam-loader {
  position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; z-index: 2;
  margin: -19px 0 0 -19px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.is-ready .cam-loader { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bottom bar: control buttons (left, two rows) + chat (right) */
.cw-bottom { display: flex; border-top: 1px solid #e2e2e2; }
.cw-controls { display: flex; flex-direction: column; flex: 1.25; }
.cw-row { display: flex; flex: 1; }
.cw-row + .cw-row { border-top: 1px solid rgba(0, 0, 0, .08); }
.cw-btn {
  flex: 1; border: none; border-right: 1px solid rgba(0, 0, 0, .08); cursor: pointer;
  font-size: 16px; font-weight: 600; padding: 22px 6px; transition: filter .15s ease;
}
.cw-btn:hover { filter: brightness(.96); }
.cw-start { background: #1e58b6; color: #fff; }
.cw-stop { background: #bd7a8e; color: #fff; }
.cw-country, .cw-iam, .cw-filter { background: #e6e6e6; color: #333; }

/* Chat panel */
.cw-chatbox { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid #e2e2e2; background: #fff; }
.cw-chat-head { font-size: 13px; font-weight: 700; color: #888; padding: 9px 14px 3px; }
.cw-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 3px 14px 8px; overflow: hidden; }
.cw-sys { font-size: 12.5px; color: #9a9a9a; font-style: italic; }
.cw-line { font-size: 13.5px; color: #333; line-height: 1.4; }
.cw-line b { color: var(--brand); }
.cw-chat-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #ececec; }
.cw-chat-input input {
  flex: 1; min-width: 0; border: 1px solid #d9d9d9; border-radius: 5px;
  padding: 9px 12px; font-size: 13.5px; font-family: inherit; color: var(--ink); outline: none;
}
.cw-chat-input input:focus { border-color: var(--brand); }
.cw-chat-input button {
  flex: none; width: 36px; height: 36px; border: none; border-radius: 5px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 14px; display: grid; place-items: center;
}
.cw-chat-input button:hover { filter: brightness(1.08); }

/* ===== Stats ===== */
.stats { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 34px 22px; text-align: center; }
.stats-grid strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.stats-grid span { font-size: 14px; color: var(--ink-soft); }

/* ===== Section heads ===== */
section { padding: 86px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { font-size: 40px; letter-spacing: -1px; line-height: 1.1; margin: 12px 0 14px; font-weight: 800; }
.section-head p { font-size: 17px; color: var(--ink-soft); }

/* ===== Features ===== */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.ficon {
  width: 50px; height: 50px; display: grid; place-items: center; font-size: 24px; border-radius: 14px;
  background: var(--bg-soft); margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.3px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== How ===== */
.how { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff;
  font-weight: 800; font-size: 18px; background: var(--grad); margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.3px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ===== Pricing ===== */
.pricing { background: var(--bg-soft); }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan h3 { font-size: 20px; letter-spacing: -.3px; }
.plan-desc { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.price .amount { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; }
.price .per { color: var(--ink-soft); font-weight: 600; }
.plan-list { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan-list li { position: relative; padding-left: 26px; font-size: 15px; color: #2c3160; }
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800;
}
.plan-featured {
  border: 1.5px solid var(--brand); box-shadow: var(--shadow); transform: translateY(-6px);
  background: #fff;
}
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  padding: 6px 16px; border-radius: 999px; box-shadow: 0 8px 18px rgba(29,83,160,.32);
}
.pricing-note { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-top: 28px; }

/* ===== Compare ===== */
.compare { background: var(--bg); }
/* "Free vs Premium" big two-tone title like the H1; "See the difference" small subtitle */
.cmp-title { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--ink); margin: 0; }
.cmp-title .grad { color: var(--brand); }
.cmp-vs { color: var(--ink-soft); font-weight: 700; }
.cmp-sub { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin: 8px 0 0; }
.table-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 15px; }
.compare-table thead th { background: #fff; font-weight: 800; font-size: 14px; border-bottom: 2px solid var(--line); }
.compare-table td { border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.compare-table td:first-child { color: var(--ink); font-weight: 600; }
.compare-table .hl { background: rgba(91,107,255,.06); color: var(--ink); font-weight: 700; }
.compare-table thead .hl { color: var(--brand); }
.compare-table tr:last-child td { border-bottom: none; }

/* ===== Testimonials ===== */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.stars { color: #ffb020; letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { font-size: 16px; color: #2c3160; margin-bottom: 16px; }
.quote figcaption { font-weight: 700; color: var(--ink-soft); font-size: 14px; }

/* ===== FAQ ===== */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); padding-bottom: 18px; font-size: 15px; }

/* ===== Final CTA ===== */
.cta-final { padding: 40px 0 100px; }
.cta-box {
  background: var(--brand); border-radius: 28px; text-align: center; color: #fff;
  padding: 64px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 38px; letter-spacing: -1px; margin-bottom: 12px; position: relative; }
.cta-box p { font-size: 18px; opacity: .92; margin-bottom: 28px; position: relative; }
.cta-box .btn { position: relative; }

/* ===== Footer ===== */
.site-footer { background: var(--brand); color: rgba(255,255,255,.78); padding: 60px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.logo-footer { color: #fff; }
.logo-footer .logo-mark { background: rgba(255,255,255,.16); }
.footer-brand p { color: rgba(255,255,255,.7); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .3px; }
.footer-cols a { display: block; color: rgba(255,255,255,.7); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18); margin-top: 44px; padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,.6);
}

/* ===== Responsive ===== */
@media (max-width: 1660px) {
  /* not enough room for one-line heading + full-size window side by side: stack them */
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 46px; }
  .hero-copy { max-width: 720px; margin-inline: auto; align-items: center; }
  .hero h1 { white-space: normal; font-size: 44px; }
  .hero-visual { flex: 0 1 auto; margin-inline: auto; }
  .lead { max-width: 600px; margin-inline: auto; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 980px) {
  .hero h1 { font-size: 40px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero h1 { font-size: 38px; }
  .section-head h2 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 26px 12px; }
  .steps, .plans, .quote-grid { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .cw-bottom { flex-direction: column; }
  .cw-btn { padding: 14px 4px; font-size: 14px; }
  .cw-chatbox { border-left: none; }
}
@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
