@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500;1,9..144,600&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --brand-50: #f0f4fa;
  --brand-100: #e1e9f5;
  --brand-200: #c7d7ec;
  --brand-300: #a9c2ea;
  --brand-400: #89aad9;
  --brand-500: #5275a7;
  --brand-600: #344f78;
  --brand-700: #2b4061;
  --brand-800: #263550;
  --brand-900: #22283b;

  --ink-50: #f8fafc;
  --ink-100: #f1f5f9;
  --ink-200: #e2e8f0;
  --ink-300: #cbd5e1;
  --ink-400: #94a3b8;
  --ink-500: #64748b;
  --ink-600: #475569;
  --ink-700: #334155;
  --ink-800: #293248;
  --ink-900: #22283b;
  --ink-950: #1d2233;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --shadow-soft: 0 1px 2px rgba(29, 34, 51, 0.06), 0 1px 1px rgba(29, 34, 51, 0.04);
  --shadow-card: 0 1px 2px rgba(29, 34, 51, 0.05), 0 20px 40px -16px rgba(29, 34, 51, 0.18);
  --shadow-elevated: 0 30px 60px -16px rgba(29, 34, 51, 0.45);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ink-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(248, 250, 252, 0.09) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}
.grain-dark { background-image: radial-gradient(circle at 1px 1px, rgba(248, 250, 252, 0.07) 1px, transparent 0); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  font-weight: 500;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(.16,.84,.44,1) both; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn 1s ease both; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 24px) scale(1.06); }
  66% { transform: translate(20px, -18px) scale(0.97); }
}
.drift { animation: drift 16s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ink-200);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-wordmark { width: 132px; height: auto; }
.nav:not(.scrolled) .brand-wordmark { filter: brightness(0) invert(1); }
.nav:not(.scrolled) .nav-links a { color: var(--ink-300); }
.nav:not(.scrolled) .nav-cta { background: #fff; color: var(--ink-950); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-600);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink-900); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--ink-950);
  color: var(--ink-50);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--brand-600); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink-950);
  color: var(--ink-200);
  padding: 168px 0 120px;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-orb-1 { top: -180px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, var(--brand-400), transparent 70%); }
.hero-orb-2 { bottom: -220px; left: -160px; width: 460px; height: 460px; background: radial-gradient(circle, var(--brand-700), transparent 70%); opacity: 0.35; animation-delay: -6s; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 22px 0 20px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-400);
  max-width: 490px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 12px 28px -10px rgba(137,170,217, 0.55); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); }
.btn-ghost-dark { background: rgba(255,255,255,0.06); color: var(--ink-100); border: 1px solid rgba(255,255,255,0.14); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: var(--ink-800); border: 1px solid var(--ink-300); }
.btn-ghost-light:hover { background: var(--ink-100); transform: translateY(-2px); }

