/* ==========================================================================
   e2ecore landing — enterprise engineering visual system
   Navy control-room + cyan architecture bus. Logo: cyan loop, navy/ink letters.
   ========================================================================== */

:root {
  --navy: #041526;
  --navy-2: #0A2744;
  --surface: #0E3052;
  --cyan: #2EE6D6;
  --teal: #1AA7A0;
  --paper: #F3F7FA;
  --paper-2: #E4EEF4;
  --ink: #F4FBFC;
  --ink-dark: #0B1C2C;
  --muted: #8AA3B8;
  --muted-dark: #4A6276;
  --line: rgba(46, 230, 214, 0.18);
  --line-dark: rgba(11, 28, 44, 0.12);
  --grid: rgba(46, 230, 214, 0.0375);
  --orange: #FF8800;
  --lime: #84CC16;
  --danger: #E24B4B;

  --font-display: Lato-light, "Lato", sans-serif;
  --font-body: Lato-light, "Lato", sans-serif;
  --font-mono: Lato-light, "Lato", sans-serif;

  --nav-h: 80px;
  --container: 1200px;
  --gutter: 48px;
  --radius: 4px;
  --radius-window: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lift: 0 18px 40px rgba(4, 21, 38, 0.18);
  --shadow-window: 0 28px 64px rgba(4, 21, 38, 0.45);
}

@font-face {
  font-family: "Lato-light";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh7USSwiPGQ.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html.is-scrolling {
  scrollbar-color: rgba(46, 230, 214, 0.7) rgba(4, 21, 38, 0.55);
}

html.is-scrolling::-webkit-scrollbar-track {
  background: rgba(4, 21, 38, 0.72);
}

html.is-scrolling::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2ee6d6 0%, #1aa7a0 100%);
  border: 2px solid var(--navy);
}

body {
  min-height: 100%;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: inherit;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--ink);
}

.section-paper {
  background: var(--paper);
  color: var(--ink-dark);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section-paper .eyebrow {
  color: var(--navy-2);
}

.section-title,
h2.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 18ch;
}

.section-title em,
h2 em,
h3 em,
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cyan);
}

.section-paper .section-title em,
.section-paper h2 em,
.section-paper h3 em {
  color: var(--navy-2);
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 92%;
}

.lede,
.section-lede {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  max-width: 62ch;
  color: var(--muted);
}

.section-paper .lede,
.section-paper .section-lede {
  color: var(--muted-dark);
}

/* Signature: blueprint grid */

.grid-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

.section-paper.grid-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
}

/* Signature: vertical architecture bus */

.spine {
  position: relative;
  padding-left: 28px;
}

.spine::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--cyan) 8%,
    var(--cyan) 92%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(46, 230, 214, 0.35);
}

.spine::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  background: var(--navy);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-mark img {
  height: 46px;
  width: auto;
  max-width: min(240px, 62vw);
  display: block;
  image-rendering: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--cyan);
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.btn-brand:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--navy);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  background: rgba(244, 251, 252, 0.06);
  border: 1px solid var(--line);
  border-radius: 100px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover:not(.active) {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--cyan);
  color: var(--navy);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.menu-btn.open .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.open .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background: var(--navy-2);
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 28px;
}

.mobile-menu.open {
  display: block;
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.mobile-link:hover {
  color: var(--cyan);
}

.mobile-menu .btn-brand {
  width: 100%;
  margin-top: 20px;
}

.mobile-lang-row {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    gap 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary {
  padding: 12px 22px;
  background: var(--cyan);
  color: var(--navy);
  border: 1px solid var(--cyan);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--navy);
}

.btn-primary .arrow,
.btn-ghost .arrow,
.btn-secondary .arrow {
  display: inline-block;
  transition: transform 0.22s var(--ease);
}

.btn-primary:hover .arrow,
.btn-ghost:hover .arrow,
.btn-secondary:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  padding: 10px 0;
  background: transparent;
  color: inherit;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  gap: 12px;
}

