/* RealBlue software — aligné sur realblue.ch */

:root {
  --bg: #000000;
  --bg2: #0a0c14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --blue: #242e6a;
  --blue-dark: #1a2250;
  --blue-mid: #3a4a9a;
  --blue-bright: #6b7fd4;
  --cyan: #6b7fd4;
  --violet: #3a4a9a;
  --glow: rgba(36, 46, 106, 0.45);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: var(--font);
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 2px;
  --max: none;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --text-base: 1.0625rem;
  --leading: 1.7;
  --leading-tight: 1.2;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-weight: 300; letter-spacing: 0.01em; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(36, 46, 106, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(58, 74, 154, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 60% at 70% 90%, rgba(36, 46, 106, 0.28), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 14s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05) translateY(-2%); }
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(60px); }
}

a { color: var(--blue-bright); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: #9aabef; }

.wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 0;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, padding 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-mark {
  height: 2.5rem;
  width: auto;
  flex-shrink: 0;
  display: block;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.logo:hover .logo-mark {
  opacity: 0.88;
  transform: scale(1.02);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.nav a {
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  border-radius: 0;
  background: none;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: none;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.65rem 1.1rem !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--blue-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nav-mobile[hidden] { display: none !important; }

.nav-mobile {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.6rem 0;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.25rem 0 clamp(2.5rem, 7vw, 4.5rem);
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas:
    "tag terminal"
    "line1 terminal"
    "copy terminal"
    "actions terminal";
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 0;
  align-items: start;
}

.hero-tag { grid-area: tag; }
.hero-flag { grid-area: tag; }
.hero-line1 { grid-area: line1; }
.hero-copy { grid-area: copy; }
.hero-actions { grid-area: actions; }
.code-terminal { grid-area: terminal; align-self: center; }

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  width: 100%;
  margin: 0 0 1.75rem;
}

.hero-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.1rem;
  justify-self: start;
  animation: fadeUp 0.8s var(--ease) both;
  line-height: 0;
}

.hero-flag__svg {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-line1,
.hero-sub {
  font-size: clamp(2.1rem, 5.5vw, 3.35rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero-line1 {
  margin: 0 0 0.35rem;
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}

.hero-sub {
  display: block;
  margin: 0;
  min-width: 0;
  animation: fadeUp 0.8s 0.12s var(--ease) both;
}

.hero-line {
  display: block;
}

.hero-line--nowrap {
  white-space: nowrap;
}

.hero-line2.gradient,
.hero .gradient {
  color: var(--blue-bright);
  background: none;
  -webkit-text-fill-color: unset;
  animation: none;
}

.hero-rotate {
  display: block;
  color: #e53935;
  min-height: 1.15em;
  overflow: visible;
  width: fit-content;
  max-width: 100%;
}

.hero-rotate-word {
  display: block;
  white-space: nowrap;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero-rotate-word.is-out {
  opacity: 0;
  transform: translateY(-0.35em);
}

.hero-rotate-word.is-in {
  opacity: 0;
  transform: translateY(0.35em);
}

.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: none;
  width: 100%;
  margin: 0;
  line-height: 1.65;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}

/* Code rain background */

.code-rain {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.code-col {
  position: absolute;
  top: -20%;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--blue-mid);
  white-space: pre;
  animation: codeFall linear infinite;
  user-select: none;
}

@keyframes codeFall {
  from { transform: translateY(-10%); }
  to { transform: translateY(110vh); }
}

/* Syntax colors */

.c-kw { color: #9aabef; }
.c-fn { color: #b8c4f5; }
.c-str { color: #86efac; }
.c-cm { color: #64748b; }
.c-num { color: #fbbf24; }
.c-type { color: #a5b0e8; }

/* Terminal */

.code-terminal {
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(36, 46, 106, 0.55);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(36, 46, 106, 0.25);
  animation: terminalFloat 6s ease-in-out infinite, fadeUp 0.8s 0.4s var(--ease) both;
}

@keyframes terminalFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.terminal-body {
  margin: 0;
  padding: 1.25rem 1.25rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: #c9d6e8;
  min-height: 220px;
  overflow: hidden;
}

.terminal-stage {
  position: relative;
  min-height: 220px;
}

.terminal-panel {
  position: absolute;
  inset: 0;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
  overflow: hidden;
}

.terminal-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

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

.terminal-loading {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.terminal-loading-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.terminal-progress {
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.terminal-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transition: width 0.35s var(--ease);
}

.terminal-loading-steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.loading-step {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}

.loading-step.is-done {
  color: var(--blue-bright);
  border-color: rgba(107, 127, 212, 0.4);
  background: rgba(36, 46, 106, 0.35);
}

.terminal-app {
  padding: 1rem 1.25rem 1.25rem;
}

.terminal-app-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: #86efac;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: rgba(134, 239, 172, 0.12);
  border: 1px solid rgba(134, 239, 172, 0.25);
  white-space: nowrap;
}

.terminal-app-window {
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.terminal-app-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  min-width: 0;
}

.terminal-app-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-app-dot:nth-child(1) { background: #ff5f57; }
.terminal-app-dot:nth-child(2) { background: #febc2e; }
.terminal-app-dot:nth-child(3) { background: #28c840; }

.terminal-app-name {
  margin-left: 0.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-app-body {
  padding: 1rem 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.terminal-app-greet {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.terminal-app-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  min-width: 0;
}

.terminal-app-card--accent {
  border-color: rgba(36, 46, 106, 0.55);
  background: rgba(36, 46, 106, 0.35);
}

.terminal-app-card-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.terminal-app-card strong {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-app-btn {
  margin-top: 0.25rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: 2px;
  background: var(--blue);
}

.terminal-cursor-line.is-hidden {
  opacity: 0.35;
}

.terminal-cursor-line.is-hidden .terminal-cursor {
  animation: none;
  opacity: 0;
}

.code-terminal.is-app-ready .terminal-title {
  color: var(--blue-bright);
}

.terminal-body code { white-space: pre-wrap; }

.terminal-cursor-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.terminal-prompt { color: var(--blue-bright); }
.terminal-status { color: var(--muted); }

.terminal-cursor {
  color: var(--blue-bright);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Step code blocks */

.step-code {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(36, 46, 106, 0.4);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  overflow: hidden;
  position: relative;
}

.step-code::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(36, 46, 106, 0.2), transparent);
  transform: translateX(-100%);
  animation: codeScan 3s ease-in-out infinite;
}

.step:nth-child(2) .step-code::after { animation-delay: -1s; }
.step:nth-child(3) .step-code::after { animation-delay: -2s; }

@keyframes codeScan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.step-code code { color: #94a3b8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: none;
  color: #fff;
}

/* Floating orbs */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px; height: 300px;
  background: rgba(36, 46, 106, 0.45);
  top: 15%; right: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px; height: 200px;
  background: rgba(58, 74, 154, 0.3);
  bottom: 20%; right: 20%;
  animation-delay: -3s;
}

.orb-3 {
  width: 150px; height: 150px;
  background: rgba(36, 46, 106, 0.35);
  top: 40%; right: 35%;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.1); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Marquee */

.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
}

.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee span {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.marquee span::before {
  content: "~/ ";
  color: var(--blue-bright);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */

section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; position: relative; z-index: 1; }

.section-head {
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-bright);
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: var(--leading-tight);
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 55ch;
}

/* Pitch — première section sous le hero */

.pitch {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.pitch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.pitch-inner {
  max-width: 42rem;
}

.pitch-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.pitch-line {
  display: block;
}

.pitch-line--soft {
  color: var(--muted);
  margin-bottom: 0.35em;
}

.pitch-line:not(.pitch-line--soft) {
  color: var(--ink);
}

.pitch-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  max-width: 38rem;
}

/* Mini simulateurs de section */

.section-sim {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(36, 46, 106, 0.55);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.section-sim-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.section-sim-title {
  margin-left: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.pitch-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  padding: 1rem 0.85rem 1.1rem;
  align-items: start;
}

.pitch-flow-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pitch-flow-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.pitch-chip {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.pitch-chip.is-muted {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(184, 197, 220, 0.35);
}

.pitch-chip.is-live {
  border-color: rgba(107, 127, 212, 0.45);
  background: rgba(36, 46, 106, 0.4);
  color: var(--blue-bright);
  animation: chipIn 0.7s var(--ease) both;
}

.pitch-chip.is-live:nth-child(2) { animation-delay: 0.15s; }
.pitch-chip.is-live:nth-child(3) { animation-delay: 0.3s; }
.pitch-chip.is-live:nth-child(4) { animation-delay: 0.45s; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pitch-flow-arrow {
  align-self: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--blue-bright);
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(107, 127, 212, 0.4);
  background: rgba(36, 46, 106, 0.35);
  border-radius: 2px;
  white-space: nowrap;
  animation: arrowPulse 2.4s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 127, 212, 0); }
  50% { box-shadow: 0 0 18px rgba(107, 127, 212, 0.35); }
}

/* Scénarios UI dans le terminal */

.sim-bar {
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sim-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  animation: barGrow 1.1s var(--ease) both;
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.sim-stamps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.3rem;
}

.sim-stamps i {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: block;
}

.sim-stamps i.on {
  background: rgba(134, 239, 172, 0.35);
  border-color: rgba(134, 239, 172, 0.55);
  box-shadow: 0 0 10px rgba(134, 239, 172, 0.25);
  animation: stampPop 0.45s var(--ease) both;
}

.sim-stamps i.on:nth-child(2) { animation-delay: 0.08s; }
.sim-stamps i.on:nth-child(3) { animation-delay: 0.16s; }
.sim-stamps i.on:nth-child(4) { animation-delay: 0.24s; }

@keyframes stampPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.sim-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  aspect-ratio: 2 / 1;
}

.sim-map span {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.sim-map span.hot {
  background: rgba(36, 46, 106, 0.65);
  border-color: rgba(107, 127, 212, 0.55);
  animation: mapBlink 2s ease-in-out infinite;
}

.sim-map span.hot:nth-child(2) { animation-delay: 0.3s; }
.sim-map span.hot:nth-child(5) { animation-delay: 0.6s; }
.sim-map span.hot:nth-child(8) { animation-delay: 0.9s; }

@keyframes mapBlink {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.sim-leds {
  display: flex;
  gap: 0.45rem;
}

.sim-leds i {
  flex: 1;
  height: 28px;
  border-radius: 2px;
  background: var(--c, var(--blue));
  box-shadow: 0 0 16px rgba(107, 127, 212, 0.35);
  animation: ledGlow 2.2s ease-in-out infinite;
}

.sim-leds i:nth-child(2) { animation-delay: 0.25s; }
.sim-leds i:nth-child(3) { animation-delay: 0.5s; }
.sim-leds i:nth-child(4) { animation-delay: 0.75s; }

@keyframes ledGlow {
  0%, 100% { filter: brightness(0.85); }
  50% { filter: brightness(1.25); }
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36, 46, 106, 0.22), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.step:hover {
  transform: translateY(-8px);
  border-color: rgba(36, 46, 106, 0.7);
}

.step:hover::before { opacity: 1; }

.step-num {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(36, 46, 106, 0.55);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.step:hover .step-num { color: rgba(107, 127, 212, 0.7); }

.step h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  position: relative;
}

.step p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
}

/* Project cards */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  cursor: default;
  transform-style: preserve-3d;
  will-change: transform;
}

.project::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.project:hover {
  border-color: rgba(36, 46, 106, 0.7);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project:hover::after { transform: scaleX(1); }

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.project-live {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: #86efac;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(134, 239, 172, 0.3);
  backdrop-filter: blur(6px);
}

.project-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(134, 239, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.project:hover .project-media img {
  transform: scale(1.06);
}

.project-media-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.project:hover .project-media-shine {
  opacity: 1;
}

.project-body {
  padding: 1.5rem 1.75rem 1.75rem;
  position: relative;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
}

.project h3 a { color: var(--ink); }
.project h3 a:hover { color: var(--blue-bright); }

.project-url {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.25rem;
}

.project-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

.project:hover .project-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

.project p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  background: rgba(36, 46, 106, 0.35);
  color: var(--blue-bright);
  border: 1px solid rgba(36, 46, 106, 0.55);
  transition: all 0.3s;
}

.project:hover .tag {
  background: rgba(36, 46, 106, 0.55);
}

/* Services pills */

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.35s var(--ease);
  animation: pillPop 0.6s var(--ease) both;
}

.pill:hover {
  background: rgba(36, 46, 106, 0.45);
  border-color: var(--blue-mid);
  transform: none;
  box-shadow: none;
}

@keyframes pillPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.principle:hover {
  border-color: rgba(107, 127, 212, 0.45);
  transform: translateY(-4px);
}

.principle-visual {
  height: 3rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.principle-key {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  padding: 0.45rem 0.7rem;
  border: 1px dashed rgba(107, 127, 212, 0.55);
  border-radius: 2px;
  background: rgba(36, 46, 106, 0.3);
  position: relative;
  z-index: 1;
}

.principle-pulse {
  position: absolute;
  left: 2.5rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(107, 127, 212, 0.2);
  animation: principlePulse 2.5s ease-out infinite;
}

@keyframes principlePulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.principle-lock {
  width: 1.6rem;
  height: 1.35rem;
  border: 2px solid var(--blue-bright);
  border-radius: 3px;
  position: relative;
  margin-left: 0.15rem;
}

.principle-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.7rem;
  width: 0.85rem;
  height: 0.7rem;
  border: 2px solid var(--blue-bright);
  border-bottom: 0;
  border-radius: 0.55rem 0.55rem 0 0;
  transform: translateX(-50%);
}

.principle-quote {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.principle-quote-chf {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-bright);
}

.principle-quote-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
  transform-origin: left;
  animation: quoteDraw 2s var(--ease) infinite alternate;
}

@keyframes quoteDraw {
  from { transform: scaleX(0.35); opacity: 0.5; }
  to { transform: scaleX(1); opacity: 1; }
}

.principle h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.principle p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Skills pipeline */

.skills-sim {
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.skills-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.skills-pipeline span {
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.skills-pipeline .skills-pipe {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue-bright);
  animation: pipeBlink 1.6s step-end infinite;
}

.skills-pipeline .is-accent {
  color: var(--blue-bright);
  border-color: rgba(107, 127, 212, 0.5);
  background: rgba(36, 46, 106, 0.4);
}

@keyframes pipeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* CTA */

.cta {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  background: rgba(36, 46, 106, 0.28);
  border: 1px solid rgba(36, 46, 106, 0.65);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%;
  height: 120%;
  background: linear-gradient(115deg, transparent, rgba(107, 127, 212, 0.12), transparent);
  animation: ctaSweep 6s linear infinite;
  pointer-events: none;
}

@keyframes ctaSweep {
  from { transform: translateX(-30%); }
  to { transform: translateX(220%); }
}

.cta-sim {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0 auto 1.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: left;
}

.cta-sim-line {
  color: var(--muted);
}

.cta-sim-line.is-ok {
  color: #86efac;
}

.cta::before {
  display: none;
}

@keyframes ctaSpin {
  to { transform: rotate(360deg); }
}

.cta > * { position: relative; }

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  margin: 0 0 0.75rem;
}

.cta p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Inner pages */

.page-hero {
  padding: 5.25rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.page-hero p { color: var(--muted); margin: 0; font-size: 1.125rem; line-height: 1.75; }

.page-hero-lead {
  max-width: 62ch;
  line-height: 1.75;
}

.svc-hero-sim {
  margin-top: 1.75rem;
  max-width: 36rem;
}

.section-tight {
  padding-top: 0;
}

/* Services — use cases */

.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.use-case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.75rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.use-case:hover {
  border-color: rgba(36, 46, 106, 0.7);
  transform: translateY(-4px);
}

.use-case-sector {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
}

.use-case h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.use-case-problem,
.use-case-solution {
  margin-bottom: 1rem;
}

.use-case-solution {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.use-case strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.use-case p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.use-case-solution p {
  color: var(--ink);
}

/* Services — process */

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-flow::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--blue-bright));
  opacity: 0.55;
}

.process-step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.process-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.process-body h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.process-body p {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 62ch;
}

.process-you {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-bright);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  background: rgba(36, 46, 106, 0.35);
  border: 1px solid rgba(36, 46, 106, 0.55);
}

/* Services — deliverables */

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.deliverable {
  padding: 1.75rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.deliverable:hover {
  border-color: rgba(36, 46, 106, 0.65);
  background: rgba(36, 46, 106, 0.18);
}

.deliverable h3 {
  font-size: 1.05rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.deliverable p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Services — FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq-item[open] {
  border-color: rgba(36, 46, 106, 0.7);
}

.faq-item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--blue-bright);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Work list (inner) */

.work-list { list-style: none; margin: 0; padding: 0; }

.work-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.work-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--blue-bright);
}

.work-body h3 { font-size: 1.125rem; font-weight: 400; margin: 0 0 0.4rem; }
.work-body h3 a { color: var(--ink); }
.work-desc { color: var(--muted); margin: 0 0 0.5rem; font-size: 0.95rem; }
.work-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

/* Services page */

.service-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.service-entry h2 { font-size: 1.25rem; font-weight: 400; margin: 0 0 0.5rem; }
.service-entry p { color: var(--muted); margin: 0; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

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

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(36, 46, 106, 0.35);
}

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

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-note { font-size: 0.9375rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }

/* Footer */

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--blue-bright); }

/* Cursor glow (desktop) */

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 46, 106, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* Keyframes shared */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-rotate-word.is-out,
  .hero-rotate-word.is-in {
    opacity: 1;
    transform: none;
  }
  .code-terminal { animation: none; }
  .code-col { animation: none; display: none; }
  .step-code::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */

@media (max-width: 800px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .logo-mark { height: 2.1rem; }
  .pitch-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pitch-flow {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pitch-flow-arrow {
    justify-self: center;
  }
  .skills-sim { max-width: none; }
  .hero-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-areas:
      "tag tag"
      "line1 line1"
      "copy terminal"
      "actions actions";
    column-gap: 0.85rem;
    row-gap: 0.75rem;
    align-items: start;
  }
  .code-terminal {
    max-width: 100%;
    min-width: 0;
    align-self: start;
  }
  .hero-copy {
    margin: 0;
    gap: 0.75rem;
  }
  .hero-flag {
    margin: 0;
  }
  .hero-flag__svg {
    width: 12px;
    height: 12px;
  }
  .hero-line1 {
    font-size: clamp(1.85rem, 7.2vw, 2.45rem);
    white-space: normal;
    margin: 0;
  }
  .hero-sub {
    font-size: clamp(1.45rem, 5.8vw, 1.85rem);
    margin: 0;
    width: 100%;
  }
  .hero-lead {
    font-size: clamp(1.05rem, 3.8vw, 1.2rem);
    line-height: 1.5;
    margin: 0;
    max-width: none;
    width: 100%;
    color: rgba(255, 255, 255, 0.78);
  }
  .hero-actions {
    margin-top: 0.35rem;
    gap: 0.55rem;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.7rem 0.85rem;
    font-size: 0.78rem;
  }
  .terminal-stage {
    min-height: 148px;
  }
  .terminal-bar { padding: 0.4rem 0.5rem; gap: 0.3rem; }
  .terminal-dot { width: 6px; height: 6px; }
  .terminal-title {
    font-size: 0.5rem;
    margin-left: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .terminal-body {
    min-height: 0;
    height: 100%;
    font-size: 0.48rem;
    line-height: 1.4;
    padding: 0.5rem 0.5rem 0.3rem;
  }
  .terminal-loading {
    padding: 0.65rem 0.5rem;
    gap: 0.5rem;
    min-height: 0;
    height: 100%;
  }
  .terminal-loading-label { font-size: 0.68rem; }
  .terminal-progress { height: 5px; }
  .terminal-loading-steps { gap: 0.25rem; }
  .loading-step {
    font-size: 0.52rem;
    padding: 0.18rem 0.35rem;
  }
  .terminal-cursor-line {
    padding: 0.3rem 0.5rem 0.45rem;
    font-size: 0.5rem;
    gap: 0.3rem;
    min-width: 0;
  }
  .terminal-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .terminal-app {
    padding: 0.4rem;
    height: 100%;
  }
  .terminal-app-top { padding: 0.35rem 0.4rem; gap: 0.25rem; }
  .terminal-app-dot { width: 5px; height: 5px; }
  .terminal-app-name { display: none; }
  .terminal-app-badge {
    font-size: 0.48rem;
    padding: 0.12rem 0.3rem;
  }
  .terminal-app-body { padding: 0.5rem 0.4rem 0.55rem; gap: 0.4rem; }
  .terminal-app-greet { font-size: 0.68rem; }
  .terminal-app-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    padding: 0.4rem 0.45rem;
  }
  .terminal-app-card-label { font-size: 0.5rem; }
  .terminal-app-card strong {
    font-size: 0.62rem;
    text-align: left;
    white-space: normal;
  }
  .terminal-app-btn { padding: 0.4rem; font-size: 0.58rem; margin-top: 0.1rem; }
  .steps, .projects, .contact-grid, .field-row,
  .use-cases, .deliverables, .principles { grid-template-columns: 1fr; }
  .process-flow::before { left: 1.1rem; }
  .work-item { grid-template-columns: 2rem 1fr; }
}

@media (max-width: 480px) {
  .hero-line1 { font-size: clamp(1.7rem, 8vw, 2.15rem); }
  .hero-sub { font-size: clamp(1.35rem, 6.2vw, 1.7rem); }
  .hero-lead { font-size: clamp(1.02rem, 3.8vw, 1.12rem); }
  .hero-rotate-word { white-space: normal; }
  .code-rain { opacity: 0.15; }
}