.hero-proof { margin-top: 46px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-proof-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-300); }
.hero-proof-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 272px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(160deg, #293248, #1d2233);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px;
  background: #1d2233;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink-50);
  height: 552px;
}
.phone-hero {
  position: relative;
  background: var(--ink-950);
  padding: 34px 18px 46px;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.phone-hero-glow {
  position: absolute; top: -60px; right: -50px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(137,170,217,0.35), transparent 70%);
}
.phone-hero-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.phone-greet { font-size: 10px; color: var(--ink-300); }
.phone-name { font-size: 14px; font-weight: 700; color: #fff; margin-top: 2px; }
.phone-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-500); }
.phone-status { position: relative; text-align: center; margin-top: 22px; }
.phone-status-ring {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  border: 1.5px solid rgba(255,255,255,0.16);
}
.phone-status-ring svg { width: 18px; height: 18px; }
.phone-status-label { font-size: 15px; font-weight: 700; color: #fff; }
.phone-status-time { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; font-size: 9.5px; color: var(--ink-400); background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 20px; }
.phone-btn {
  position: relative;
  margin-top: 16px;
  background: #fff;
  color: var(--brand-600);
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
}
.phone-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 18px; margin-top: -26px; position: relative; }
.phone-stat { background: #fff; border-radius: 10px; padding: 10px 8px; box-shadow: var(--shadow-soft); }
.phone-stat b { display: block; font-size: 15px; color: var(--ink-900); }
.phone-stat span { font-size: 8.5px; color: var(--ink-500); }
.phone-section-label { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; margin: 18px 18px 8px; }
.phone-action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 18px; }
.phone-action { background: #fff; border-radius: 10px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow-soft); }
.phone-action .ic { width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.phone-action span { font-size: 8px; color: var(--ink-600); font-weight: 600; }

.phone-float-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--ink-800);
  animation: float 5s ease-in-out infinite;
}
.phone-float-1 { top: 90px; left: -46px; --rot: -4deg; }
.phone-float-2 { bottom: 130px; right: -40px; --rot: 3deg; animation-delay: -2.4s; }
.phone-float-card .badge { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Section shared ---------- */
section { padding: 108px 0; }
.section-head { max-width: 620px; margin: 0 0 56px; }
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  margin: 14px 0 0;
  color: var(--ink-900);
}
.section-title.on-dark { color: #fff; }
.section-sub { font-size: 15.5px; color: var(--ink-600); line-height: 1.6; margin-top: 14px; max-width: 520px; }
.section-sub.on-dark { color: var(--ink-400); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-200); border: 1px solid var(--ink-200); border-radius: 18px; overflow: hidden; }
.feature-card { background: var(--ink-50); padding: 34px 30px; transition: background-color 0.25s ease; }
.feature-card:hover { background: #fff; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 8px; color: var(--ink-900); }
.feature-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-600); margin: 0; }

/* ---------- Roles flow ---------- */
.roles { background: var(--ink-100); }
.role-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: role; position: relative; }
.role-flow::before {
  content: '';
  position: absolute; top: 34px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(to right, var(--ink-400) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.role-card { position: relative; z-index: 1; }
.role-num {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-300);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--brand-600);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.role-card:nth-child(1) .role-num { border-color: var(--brand-400); background: var(--brand-50); }
.role-card h4 { font-size: 15.5px; font-weight: 700; color: var(--ink-900); margin: 0 0 8px; }
.role-card p { font-size: 13px; color: var(--ink-600); line-height: 1.6; margin: 0; }

/* ---------- Mobile showcase (dark) ---------- */
.showcase { background: var(--ink-950); color: var(--ink-300); position: relative; overflow: hidden; }
.showcase-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 70px; align-items: center; position: relative; }
.showcase-list { margin-top: 30px; display: flex; flex-direction: column; gap: 24px; }
.showcase-item { display: flex; gap: 16px; }
.showcase-item .num { font-family: var(--font-mono); font-size: 12px; color: var(--brand-400); padding-top: 3px; flex-shrink: 0; width: 22px; }
.showcase-item h4 { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.showcase-item p { font-size: 13.5px; color: var(--ink-300); line-height: 1.6; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(150deg, var(--brand-700), var(--brand-900) 65%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(30px, 4vw, 44px); margin: 0 0 18px; }
.cta-sub { font-size: 15.5px; color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 34px; line-height: 1.6; }
.cta-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-cta-primary { background: #fff; color: var(--brand-700); }
.btn-cta-primary:hover { background: var(--ink-50); transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer { background: var(--ink-950); color: var(--ink-300); padding: 56px 0 34px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; padding-bottom: 40px; }
.footer-tagline { font-size: 13px; color: var(--ink-300); max-width: 280px; margin-top: 10px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-300); margin: 0 0 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink-400); margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: var(--ink-300); flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .showcase-inner { grid-template-columns: 1fr; }
  .hero { text-align: center; padding-top: 140px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-proof { justify-content: center; }
  .phone { margin-top: 60px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .role-flow { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .role-flow::before { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .feature-grid { grid-template-columns: 1fr; border-radius: 14px; }
  .role-flow { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  section { padding: 76px 0; }
  .phone { width: 240px; }
  .phone-screen { height: 486px; }
}
/* Inverse text and keyboard focus use the same soft blue/navy palette. */
.hero .eyebrow, .showcase .eyebrow, .cta .eyebrow { color: var(--brand-300); }
.hero .btn-primary { background: var(--brand-500); }
.hero .btn-primary:hover { background: #466795; }
.section-sub.on-dark, .footer-col a { color: var(--ink-300); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 4px; }