.btn-ghost:hover {
  gap: 18px;
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.section-paper .btn-ghost {
  color: var(--ink-dark);
}

.section-paper .btn-ghost:hover {
  color: var(--navy-2);
  border-bottom-color: var(--teal);
}

.btn-secondary {
  padding: 12px 22px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn-secondary:hover {
  background: rgba(46, 230, 214, 0.1);
}

.section-paper .btn-secondary {
  color: var(--navy-2);
  border-color: var(--navy-2);
}

.section-paper .btn-secondary:hover {
  background: rgba(10, 39, 68, 0.06);
  color: var(--navy);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-brand:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.35s var(--ease);
}

.link-underline:hover::after {
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 108px;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 70% 50% at 78% 42%, rgba(46, 230, 214, 0.0375), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  color: var(--ink);
  overflow-x: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-kicker .sep {
  color: var(--cyan);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 16ch;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-bottom: 48px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  max-width: 520px;
}

.hero-proof > *,
.proof-item {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.hero-proof strong,
.proof-val {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.hero-proof span,
.hero-proof small,
.proof-label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Stacked product windows */

.hero-stage {
  position: relative;
  min-height: 520px;
  height: 100%;
}

.hero-stage .shot-frame {
  position: absolute;
  width: min(100%, 460px);
  box-shadow: var(--shadow-window);
}

.hero-stage .shot-frame:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 1;
  width: min(62%, 340px);
  transform: rotate(-4deg);
}

.hero-stage .shot-frame:nth-child(2) {
  top: 2%;
  right: 0;
  left: auto;
  z-index: 2;
  width: min(62%, 340px);
  transform: rotate(3.5deg);
}

.hero-stage .shot-frame:nth-child(3) {
  top: 30%;
  left: 0;
  z-index: 3;
  width: min(70%, 380px);
  transform: rotate(-1.2deg);
}

.hero-stage .shot-frame:nth-child(4),
.hero-stage .shot-frame:last-child:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)) {
  top: 40%;
  left: 22%;
  z-index: 4;
  width: min(80%, 420px);
  transform: none;
}

.hero-stage .shot-frame:only-child {
  position: relative;
  top: auto;
  left: auto;
  transform: rotate(-1.5deg);
  margin: 0 auto;
}

.shot-frame {
  overflow: hidden;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-window);
  box-shadow: 0 20px 48px rgba(4, 21, 38, 0.28);
}

.shot-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--navy-2) 100%);
  border-bottom: 1px solid var(--line);
}

.shot-chrome::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    14px 0 0 rgba(46, 230, 214, 0.55),
    28px 0 0 rgba(46, 230, 214, 0.28);
}

.shot-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.shot-chrome span:nth-child(2) {
  opacity: 0.55;
}

.shot-chrome span:nth-child(3) {
  opacity: 0.28;
}

.shot-chrome:has(span)::before {
  display: none;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--surface);
}

.shot-frame--logo {
  background: #fff;
}

.shot-frame--logo img {
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 10% 8%;
}

/* Need → Architecture → Application */

.pipe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pipe > * {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--ink);
  background: rgba(14, 48, 82, 0.7);
  border: 1px solid var(--line);
  border-radius: 100px;
}

.pipe > *:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--cyan);
  font-weight: 500;
}

.section-paper .pipe > * {
  color: var(--ink-dark);
  background: var(--paper-2);
  border-color: var(--line-dark);
}

.section-paper .pipe > *:not(:last-child)::after {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Fit — who we work with
   -------------------------------------------------------------------------- */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fit-card {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink-dark);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s ease;
}

.section-dark .fit-card {
  background: var(--navy-2);
  border-color: var(--line);
  color: var(--ink);
}

.fit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(46, 230, 214, 0.45);
}

