/* ============================================================
   Upfloat marketing site — design tokens + components
   Recreated from the design spec (README.md / Upfloat Website.dc.html).
   ============================================================ */

:root {
  --canvas: #fafafa;
  --card: #ffffff;
  --dark: #0f0d0b;
  --ink: #0a0a0a;
  --body: #3f3f46;
  --muted: #6b6b70;
  --faint: #a99e8e;
  --accent: #e96b2a;
  --accent-hover: #d85619;
  --border: #e4e4e7;
  --input-border: #d4d4d8;
  --offwhite: #ece8e1;
  --on-dark: #fafafa;
  --on-dark-muted: #a99e8e;
  --maxw: 1180px;
  --pad: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

@keyframes floatline { 0%,100% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: -14; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
main { flex: 1; }

.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
}

/* -------- buttons -------- */
.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  padding: 13px 24px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-accent { background: var(--accent); color: var(--on-dark); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-dark); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--input-border); }
.btn-white:hover { color: var(--ink); }
.btn-offwhite { background: var(--offwhite); color: var(--ink); }
.btn-offwhite:hover { color: var(--ink); }
.btn-lg { padding: 14px 28px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,250,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 66px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(233,107,42,.14);
  flex: none;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.main-nav { display: flex; gap: 4px; margin-left: 6px; }
.nav-link {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { font-weight: 600; color: var(--ink); background: #efefef; }

/* -------- contact dropdown -------- */
.contact { margin-left: auto; position: relative; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark);
  background: var(--ink);
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
}
.contact-btn .caret {
  font-size: 10px;
  display: inline-block;
  transition: transform .18s;
}
.contact.open .contact-btn .caret { transform: rotate(180deg); }
.contact-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(15,13,11,.12);
  padding-bottom: 2px;
  overflow: hidden;
  transform-origin: top right;
  transition: opacity .15s, transform .15s;
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}
.contact.open .contact-menu { opacity: 1; transform: scale(1); pointer-events: auto; }
.contact-menu-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: #9a9aa0;
  padding: 12px 14px 6px;
}
.contact-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px;
  color: var(--ink);
}
.contact-menu a:last-child { padding: 9px 14px 12px; border-top: 1px solid #f0f0f0; }
.contact-menu a .t { font-size: 14px; font-weight: 600; }
.contact-menu a .s { font-size: 12px; color: var(--muted); }
.contact-menu a .s.mono { font-family: 'Geist Mono', monospace; }

/* ============ SHARED SECTION SHAPES ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 88px var(--pad); }
.dark-panel { background: var(--dark); color: var(--offwhite); }
.dark-panel .inner { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad); }

/* ============ HERO ============ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 96px var(--pad) 72px; }
.hero-inner { max-width: 820px; }
.hero .eyebrow { margin-bottom: 22px; display: block; }
.hero h1 {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--body);
  max-width: 640px;
  margin: 0 0 36px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ STAT BAND ============ */
.stat-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.stat-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 40px 32px; }
.stat:first-child { padding-left: 0; border-right: 1px solid var(--border); }
.stat:nth-child(2) { border-right: 1px solid var(--border); }
.stat:last-child { padding-right: 0; }
.stat-num { font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.stat-desc { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ============ PROBLEM ============ */
.h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.problem .eyebrow { margin-bottom: 16px; display: block; }
.problem h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin: 0 0 16px; max-width: 720px; }
.problem .intro { font-size: 18px; color: var(--body); line-height: 1.55; max-width: 680px; margin: 0 0 48px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 26px; }
.card-num { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--faint); margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ============ SOLUTION DARK LAYER (home) ============ */
.layer .eyebrow { margin-bottom: 16px; display: block; }
.layer h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin: 0 0 16px; max-width: 760px; color: var(--on-dark); }
.layer .intro { font-size: 18px; color: var(--on-dark-muted); line-height: 1.55; max-width: 680px; margin: 0 0 52px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  overflow: hidden;
}
.pillar { background: var(--dark); padding: 28px; }
.pillar-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: rgba(233,107,42,.16);
  border: 1px solid rgba(233,107,42,.4);
  margin-bottom: 16px;
}
.pillar h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--on-dark); }
.pillar p { font-size: 13px; color: var(--on-dark-muted); line-height: 1.5; margin: 0; }
.layer .cta-row { margin-top: 32px; }

/* ============ CLOSING CTA (light, centered) ============ */
.closing { max-width: var(--maxw); margin: 0 auto; padding: 90px var(--pad); text-align: center; }
.closing h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 0 auto 20px; max-width: 720px; }

/* ============ DARK CENTERED CTA ============ */
.dark-cta { background: var(--dark); color: var(--on-dark); text-align: center; }
.dark-cta .inner { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad); }
.dark-cta h2 { font-size: 34px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin: 0 auto 20px; max-width: 640px; }
.dark-cta p { font-size: 16px; color: var(--on-dark-muted); margin: 0 auto 26px; max-width: 520px; }

