/* Chatfree — marketing homepage */
:root {
  --bg: #0B0F1A;
  --bg-elevated: #0E1422;
  --surface: #121826;
  --surface-2: #1A2234;
  --border: rgba(46, 197, 255, 0.12);
  --border-strong: rgba(46, 197, 255, 0.28);
  --primary: #2EC5FF;
  --primary-dim: #1AA8E0;
  --accent: #A855F7;
  --accent-hot: #C026D3;
  --text: #F4F7FB;
  --text-muted: #9AA8BC;
  --text-soft: #C5D0DE;
  --success: #34D399;
  --gradient: linear-gradient(135deg, #2EC5FF 0%, #7B6CFF 50%, #A855F7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(46,197,255,0.15) 0%, rgba(168,85,247,0.15) 100%);
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: #7DDFFF; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #061018;
  padding: .75rem 1rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 26, 0.85);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.brand__name span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  color: var(--text-soft);
  font-size: .925rem;
  font-weight: 500;
}
.nav a:hover { color: var(--primary); }

.header__cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1rem 0 1.25rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: .7rem 0;
  color: var(--text-soft);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--gradient);
  color: #061018;
  box-shadow: 0 8px 28px rgba(46, 197, 255, 0.28);
}
.btn--primary:hover {
  color: #061018;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(46, 197, 255, 0.06);
}
.btn--lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 50% 60% at 70% 30%, rgba(168,85,247,0.22), transparent 60%),
    radial-gradient(ellipse 45% 55% at 20% 40%, rgba(46,197,255,0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin-bottom: 1.1rem;
  max-width: 18ch;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1.75rem;
}
.hero__note {
  color: var(--text-muted);
  font-size: .85rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  width: min(100%, 420px);
  overflow: hidden;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: .6;
  pointer-events: none;
}
.hero__photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0B0F1A;
  aspect-ratio: 1 / 1.05;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  background: rgba(11,15,26,0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: .65rem .85rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  max-width: calc(100% - 2rem);
}
.hero__badge strong { display: block; font-size: .9rem; line-height: 1.2; }
.hero__badge span { color: var(--text-muted); font-size: .75rem; }
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* Sections common */
section { padding: 4rem 0; }
@media (min-width: 900px) { section { padding: 5rem 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-label {
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: .85rem;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Pain / Solution */
.pain {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.pain__grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .pain__grid { grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1.5rem; }
}
.compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  height: 100%;
}
.compare--bad { border-color: rgba(248,113,113,0.25); }
.compare--good {
  border-color: rgba(46,197,255,0.35);
  background: linear-gradient(180deg, rgba(46,197,255,0.08), var(--surface) 45%);
}
.compare h3 {
  font-size: 1.1rem;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.compare ul { display: grid; gap: .65rem; }
.compare li {
  color: var(--text-soft);
  padding-left: 1.4rem;
  position: relative;
  font-size: .95rem;
}
.compare--bad li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #F87171;
  font-weight: 700;
}
.compare--good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.pain__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}
@media (min-width: 768px) { .pain__arrow { display: flex; } }
.pain__arrow-mobile {
  display: flex;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}
@media (min-width: 768px) { .pain__arrow-mobile { display: none; } }

/* Pillars */
.pillars__grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .pillars__grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
  height: 100%;
}
.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pillar__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
  color: var(--primary);
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: .55rem;
  letter-spacing: -0.02em;
}
.pillar p { color: var(--text-muted); font-size: .95rem; }

/* WhatsApp highlight */
.wa {
  position: relative;
}
.wa__card {
  display: grid;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  overflow: hidden;
  position: relative;
}
.wa__card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(46,197,255,0.18), transparent 65%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .wa__card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2.5rem;
    align-items: center;
  }
}
.wa__list {
  display: grid;
  gap: .9rem;
  margin-top: 1.25rem;
}
.wa__item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.wa__item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(46,197,255,0.12);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.wa__item-icon svg { width: 18px; height: 18px; }
.wa__item strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.wa__item span { color: var(--text-muted); font-size: .875rem; }
.wa__aside {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
  position: relative;
  z-index: 1;
}
.wa__aside h4 {
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.meter {
  margin-bottom: 1.1rem;
}
.meter__top {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: .4rem;
}
.meter__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  width: 92%;
}
.wa__aside p {
  color: var(--text-muted);
  font-size: .875rem;
  margin-top: .5rem;
}

/* Sofia */
.sofia {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.sofia__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .sofia__grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
}
.sofia__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}
.sofia__frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sofia__frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}
.sofia__content h2 { margin-bottom: .85rem; }
.sofia__content > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.sofia__features {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.sofia__features li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: .95rem;
}
.sofia__features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .15rem;
}

/* Modules */
.modules__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .modules__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .modules__grid { grid-template-columns: repeat(4, 1fr); }
}
.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  transition: border-color .2s ease;
}
.module:hover { border-color: var(--border-strong); }
.module__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
}
.module h3 {
  font-size: 1.05rem;
  margin-bottom: .45rem;
  letter-spacing: -0.02em;
}
.module p { color: var(--text-muted); font-size: .9rem; }

/* Final CTA */
.cta {
  padding-bottom: 5rem;
}
.cta__box {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(46,197,255,0.18), transparent 55%),
    radial-gradient(ellipse 50% 70% at 80% 100%, rgba(168,85,247,0.16), transparent 50%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 2.75rem 1.5rem;
}
@media (min-width: 768px) {
  .cta__box { padding: 3.5rem 2.5rem; }
}
.cta__box h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  margin-bottom: .75rem;
  max-width: 22ch;
  margin-inline: auto;
}
.cta__box p {
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 1.75rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: #080B14;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  color: var(--text);
  font-weight: 700;
}
.footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.footer p {
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 36ch;
}
.footer h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: .85rem;
}
.footer__links {
  display: grid;
  gap: .55rem;
}
.footer__links a {
  color: var(--text-muted);
  font-size: .925rem;
}
.footer__links a:hover { color: var(--primary); }
.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .85rem;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
