/* ==========================================================
   SOLVWE — Clarity for complex problems.
   Design system per brand guideline:
   70–80% white · 15–20% black/graphite · 5–10% blue
   ========================================================== */

:root {
  --black: #101116;
  --electric: #2452E8;
  --bright: #3F6BFF;
  --soft: #7894FF;
  --white: #FFFFFF;
  --mist: #F6F7F9;
  --graphite: #454851;
  --rule: #E6E8ED;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--electric); color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 24px rgba(16,17,22,.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo svg, .logo img { height: 30px; width: auto; display: block; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  position: relative;
  color: var(--graphite); text-decoration: none;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  padding: 8px 14px; border-radius: 6px;
  transition: color .25s ease, background-color .25s ease;
}
.nav a:not(.nav-cta):hover {
  background: linear-gradient(90deg,
    #45B5E8, #2452E8, #7B5CFF, #A45CF7, #7B5CFF, #2452E8, #45B5E8);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 4s linear infinite;
}
.nav a.active { color: var(--black); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--electric); transform: translateX(-50%);
}
.nav a.nav-cta {
  margin-left: 18px;
  color: var(--white); background: var(--black);
  padding: 9px 20px; border-radius: 6px;
  font-weight: 600; overflow: hidden;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav a.nav-cta::after {
  content: "\2192"; display: inline-block;
  max-width: 0; opacity: 0; overflow: hidden;
  vertical-align: middle; transform: translateX(-6px);
  transition: max-width .3s ease, opacity .25s ease, transform .3s ease, margin-left .3s ease;
}
.nav a.nav-cta:hover {
  color: var(--white); background: var(--electric);
  box-shadow: 0 4px 16px rgba(36,82,232,.3);
}
.nav a.nav-cta:hover::after {
  max-width: 20px; opacity: 1; transform: none; margin-left: 8px;
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; position: absolute; left: 8px;
  width: 24px; height: 2px; background: var(--black); transition: .25s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 110px; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.wave-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero.center { text-align: center; }
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.04; letter-spacing: -0.03em; font-weight: 700;
  max-width: 15ch;
}
.hero.center h1 { margin: 0 auto; }
.hero .lede {
  margin-top: 32px; font-size: 20px; line-height: 1.6;
  color: var(--graphite); max-width: 620px; font-weight: 400;
}
.hero.center .lede { margin-left: auto; margin-right: auto; }
.hero .cta-row { margin-top: 40px; }

.eyebrow {
  display: block; font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--electric); margin-bottom: 24px;
}

/* ---------- Links & buttons ---------- */
.arrow-link {
  color: var(--electric); text-decoration: none;
  font-weight: 600; font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.arrow-link:hover { border-color: var(--electric); }
.arrow-link::after { content: " \2192"; }

.btn {
  display: inline-block; background: var(--electric); color: var(--white);
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 32px; border-radius: 3px; border: none; cursor: pointer;
  font-family: var(--font); transition: background .2s;
}
.btn:hover { background: var(--bright); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--black); color: var(--white); }
.section.dark .lede, .section.dark p { color: #B9BCC6; }

.rule-top { border-top: 1px solid var(--rule); }

.statement {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
  max-width: 20ch;
}
.statement .accent { color: var(--electric); }

.section-intro {
  margin-top: 28px; font-size: 19px; color: var(--graphite); max-width: 640px;
}
.section.dark .section-intro { color: #B9BCC6; }

/* ---------- Capability list ---------- */
.cap-list { margin-top: 64px; }
.cap-item {
  display: grid; grid-template-columns: 320px 1fr auto;
  gap: 32px; align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--rule);
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.cap-item:last-child { border-bottom: 1px solid var(--rule); }
.cap-item h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.cap-item p { color: var(--graphite); font-size: 16px; }
.cap-item .go { color: var(--electric); font-weight: 600; opacity: 0; transition: opacity .2s; }
.cap-item:hover .go { opacity: 1; }

/* ---------- Numbered process ---------- */
.process { margin-top: 64px; counter-reset: step; }
.process-item {
  display: grid; grid-template-columns: 90px 240px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.process-item:last-child { border-bottom: 1px solid var(--rule); }
.process-item .num {
  font-size: 14px; font-weight: 600; color: var(--electric);
  letter-spacing: .1em;
}
.process-item h3 { font-size: 20px; font-weight: 600; }
.process-item p { color: var(--graphite); font-size: 16px; }

/* ---------- Solve visual (chaos → clarity) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 72px; align-items: center;
}
.solve-visual canvas { width: 100%; height: 320px; display: block; }
.solve-caption {
  position: relative; height: 22px; margin-top: 18px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center;
}
.solve-caption span {
  position: absolute; left: 0; right: 0;
  transition: opacity .5s ease;
}
.solve-caption .cap-problem { color: #8A8E9B; }
.solve-caption .cap-solved { color: var(--soft); opacity: 0; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .solve-visual canvas { height: 260px; }
}

/* ---------- Feature grid (restrained) ---------- */
.feature-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.feature-cell {
  padding: 36px 36px 40px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.feature-cell h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-cell h3 span { color: var(--electric); margin-right: 10px; font-size: 14px; font-weight: 600; }
.feature-cell p { color: var(--graphite); font-size: 15.5px; }

/* ---------- Principles ---------- */
.principle-list { margin-top: 56px; }
.principle {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle h3 { font-size: 18px; font-weight: 600; }
.principle p { color: var(--graphite); font-size: 16px; }

/* ---------- Journal (Thinking) ---------- */
.journal { margin-top: 64px; }
.journal-item {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 32px;
  padding: 40px 0; border-top: 1px solid var(--rule);
  text-decoration: none; color: inherit; align-items: baseline;
}
.journal-item:last-child { border-bottom: 1px solid var(--rule); }
.journal-item .meta { font-size: 13px; color: var(--graphite); letter-spacing: .06em; text-transform: uppercase; }
.journal-item h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; max-width: 24ch; }
.journal-item h3:hover { color: var(--electric); }
.journal-item p { margin-top: 10px; color: var(--graphite); font-size: 16px; max-width: 60ch; }

/* ---------- Big closing statement ---------- */
.closing { padding: 130px 0; text-align: center; }
.closing h2 {
  font-size: clamp(30px, 4.5vw, 56px); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 700; max-width: 22ch; margin: 0 auto;
}
.closing .tagline { margin-top: 28px; color: var(--electric); font-weight: 600; font-size: 19px; }

/* ---------- Forms ---------- */
.form { margin-top: 56px; max-width: 640px; }
.form-row { margin-bottom: 28px; }
.form label {
  display: block; font-size: 14px; font-weight: 600;
  margin-bottom: 8px; letter-spacing: .02em;
}
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 16px; font-family: var(--font);
  font-size: 16px; color: var(--black);
  border: 1px solid var(--rule); border-radius: 3px; background: var(--white);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--electric);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 72px 0 48px; background: var(--white);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand svg, .footer-brand img { height: 26px; width: auto; display: block; }
.footer-brand p { margin-top: 18px; font-size: 15px; color: var(--graphite); max-width: 30ch; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--graphite); margin-bottom: 18px;
}
.footer-col a {
  display: block; color: var(--black); text-decoration: none;
  font-size: 15px; margin-bottom: 12px; transition: color .2s;
}
.footer-col a:hover { color: var(--electric); }
.footer-bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--graphite); flex-wrap: wrap; gap: 12px;
}
.footer-bottom .tag { color: var(--electric); font-weight: 600; }

