/* Kalyta Labs marketing site. Brand system: see repo BRAND.md.
   Indigo (smart/focus) + Teal (growth/progress) + Coral (warmth, accent only),
   Lexend headings + Inter body, rounded + airy + optimistic. No em dashes in copy. */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand: #5B4FE0;
  --brand-dark: #4940C4;
  --brand-deep: #3A2F9E;
  --violet: #7B6FF0;
  --growth: #12B5A4;
  --accent: #FF8A5B;
  --ink: #1A1B2E;
  --ink-soft: #4A4E69;
  --tint: #F1F0FE;
  --off: #FAFAFC;
  --border: #E7E6F5;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400; line-height: 1.6; color: var(--ink);
  background: #fff; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .section-label, .btn, .plat, .badge { font-family: 'Lexend', system-ui, sans-serif; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--violet)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; font-family: 'Inter', sans-serif; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; border-radius: 10px; padding: 13px 24px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 60%, var(--brand-deep) 100%); color: #fff; padding: 96px 0 88px; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(18,181,164,.45), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; max-width: 17ch; }
.hero p.sub { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,255,255,.92); margin: 20px 0 32px; max-width: 56ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .btn-primary { background: #fff; color: var(--brand); }
.hero .btn-primary:hover { background: var(--tint); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.hero .note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.8); }

/* Sections */
section { padding: 76px 0; }
.section-label { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(27px, 3.5vw, 38px); letter-spacing: -0.01em; margin-top: 8px; }
.section-intro { color: var(--ink-soft); font-size: 18px; max-width: 60ch; margin-top: 12px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(26,27,46,.05); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; stroke: var(--brand); }
.card h3 { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* Courses */
.courses { background: var(--off); }
.course-card { display: flex; flex-direction: column; }
.course-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.course-card h3 { font-size: 20px; }
.course-card .desc { flex: 1; margin-bottom: 20px; }
.badge { font-weight: 700; font-size: 11px; border-radius: 100px; padding: 4px 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-live { background: var(--growth); color: #fff; }
.badge-soon { background: #ECEAFB; color: var(--brand); }

/* Platform buttons: icon tiles (Web globe, Apple, Android). Less text, the marks
   carry the meaning; a one-word label shows availability ("Web" vs "Soon"). */
.platforms { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.plat { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.plat:hover { text-decoration: none; }
.plat .pico { width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--border); background: #fff; color: var(--ink); display: grid; place-items: center; transition: border-color .15s, color .15s, transform .1s, box-shadow .15s; }
.plat .pico svg { width: 24px; height: 24px; }
.plat .plabel { font-size: 11px; font-weight: 600; color: var(--ink-soft); font-family: 'Inter', sans-serif; }
.plat:hover .pico { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(91,79,224,.18); }
.plat.disabled { pointer-events: none; }
.plat.disabled .pico { color: #C2C5D6; background: var(--off); border-style: dashed; }
.plat.disabled .plabel { color: #C2C5D6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .num { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; display: grid; place-items: center; font-family: 'Lexend', sans-serif; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Pricing */
.pricing { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: 20px; padding: 52px; text-align: center; }
.pricing h2 { color: #fff; }
.pricing .price { font-family: 'Lexend', sans-serif; font-size: 46px; font-weight: 800; margin: 10px 0 4px; }
.pricing .price span { font-size: 18px; font-weight: 500; opacity: .9; }
.pricing p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 26px; }
.pricing .btn-primary { background: #fff; color: var(--brand); }
.pricing .btn-primary:hover { background: var(--tint); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; color: var(--ink-soft); font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer a { color: var(--ink-soft); font-family: 'Inter', sans-serif; }
.site-footer a:hover { color: var(--brand); }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .legal { margin-top: 28px; font-size: 13px; }

/* Legal pages */
.legal-page { padding: 56px 0 72px; max-width: 760px; }
.legal-page h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.legal-page h2 { font-size: 22px; margin: 32px 0 10px; }
.legal-page p, .legal-page li { color: #344054; font-size: 16px; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }
.legal-page .draft-note { background: var(--tint); border-radius: 12px; padding: 16px 20px; font-size: 14px; color: #344054; margin-bottom: 28px; }

@media (max-width: 820px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .pricing { padding: 38px 24px; }
  .hero { padding: 72px 0 64px; }
}
