/* Keynara design tokens — derived from branding kit v1.0 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Primary palette */
  --navy: #1A2B3C;
  --navy-80: #1A2B3CCC;
  --navy-60: #1A2B3C99;
  --navy-10: #1A2B3C1A;
  --mint: #00C9A7;
  --mint-dark: #009E84;
  --mint-soft: #00C9A71A;

  /* Secondary */
  --slate: #4A6278;
  --slate-60: #4A627899;
  --fog: #EEF1F4;
  --fog-2: #F6F8FA;
  --line: #E3E7EC;
  --white: #FFFFFF;

  /* Typography */
  --font-head: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing (8px baseline) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 4px 12px rgba(26,43,60,0.06);
  --shadow-lift: 0 12px 32px rgba(26,43,60,0.10);
  --shadow-mint: 0 8px 24px rgba(0,201,167,0.18);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--mint); color: var(--navy); }

/* Typography classes */
.display { font-family: var(--font-head); font-weight: 300; font-size: clamp(44px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.03em; }
.h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.015em; }
.h3 { font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.h4 { font-family: var(--font-head); font-weight: 500; font-size: 18px; line-height: 1.35; }
.body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--slate); }
.body-lg { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--slate); }
.small { font-size: 14px; line-height: 1.5; color: var(--slate); }
.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 900px) { .container { padding: 0 24px; } }
@media (max-width: 500px) { .container { padding: 0 20px; } }

.section { padding: var(--space-24) 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  transition: all 180ms cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn--primary {
  background: var(--mint);
  color: var(--navy);
}
.btn--primary:hover { background: var(--mint-dark); color: var(--white); box-shadow: var(--shadow-mint); transform: translateY(-1px); }
.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 12px 22px;
}
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--mint-dark); padding: 10px 12px; }
.btn--ghost:hover { color: var(--navy); }
.btn--on-navy.btn--secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--on-navy.btn--secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--fog);
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
}
.chip--mint { background: var(--mint-soft); color: var(--mint-dark); }
.chip--dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--mint);
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 220ms ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

/* Surfaces */
.surface-fog { background: var(--fog-2); }
.surface-navy { background: var(--navy); color: var(--white); }
.surface-navy .body, .surface-navy .small { color: rgba(255,255,255,0.72); }
.surface-navy .eyebrow { color: rgba(255,255,255,0.7); }
.surface-navy .eyebrow::before { background: var(--mint); }

/* Utility */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

/* Focus */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