.fit-card .fit-num,
.fit-card .fit-icon,
.fit-card > .num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.section-dark .fit-card .fit-num,
.section-dark .fit-card .fit-icon {
  color: var(--cyan);
}

.fit-card h3,
.fit-card .fit-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.fit-card p,
.fit-card .fit-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.section-dark .fit-card p,
.section-dark .fit-card .fit-text {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Build — what we construct
   -------------------------------------------------------------------------- */

.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.build-card {
  padding: 28px 24px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.section-paper .build-card {
  background: #fff;
  border-color: var(--line-dark);
  color: var(--ink-dark);
}

a.build-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.build-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.build-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 230, 214, 0.5);
}

.build-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

.build-card h3,
.build-card .build-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 12px;
}

.build-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.section-paper .build-card p {
  color: var(--muted-dark);
}

.build-card .mono,
.build-card .build-meta {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.section-paper .build-card .mono,
.section-paper .build-card .build-meta {
  color: var(--navy-2);
}

/* --------------------------------------------------------------------------
   Apps — sidebar list + detail
   -------------------------------------------------------------------------- */

.apps-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.app-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}

.section-paper .app-tabs {
  border-left-color: var(--line-dark);
}

.app-tab {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.section-paper .app-tab {
  color: var(--muted-dark);
}

.app-tab:hover {
  color: var(--ink);
  background: rgba(46, 230, 214, 0.04);
}

.section-paper .app-tab:hover {
  color: var(--ink-dark);
}

.app-tab.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(46, 230, 214, 0.06);
}

.section-paper .app-tab.active {
  color: var(--navy-2);
  border-left-color: var(--teal);
  background: rgba(26, 167, 160, 0.08);
}

.app-detail {
  min-height: 280px;
}

.app-detail h3,
.app-detail .app-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.app-shot {
  margin: 20px 0 24px;
}

.app-shot img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
}

.app-shot .shot-frame--logo img {
  max-height: 280px;
  object-fit: contain;
}

.app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 28px 0;
}

.app-shot .shot-frame {
  max-width: 100%;
}

.arch-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 24px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.arch-diagram > *,
.arch-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.section-paper .arch-diagram > *,
.section-paper .arch-node {
  color: var(--ink-dark);
  background: var(--paper-2);
  border-color: var(--line-dark);
}

.arch-diagram > *:not(:last-child)::after,
.arch-node:not(:last-child)::after {
  content: "";
  width: 28px;
  height: 2px;
  margin-left: 10px;
  margin-right: -10px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(46, 230, 214, 0.4);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(46, 230, 214, 0.06);
}

.section-paper .pill {
  color: var(--navy-2);
  border-color: var(--line-dark);
  background: var(--paper-2);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.section-paper .feature-list li {
  color: var(--muted-dark);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  border-radius: 1px;
  transform: rotate(45deg);
}

.section-paper .feature-list li::before {
  border-color: var(--teal);
}

/* --------------------------------------------------------------------------
   Products spotlight
   -------------------------------------------------------------------------- */

.product-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.product-duo .build-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 36px 36px 32px;
  gap: 0;
}

.product-logo-plate {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 20px;
  max-width: min(100%, 320px);
}

.product-logo-plate img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.product-duo .build-meta {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product-duo h3,
.product-duo .build-title {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

.product-duo p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 28px;
  flex: 1;
  overflow-wrap: break-word;
}

.product-duo .btn-ghost {
  margin-top: auto;
  align-self: flex-start;
}

.section-paper .product-duo p {
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   Experience
   -------------------------------------------------------------------------- */

.xp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.xp-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.section-paper .xp-item {
  border-top-color: var(--line-dark);
}

.xp-item h3,
.xp-item .xp-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}

.xp-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.section-paper .xp-item p {
  color: var(--muted-dark);
}

.xp-item .xp-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.section-paper .xp-item .xp-num {
  color: var(--navy-2);
}

/* --------------------------------------------------------------------------
   Cloud OCI
   -------------------------------------------------------------------------- */

.oci-band {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 32px 48px;
  align-items: start;
  padding: 36px 40px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.section-paper .oci-band {
  background: var(--navy);
}

.oci-band h3,
.oci-band .oci-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.oci-band > header p,
.oci-band .oci-lede {
  font-size: 14px;
  color: var(--muted);
}

.oci-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px 28px;
}

.oci-points li,
.oci-point {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.oci-points li::before,
.oci-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(46, 230, 214, 0.6);
}

/* --------------------------------------------------------------------------
   Tech groups
   -------------------------------------------------------------------------- */

.tech-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 28px;
}