/* ---------- Motion system ----------
   Restrained, per brand guideline: line drawing, subtle text
   reveals, gentle transitions. Never delays access to content. */

/* Reveal on scroll (staggered via JS transition-delay) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Animated gradient text — cyan → electric blue → violet, slowly shifting */
.gradient-text {
  background: linear-gradient(90deg,
    #45B5E8, #2452E8, #7B5CFF, #A45CF7, #7B5CFF, #2452E8, #45B5E8);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero entrance — soft rise, staggered */
.hero h1, .hero .lede, .hero .cta-row, .hero .eyebrow, .hero .form {
  opacity: 0; transform: translateY(16px);
  animation: hero-in .8s ease forwards;
}
.hero .eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: .08s; }
.hero .lede { animation-delay: .22s; }
.hero .cta-row, .hero .form { animation-delay: .36s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Architectural rules that draw themselves in */
.cap-item, .process-item, .principle, .journal-item {
  position: relative; border-top-color: transparent !important;
}
.cap-item::before, .process-item::before, .principle::before, .journal-item::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--rule);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(.25,.6,.3,1);
}
.cap-item.visible::before, .process-item.visible::before,
.principle.visible::before, .journal-item.visible::before,
.no-js .cap-item::before, .no-js .process-item::before { transform: scaleX(1); }

/* Arrow links — arrow drifts forward on hover */
.arrow-link::after { display: inline-block; transition: transform .25s ease; }
.arrow-link:hover::after { transform: translateX(5px); }

/* Capability rows — gentle indent on hover */
.cap-item { transition: padding-left .3s ease; }
.cap-item:hover { padding-left: 10px; }

/* Buttons — quiet lift */
.btn { transition: background .2s, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(36,82,232,.22); }

/* Closing sections host the ambient wave too */
.closing { position: relative; overflow: hidden; }
.closing .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero .lede, .hero .cta-row, .hero .eyebrow, .hero .form {
    opacity: 1; transform: none; animation: none;
  }
  .cap-item::before, .process-item::before, .principle::before, .journal-item::before {
    transform: scaleX(1); transition: none;
  }
  .cap-item, .arrow-link::after, .btn { transition: none; }
  .gradient-text, .nav a.nav-cta, .nav a:not(.nav-cta):hover { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cap-item { grid-template-columns: 1fr; gap: 8px; }
  .cap-item .go { display: none; }
  .process-item { grid-template-columns: 60px 1fr; }
  .process-item p { grid-column: 2; }
  .feature-grid { grid-template-columns: 1fr; }
  .journal-item { grid-template-columns: 1fr; gap: 10px; }
  .principle { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero { padding: 90px 0 70px; }
  .section { padding: 68px 0; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: flex-start;
    padding: 24px 32px; gap: 20px;
  }
  .nav.open { display: flex; }
  .nav a.nav-cta { margin-left: 0; }
  .nav a.active::after { left: 14px; transform: none; }
  .nav-toggle { display: block; }
}