/* ============ SOLUTIONS INTRO ============ */
.lead { max-width: var(--maxw); margin: 0 auto; padding: 88px var(--pad) 56px; }
.lead .eyebrow { margin-bottom: 20px; display: block; }
.lead h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 22px; max-width: 840px; }
.lead p { font-size: 19px; line-height: 1.5; color: var(--body); max-width: 700px; margin: 0; }

/* ============ CONNECT DIAGRAM ============ */
.stack { border-top: 1px solid var(--border); background: #fff; }
.stack .inner { max-width: var(--maxw); margin: 0 auto; padding: 72px var(--pad); }
.stack .eyebrow { margin-bottom: 14px; display: block; }
.stack h2 { font-size: 32px; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0 0 44px; max-width: 640px; }
.diagram { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.sources { display: flex; flex-direction: column; gap: 14px; min-width: 200px; }
.source-chip { border: 1px solid var(--border); border-radius: 7px; padding: 14px 16px; background: var(--canvas); }
.source-chip .name { font-weight: 600; font-size: 14px; }
.source-chip .sub { font-size: 12px; color: var(--muted); font-family: 'Geist Mono', monospace; margin-top: 2px; }
.diagram svg { flex: none; }
.graph-node {
  background: var(--dark); color: var(--on-dark);
  border-radius: 10px; padding: 28px 26px; min-width: 230px; max-width: 264px;
  box-shadow: 0 12px 34px rgba(15,13,11,.18);
}
.graph-node .mark {
  width: 20px; height: 20px; border-radius: 5px; background: var(--accent);
  display: inline-block; box-shadow: 0 0 0 4px rgba(233,107,42,.18); margin-bottom: 14px;
}
.graph-node .title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.graph-node .desc { font-size: 13px; color: var(--on-dark-muted); line-height: 1.5; margin-top: 8px; }
.outputs { display: flex; flex-direction: column; gap: 14px; min-width: 190px; }
.output-chip {
  border: 1px solid rgba(233,107,42,.35); border-radius: 7px;
  padding: 14px 16px; background: rgba(233,107,42,.06);
}
.output-chip .name { font-weight: 600; font-size: 14px; }

/* ============ CAPABILITIES 2x2 ============ */
.capabilities { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad) 40px; }
.capabilities .eyebrow { margin-bottom: 14px; display: block; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cap-card { border: 1px solid var(--border); border-radius: 8px; padding: 30px; background: #fff; }
.cap-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.015em; }
.cap-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ============ TRUST STRIP ============ */
.trust { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad) 80px; }
.trust-panel { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 40px; }
.trust-panel .eyebrow { margin-bottom: 20px; display: block; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-grid h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.trust-grid p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ============ ABOUT ============ */
.about-hero h1 { max-width: 860px; line-height: 1.05; }
.about-hero p { max-width: 720px; line-height: 1.55; }
.thesis { border-top: 1px solid var(--border); background: #fff; }
.thesis .inner { max-width: var(--maxw); margin: 0 auto; padding: 72px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.thesis h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.thesis p { font-size: 15px; color: var(--body); line-height: 1.65; margin: 0 0 14px; }
.thesis p:last-child { margin-bottom: 0; }
.team { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--pad); }
.team .eyebrow { margin-bottom: 14px; display: block; }
.team h2 { font-size: 32px; font-weight: 700; letter-spacing: -.025em; margin: 0 0 12px; }
.team .intro { font-size: 16px; color: var(--muted); line-height: 1.55; max-width: 600px; margin: 0 0 44px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 26px; }
.member-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.member-badge {
  width: 44px; height: 44px; border-radius: 8px; background: var(--dark); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 15px; flex: none;
}
.member-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.member-school { font-size: 11px; color: var(--faint); font-family: 'Geist Mono', monospace; letter-spacing: .06em; margin-top: 2px; }
.member-bio { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--canvas); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 18px; height: 18px; border-radius: 4px; background: var(--accent); display: inline-block; }
.footer-name { font-weight: 700; font-size: 15px; }
.footer-tag { font-size: 13px; color: var(--muted); margin-left: 8px; }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-links a.mono { font-family: 'Geist Mono', monospace; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --pad: 20px; }
  .hero { padding: 64px var(--pad) 56px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .lead h1, .about-hero h1 { font-size: 38px; }
  .lead p, .about-hero p { font-size: 17px; }
  .h2, .problem h2, .layer h2 { font-size: 30px; }
  .closing h2 { font-size: 30px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat, .stat:first-child, .stat:last-child { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .thesis .inner { grid-template-columns: 1fr; gap: 40px; }
  /* stack the connect diagram vertically; drop the SVG connectors */
  .diagram { flex-direction: column; align-items: stretch; gap: 14px; }
  .diagram svg { display: none; }
  .sources, .outputs, .graph-node { min-width: 0; width: 100%; }
  .main-nav { gap: 0; margin-left: 0; }
  .nav-link { padding: 8px 10px; }
  .header-inner { gap: 12px; }
  .brand-name { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .contact-btn { padding: 9px 14px; }
}