.tech-group {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.section-paper .tech-group {
  border-top-color: var(--line-dark);
}

.tech-group dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-paper .tech-group dt {
  color: var(--navy-2);
}

.tech-group dd {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.section-paper .tech-group dd {
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   Arrive — don't need a solution yet
   -------------------------------------------------------------------------- */

.arrive-list {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.arrive-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
}

.section-paper .arrive-list li {
  border-top-color: var(--line-dark);
  color: var(--ink-dark);
}

.arrive-list li::before {
  content: attr(data-n);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  padding-top: 3px;
}

.arrive-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.section-paper .arrive-list li:last-child {
  border-bottom-color: var(--line-dark);
}

.arrive-list:not(:has(li[data-n])) {
  counter-reset: arrive;
}

.arrive-list:not(:has(li[data-n])) li::before {
  counter-increment: arrive;
  content: counter(arrive, decimal-leading-zero);
}

/* --------------------------------------------------------------------------
   Process — 01–07
   -------------------------------------------------------------------------- */

.process-flow {
  display: block;
  margin: 0 0 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-paper .process-flow {
  color: var(--muted-dark);
}

.process-track {
  --process-n: 7;
  counter-reset: process;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 15px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 8%, var(--cyan) 92%, transparent);
  pointer-events: none;
}

.process-step {
  counter-increment: process;
  position: relative;
  z-index: 1;
  padding: 0 12px 0 0;
}

.process-step::before,
.process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px var(--navy);
}

.section-paper .process-step::before,
.section-paper .process-num {
  box-shadow: 0 0 0 4px var(--paper);
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
}

.process-step[data-step]::before {
  content: attr(data-step);
}

.process-step:has(.process-num)::before {
  display: none;
}

.process-step h3,
.process-step .process-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.section-paper .process-step p {
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   Invest — two-column statement, no prices
   -------------------------------------------------------------------------- */

.invest,
.invest-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
  align-items: start;
}

.invest-col h3,
.invest-statement h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

.invest p,
.invest-col p,
.invest-statement p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.section-paper .invest p,
.section-paper .invest-col p,
.section-paper .invest-statement p {
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */

.founder-section {
  padding: 112px 0;
  background: var(--navy);
  color: var(--ink);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: start;
}

.founder-card {
  position: relative;
  overflow: hidden;
  background: var(--navy-2);
  border: 1px solid var(--line);
  padding: 0 0 40px;
}

.founder-card::before {
  content: "";
  position: absolute;
  top: -90px;
  left: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 214, 0.14), transparent 70%);
  pointer-events: none;
}

.founder-photo-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(18%) contrast(1.06);
}

.founder-card-body {
  position: relative;
  z-index: 1;
  padding: 0 32px;
}

.founder-full-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.founder-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.founder-title-badge::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--cyan);
}

.founder-card-divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 24px;
}

.founder-card-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.founder-stat-mini-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.founder-stat-mini-val {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.founder-content {
  padding-top: 4px;
}

.founder-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

.founder-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--cyan);
}

.founder-bio {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 40px;
}

