/* TalaOS Design System — Light Pink Theme (Elderly/Children Accessibility)
   Color tokens, typography, layout primitives for the landing page + shared partials. */

:root {
  --bg: #FFFAF5;
  --fg: #1A1A2E;
  --accent: #E91E8C;
  --accent-light: #FFB6D9;
  --surface: #FFFFFF;
  --muted: #4A4A6A;
  --border: #F0E8FF;
  --tag-bg: #FFF0F6;
  --tag-fg: #E91E8C;
  --equation-bg: #FFF5F8;
  --hover: #D4A5B9;
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --font-display: 'Quicksand', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Helvetica Neue', sans-serif;
  --shadow-warm: 0 4px 24px rgba(233, 30, 140, 0.08);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Focus states — WCAG accessibility */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--accent); }

/* ─── HERO ─── */
.hero {
  background: var(--bg);
  padding: 80px 32px 72px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.hero-founder {
  text-align: center;
}
.founder-portrait {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  filter: none;
  border: 3px solid var(--accent-light);
  box-shadow: var(--shadow-warm);
}
.founder-caption {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.founder-caption strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--fg);
}
.founder-caption span {
  font-size: 14px;
  color: var(--muted);
}

/* ─── MISSION QUOTE ─── */
.mission {
  background: var(--accent);
  padding: 72px 32px;
}
.mission-inner { max-width: 860px; margin: 0 auto; }
.mission-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  color: #FFFFFF;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ─── SOLUTIONS ─── */
.solutions {
  padding: 88px 32px;
  background: var(--surface);
}
.solutions-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 52px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.solution-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-warm);
}
.solution-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.12);
}
.solution-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.solution-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.solution-sub {
  font-size: 15px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.solution-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.solution-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.solution-features span {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ─── RESEARCH ─── */
.research {
  padding: 88px 32px;
  background: var(--bg);
}
.research-inner { max-width: 1100px; margin: 0 auto; }
.research-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.paper-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.paper-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.paper-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.paper-equation {
  font-family: 'Courier New', monospace;
  background: var(--equation-bg);
  color: var(--accent);
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
}
.paper-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 2px;
}
.paper-link:hover { color: var(--hover); border-bottom-color: var(--hover); }

.insight-item {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 28px;
}
.insight-domain {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.insight-item strong {
  font-size: 16px;
  color: var(--fg);
  display: block;
  margin-bottom: 6px;
}
.insight-item p {
  font-size: 15px;
  color: var(--muted);
}

/* ─── CLOSING / PRINCIPLES ─── */
.closing {
  padding: 88px 32px;
  background: var(--surface);
}
.closing-inner { max-width: 1100px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.principle h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.principle p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── SOCIAL ICONS ─── */
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.social-icons a {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.social-icons a:hover { color: var(--accent); }
.social-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0;
}
.social-tagline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.social-tagline-link:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
.footer {
  background: var(--surface);
  color: var(--muted);
  padding: 56px 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 15px;
  max-width: 320px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-meta { text-align: right; }
.footer-meta p { font-size: 14px; margin-bottom: 4px; color: var(--muted); }
.footer-copy { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ─── MOBILE HAMBURGER ─── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--accent);
}
.nav-hamburger svg { width: 24px; height: 24px; }
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.08);
}
.nav-mobile-menu.open { display: flex; flex-direction: column; gap: 12px; }
.nav-mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-founder { display: none; }
  .solutions-grid { grid-template-columns: 1fr; }
  .research-block { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}
