/* ============================================================
   Totalli.AI — calm, modern marketing styles
   ============================================================ */

:root {
  /* Brand */
  --teal-600: #0f9d8f;
  --teal-500: #1fb6a6;
  --teal-400: #45c9bb;
  --blue-500: #2a8fd6;
  --grad: linear-gradient(120deg, #1fb6a6 0%, #2a8fd6 100%);

  /* Calm neutrals */
  --bg: #f7faf9;
  --bg-tint: #eef5f4;
  --surface: #ffffff;
  --ink: #122a2e;
  --ink-soft: #3f595e;
  --muted: #6c8388;
  --line: #e1ece9;

  --shadow-sm: 0 1px 2px rgba(18, 42, 46, .05), 0 4px 14px rgba(18, 42, 46, .05);
  --shadow-md: 0 10px 30px rgba(18, 42, 46, .08);
  --shadow-lg: 0 24px 60px rgba(18, 42, 46, .14);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', var(--font);
}

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

html { scroll-behavior: smooth; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }

a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(31, 182, 166, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 182, 166, .4); }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-soft:hover { transform: translateY(-2px); border-color: var(--teal-400); color: var(--teal-600); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--teal-600); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 249, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(247, 250, 249, .9); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand-mark { display: inline-flex; }
.brand-dot { color: var(--teal-500); }
.nav-links { display: flex; gap: 28px; margin-left: 12px; margin-right: auto; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--grad); transition: width .22s ease; border-radius: 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 620px; z-index: 0;
  background:
    radial-gradient(closest-side at 22% 30%, rgba(31, 182, 166, .22), transparent 70%),
    radial-gradient(closest-side at 78% 20%, rgba(42, 143, 214, .18), transparent 70%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-600); background: rgba(31, 182, 166, .1);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.ic { width: 18px; height: 18px; color: var(--teal-500); flex: none; }

/* Dashboard visual */
.hero-visual { position: relative; }
.dash {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.4deg);
}
.dash-head { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff6b6b; } .dot.y { background: #ffd166; } .dot.g { background: #4ade80; }
.dash-title { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.dash-body { padding: 22px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--bg-tint); border-radius: 14px; padding: 14px; }
.kpi-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.kpi-value { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.kpi-trend { font-size: 12px; font-weight: 600; }
.kpi-trend.up { color: #12a150; } .kpi-trend.down { color: #e8573f; }
.chart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: end; }
.chart svg { width: 100%; height: 130px; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 130px; }
.bars span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--teal-400), var(--blue-500)); border-radius: 6px 6px 3px 3px; opacity: .9; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-md);
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-ic { font-size: 20px; }
.fc-1 { top: -22px; right: -10px; animation: floaty 6s ease-in-out infinite; }
.fc-2 { bottom: -26px; left: -18px; animation: floaty 6s ease-in-out infinite 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ===== Strip ===== */
.strip { padding: 28px 0 8px; }
.strip-label { text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.strip-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-stats div { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 14px; box-shadow: var(--shadow-sm); }
.strip-stats b { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip-stats span { color: var(--muted); font-size: 13px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin: 14px 0; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-400); }
.feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-tint); font-size: 24px; margin-bottom: 16px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* Reports */
.reports { grid-template-columns: repeat(2, 1fr); }
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.report:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.report-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.tag-fin { background: rgba(42, 143, 214, .12); color: #2a8fd6; }
.tag-rev { background: rgba(31, 182, 166, .14); color: var(--teal-600); }
.tag-inv { background: rgba(247, 168, 60, .16); color: #d9821a; }
.tag-mis { background: rgba(139, 92, 246, .14); color: #7c5cf0; }
.report h3 { font-size: 1.4rem; margin-bottom: 10px; }
.report > p { color: var(--ink-soft); margin-bottom: 18px; }
.report ul { list-style: none; display: grid; gap: 10px; }
.report li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .96rem; }
.report li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500); transform: rotate(-45deg); }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
.step { text-align: center; padding: 0 18px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(31, 182, 166, .3); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
.step-line { height: 2px; margin-top: 28px; background: linear-gradient(90deg, var(--teal-400), var(--blue-500)); opacity: .4; min-width: 40px; }

/* Quote */
.quote-section { padding: 64px 0; }
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--display); font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.35; color: var(--ink); margin-bottom: 24px; }
.quote footer { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }

/* Pricing */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--teal-400); box-shadow: var(--shadow-md); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: .92rem; margin-bottom: 18px; min-height: 42px; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--ink); margin-bottom: 22px; }
.price span { font-size: 1.3rem; vertical-align: super; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-custom { font-size: 2.2rem; }
.price-card ul { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.price-card li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .96rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500); transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; }

/* CTA */
.cta-section { padding-bottom: 96px; }
.cta {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, #103a3e 0%, #0d5c5a 60%, #14706f 100%);
  border-radius: 28px; padding: 56px; color: #eafaf7; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(69, 201, 187, .35), transparent); }
.cta-copy { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.cta-copy p { color: rgba(234, 250, 247, .85); font-size: 1.05rem; margin-bottom: 22px; }
.cta-points { list-style: none; display: grid; gap: 12px; }
.cta-points li { display: flex; align-items: center; gap: 10px; color: rgba(234, 250, 247, .92); }
.cta-points .ic { color: var(--teal-400); }
.cta-form { position: relative; z-index: 1; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--bg); transition: border-color .18s ease, box-shadow .18s ease; }
.field input:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(31, 182, 166, .15); background: #fff; }
.form-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.form-note.ok { color: #12a150; font-weight: 600; }
.form-note.err { color: #e8573f; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#demoSubmit:disabled { opacity: .7; cursor: progress; }

/* ===== Footer ===== */
.site-footer { background: #0f2528; color: #c4d6d4; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #9fb6b4; font-size: .95rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-family: var(--font); letter-spacing: .02em; }
.footer-col a { display: block; color: #9fb6b4; font-size: .95rem; margin-bottom: 10px; transition: color .18s ease; }
.footer-col a:hover { color: var(--teal-400); }
.addr { color: #7f9694; font-size: .9rem; margin-top: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: #7f9694; font-size: .88rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #9fb6b4; font-size: .88rem; }
.footer-legal a:hover { color: var(--teal-400); }

/* ===== Legal pages ===== */
.legal-hero { padding: 56px 0 24px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 8px; }
.legal-hero p { color: var(--muted); font-size: .98rem; }
.legal { max-width: 800px; margin: 0 auto; padding: 56px 24px 88px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--teal-600); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 500; color: var(--teal-600); }
.legal-note { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: .92rem; color: var(--muted); margin-top: 32px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); padding: 20px 24px; gap: 16px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .nav-cta { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 0 24px 22px; }
  .strip-stats { grid-template-columns: repeat(2, 1fr); }
  .features, .reports, .pricing { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-line { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 460px) {
  .strip-stats { grid-template-columns: 1fr 1fr; }
  .cta, .cta-form { padding: 28px 22px; }
  .float-card { display: none; }
}