.founder-resume {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.founder-resume-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.founder-resume-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.founder-resume-val {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.founder-resume-val strong {
  font-weight: 600;
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Location
   -------------------------------------------------------------------------- */

.location-section {
  padding: 96px 0;
  background: var(--paper);
  color: var(--ink-dark);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.location-map-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 280px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--navy);
  background-size: 40px 40px, 40px 40px, auto;
  border: 1px solid var(--line);
  padding: 40px 24px;
}

.location-map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.location-map-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.location-details {
  display: flex;
  flex-direction: column;
}

.location-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  align-items: start;
}

.location-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.location-item-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-top: 2px;
}

.location-item-val {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-dark);
}

.location-item-val a {
  color: var(--navy-2);
}

.location-item-val a:hover {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq-section {
  background: var(--paper);
  color: var(--ink-dark);
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--line-dark);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

button.faq-q,
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
}

button.faq-q::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

button.faq-q[aria-expanded="true"]::after {
  content: "−";
  color: var(--teal);
  border-color: var(--teal);
}

.faq-a {
  display: none;
  padding: 0 0 22px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-dark);
}

.faq-item:has(button.faq-q[aria-expanded="true"]) .faq-a,
.faq-item.open .faq-a,
button.faq-q[aria-expanded="true"] + .faq-a,
button.faq-q[aria-expanded="true"] + * .faq-a {
  display: block;
}

.section-dark .faq-item {
  border-color: var(--line);
}

.section-dark button.faq-q,
.section-dark .faq-q {
  color: var(--ink);
}

.section-dark button.faq-q::after {
  color: var(--cyan);
  border-color: var(--line);
}

.section-dark .faq-a {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-section {
  padding: 112px 0;
  background: var(--paper);
  color: var(--ink-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
  align-items: start;
}

.contact-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-dark);
  margin-bottom: 40px;
  max-width: 48ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0 0;
  margin-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-top: 4px;
}

.contact-link {
  font-size: 16px;
  color: var(--ink-dark);
}

.contact-link:hover {
  color: var(--teal);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--navy-2);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b8296;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(11, 28, 44, 0.28);
}

.field input:focus,
.field textarea:focus,
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 167, 160, 0.2);
  outline: none;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(226, 75, 75, 0.15);
}

.field-error {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #b42318;
}

.field.is-invalid .field-error,
.field:has([aria-invalid="true"]) .field-error,
.field-error.is-visible {
  display: block;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: var(--radius);
}

.form-status.success,
.form-status.is-success,
.form-status[data-state="success"] {
  display: block;
  background: rgba(26, 167, 160, 0.12);
  border-left: 3px solid var(--teal);
  color: var(--ink-dark);
}

.form-status.error,
.form-status.is-error,
.form-status[data-state="error"] {
  display: block;
  background: rgba(226, 75, 75, 0.1);
  border-left: 3px solid var(--danger);
  color: var(--ink-dark);
}

.form-status[hidden] {
  display: none !important;
}

.contact-disclaimer {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-dark);
  max-width: 48ch;
}

.contact-section .btn-primary,
.contact-grid .btn-primary {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.legal-section {
  padding: 96px 0;
  background: var(--paper);
  color: var(--ink-dark);
  border-top: 1px solid var(--line-dark);
}

.legal-section.alt {
  background: var(--paper-2);
}

.legal-wrap {
  max-width: 760px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-dark);
  margin: -8px 0 36px;
}

.legal-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-dark);
}

.legal-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--ink-dark);
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 14px;
  color: #243746;
}

.legal-body ul {
  margin: 0 0 16px 1.2em;
  list-style: disc;
}

.legal-body li {
  margin-bottom: 8px;
  color: #243746;
}

