/* ═══════════════════════════════════════════
   Kryphion AI: Shared Stylesheet
   kryphion.ai
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── Tokens ─── */
:root {
  --bg:         #f2f0eb;    /* warm cream — main page bg (Anthropic-style) */
  --surface:    #ffffff;    /* cards, nav, elevated surfaces */
  --primary:    #0d1b2a;    /* deep navy */
  --accent:     #0052cc;    /* blue */
  --accent-h:   #003fa3;    /* accent hover */
  --accent-lt:  #e6eeff;    /* accent tint */
  --text:       #1e293b;    /* body text */
  --muted:      #64748b;    /* secondary text */
  --border:     #dedad3;    /* dividers, card borders (warm-tinted) */
  --max:        1120px;
  --radius:     10px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

/* ─── Layout ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }
.section-alt { background: var(--surface); }

/* ─── Type Utilities ─── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.display {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.75px;
}
.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 14px;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--accent) !important; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover { background: #1a3a5c; color: #fff; }

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── GRID HELPERS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ─── TICKER ─── */
.ticker-wrap {
  background: var(--primary);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.ticker-item::after {
  content: '·';
  color: var(--accent);
  font-size: 1.2rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 72px 28px 64px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero .display { margin: 0 auto; max-width: 640px; }
.page-hero .subtitle { margin: 14px auto 0; }

/* ─── CTA BANNER ─── */
.cta-section { padding: 96px 0; }
.cta-band {
  background: var(--primary);
  border-radius: 16px;
  padding: 72px 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 36px;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { background: var(--accent-lt); color: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.55);
  padding: 60px 28px 28px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.footer-brand-text span { color: #60a5fa; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 48px 28px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .display { font-size: 1.85rem; }
}