.legal-body a {
  color: var(--navy-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer,
.footer {
  background: var(--navy);
  color: var(--ink);
  padding: 80px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .footer-mark {
  height: 44px;
  width: auto;
  max-width: 240px;
  display: block;
  image-rendering: auto;
}

.footer-tagline {
  margin-top: 20px;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(244, 251, 252, 0.06);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-btn:hover {
  background: rgba(46, 230, 214, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

.social-btn svg {
  display: block;
}

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.chat-widget > * {
  pointer-events: auto;
}

.chat-widget.is-near-contact:not(.is-open) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chat-invite {
  position: relative;
  max-width: min(280px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-window);
  background: var(--navy);
  color: var(--ink);
  box-shadow: var(--shadow-window);
  cursor: pointer;
  text-align: left;
}

.chat-invite-open {
  display: block;
  width: 100%;
  padding: 0 28px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.chat-invite-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.chat-invite-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(4, 21, 38, 0.35);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.chat-launcher:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.chat-launcher svg {
  flex-shrink: 0;
}

.chat-launcher-short {
  display: none;
}

.chat-widget.is-open .chat-launcher-full {
  display: none;
}

.chat-widget.is-open .chat-launcher-short {
  display: inline;
}

.chat-panel {
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-window);
  background: var(--paper);
  color: var(--ink-dark);
  box-shadow: var(--shadow-window);
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--navy);
  color: var(--ink);
}

.chat-header-copy {
  min-width: 0;
}

.chat-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chat-header-sub {
  margin: 2px 0 0;
  color: var(--cyan);
  font-size: 12px;
}

.chat-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chat-transcript {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(4, 21, 38, 0.03), transparent 48px),
    var(--paper);
}

.chat-msg {
  max-width: 92%;
}

.chat-msg--user {
  align-self: flex-end;
}

.chat-msg-who {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.chat-msg-body {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-dark);
  font-size: 14px;
  line-height: 1.45;
}

.chat-msg--user .chat-msg-body {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ink);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--navy-2);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.chat-chip:hover {
  border-color: var(--teal);
  color: var(--navy-2);
}

.chat-chip--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}

.chat-composer {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.chat-composer[hidden] {
  display: none !important;
}

.chat-composer input[type="text"],
.chat-composer input[type="email"] {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-dark);
  font: inherit;
}

.chat-composer input[aria-invalid="true"] {
  border-color: var(--danger);
}

.chat-send {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cyan);
  font-size: 18px;
  cursor: pointer;
}

.chat-status {
  min-height: 0;
  margin: 0;
  padding: 0 16px 12px;
  color: var(--muted-dark);
  font-size: 12px;
}

.chat-status:empty {
  display: none;
}

.chat-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .chat-widget {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .chat-launcher {
    min-width: 56px;
    padding: 0 14px 0 12px;
  }

  .chat-launcher-full {
    display: none;
  }

  .chat-launcher-short {
    display: inline;
    white-space: nowrap;
    font-size: 13px;
  }

  .chat-panel {
    width: min(100vw - 24px, 400px);
    height: min(72vh, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher {
    transition: none;
  }
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(4, 21, 38, 0.35);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.wa-float:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.wa-float svg {
  flex-shrink: 0;
}

.wa-float-label {
  white-space: nowrap;
}

.wa-float-short {
  display: none;
}

@media (max-width: 720px) {
  .wa-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-width: 56px;
    padding: 0 14px 0 12px;
  }

  .wa-float-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .wa-float-short {
    display: inline;
    white-space: nowrap;
    font-size: 13px;
  }
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.footer-col-title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.82;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
}

.footer-legal {
  font-size: 12px;
  color: var(--muted);
}

.footer-version {
  display: inline-block;
  margin-left: 12px;
}

.footer-version code {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal-link {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.footer-legal-link:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   Tablet — 1100px
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
    --nav-h: 72px;
  }

  .section {
    padding: 88px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-right > .lang-toggle {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 56px;
  }

  .hero-grid,
  .product-duo,
  .founder-grid,
  .location-grid,
  .contact-grid,
  .invest,
  .invest-layout,
  .oci-band,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stage {
    min-height: 400px;
    max-width: 560px;
  }

  .hero-stage .shot-frame {
    width: min(88%, 420px);
  }

  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xp-grid {
    grid-template-columns: 1fr 1fr;
  }

  .apps-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .app-detail,
  .app-shot,
  .shot-frame {
    min-width: 0;
    max-width: 100%;
  }

  .app-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    border-left: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .app-tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    margin-left: 0;
    padding: 10px 16px;
    border-left: none;
    border: 1px solid var(--line);
    border-radius: 100px;
    white-space: nowrap;
  }

  .section-paper .app-tab {
    border-color: var(--line-dark);
  }

  .app-tab.active {
    border-color: var(--cyan);
    background: rgba(46, 230, 214, 0.12);
    color: var(--cyan);
  }

  .section-paper .app-tab.active {
    border-color: var(--navy-2);
    color: var(--navy-2);
  }

  .process-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .process-track::before {
    display: none;
  }

  .process-step {
    flex: 0 0 220px;
    scroll-snap-align: start;
    padding: 0;
  }

  .process-step::before,
  .process-num {
    box-shadow: 0 0 0 4px var(--navy);
  }

  .section-paper .process-step::before,
  .section-paper .process-num {
    box-shadow: 0 0 0 4px var(--paper);
  }

  .hero-proof {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile — 720px
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .section,
  .founder-section,
  .contact-section,
  .location-section,
  .legal-section {
    padding: 72px 0;
  }

  .section-intro {
    margin-bottom: 40px;
  }

  .product-duo .build-card {
    min-height: 0;
    padding: 28px 22px 24px;
  }

  .product-logo-plate {
    max-width: 100%;
    padding: 10px 12px;
  }

  .product-logo-plate img {
    height: 40px;
  }

  .product-duo h3,
  .product-duo .build-title {
    font-size: 22px;
  }

  .logo-mark img {
    height: 36px;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 44px);
    max-width: none;
  }

  .hero-lede,
  .lede,
  .section-lede {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-stage {
    min-height: 0;
    margin-top: 8px;
  }

  .hero-stage .shot-frame:nth-child(1),
  .hero-stage .shot-frame:nth-child(2),
  .hero-stage .shot-frame:nth-child(3),
  .hero-stage .shot-frame:nth-child(4) {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
    margin-bottom: 12px;
  }

  .hero-stage .shot-frame {
    display: none;
  }

  .hero-stage .shot-frame:last-child {
    display: block;
  }

  .hero-stage .shot-frame:last-child img {
    max-height: 220px;
  }

  .fit-grid,
  .xp-grid,
  .footer-cols,
  .founder-card-stat,
  .app-split,
  .invest {
    grid-template-columns: 1fr;
  }

  .process-track {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 0;
    padding-left: 28px;
  }

  .process-track::before {
    display: block;
    left: 7px;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--cyan), var(--cyan));
  }

  .process-step {
    flex: none;
    width: 100%;
    padding: 0 0 28px 8px;
  }

  .process-step::before,
  .process-num {
    position: relative;
    left: -36px;
    margin-bottom: 12px;
  }

  .oci-band {
    padding: 24px 20px;
  }

  .oci-points {
    grid-template-columns: 1fr;
  }

  .arrive-list li,
  .founder-resume-row,
  .location-item,
  .contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .founder-card-body {
    padding: 0 22px;
  }

  .footer-top {
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .arch-diagram {
    flex-wrap: nowrap;
  }

  .pipe > *:not(:last-child)::after {
    margin-left: 8px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero-stage .shot-frame,
  .hero-stage .shot-frame:nth-child(1),
  .hero-stage .shot-frame:nth-child(2),
  .hero-stage .shot-frame:nth-child(3),
  .hero-stage .shot-frame:nth-child(4),
  .fit-card:hover,
  .build-card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.hide-mobile {
  /* shown on desktop; hidden at 1100 via nav-links / lang-toggle rules */
}

@media (max-width: 1100px) {
  .hide-mobile {
    display: none !important;
  }
}

.show-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .show-mobile {
    display: block;
  }
}
