/* ============================================================
   MINIIK — styles.css
   Dark theme · Orange accent · Minimalist SaaS
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg:            #0a0a0a;
  --bg-alt:        #0e0e0e;
  --bg-card:       #141414;
  --bg-card-hover: #191919;
  --border:        #222222;
  --border-hover:  #f97316;
  --accent:        #f97316;
  --accent-dim:    rgba(249, 115, 22, 0.10);
  --accent-glow:   rgba(249, 115, 22, 0.18);
  --text-primary:  #f0f0f0;
  --text-secondary:#a0a0a0;
  --text-muted:    #737373;
  --success:       #4ade80;
  --error:         #ef4444;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --section-gap: 120px;
  --container:   1200px;

  /* Easing */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a       { color: inherit; text-decoration: none; }
ul      { list-style: none; }
img     { display: block; max-width: 100%; }
button  { font-family: var(--font); }

a,
button,
input,
textarea {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.78);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-gap) 0;
}

/* ── Utility ──────────────────────────────────────────────── */
.accent { color: var(--accent); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  transition:
    background-color 0.25s var(--ease),
    transform        0.2s  var(--ease),
    box-shadow       0.25s var(--ease);
}

.btn-primary {
  background-color: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background-color: #ea6c0a;
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.28);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-full { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition:
    background-color 0.4s var(--ease),
    padding          0.35s var(--ease),
    border-bottom    0.4s var(--ease);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease);
}
.logo:hover { opacity: 0.8; }

/* White-background PNG on dark theme:
   invert flips white→black (disappears on dark bg),
   hue-rotate(180deg) brings orange back close to original */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}

.logo-img--sm {
  height: 28px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.22s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Language switcher */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  list-style: none;
}

.lang-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lang-link:hover { color: var(--text-primary); }
.lang-link.active { color: var(--accent); }

.lang-sep {
  color: var(--border);
  font-size: 0.72rem;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  z-index: 110;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.hamburger:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background-color: rgba(249, 115, 22, 0.06);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition:
    transform 0.32s var(--ease),
    opacity   0.32s var(--ease),
    width     0.32s var(--ease);
  transform-origin: center;
}

/* Middle line slightly shorter for visual polish */
.hamburger span:nth-child(2) { width: 14px; }

/* X state — gap:5px + height:2px = 7px center-to-center */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 18px; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Subtle geometric grid background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
}

/* --- Hero entrance animations (CSS, not scroll-triggered) --- */
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.6s var(--ease-out) 0.1s forwards;
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.65s var(--ease-out) 0.25s forwards;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 540px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.65s var(--ease-out) 0.4s forwards;
}

.hero .btn {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.65s var(--ease-out) 0.55s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg-card);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 30px;
  transition:
    transform      0.38s var(--ease),
    box-shadow     0.38s var(--ease),
    border-color   0.38s var(--ease),
    background-color 0.38s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent-dim);
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 8px;
  margin-bottom: 22px;
  color: var(--accent);
  transition:
    background-color 0.32s var(--ease),
    border-color     0.32s var(--ease);
}

.card:hover .card-icon {
  background-color: var(--accent-glow);
  border-color: rgba(249, 115, 22, 0.32);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Services redesign */
.services {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(249, 115, 22, 0.035) 48%, rgba(10, 10, 10, 0) 100%),
    var(--bg-card);
}

.service-card {
  position: relative;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #101010;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.72;
  transition: opacity 0.38s var(--ease);
}

.service-card--intake::before {
  background: radial-gradient(circle at 50% 18%, rgba(249, 115, 22, 0.16), transparent 42%);
}

.service-card--channels::before {
  background: radial-gradient(circle at 50% 18%, rgba(96, 165, 250, 0.14), transparent 42%);
}

.service-card--throughput::before {
  background: radial-gradient(circle at 50% 18%, rgba(74, 222, 128, 0.13), transparent 42%);
}

.service-card:hover {
  transform: none;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .card-icon {
  display: none;
}

.services .section-header p:not(.services-copy),
.service-card > p:not(.service-copy) {
  display: none;
}

.service-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 190px;
  padding: 26px;
  overflow: hidden;
}

.service-kicker,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 28px 16px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0 28px 12px;
  max-width: 280px;
  font-size: 1.24rem;
  line-height: 1.24;
}

.service-card p {
  margin: 0 28px 30px;
  font-size: 0.9rem;
}

.inbox-stack {
  position: relative;
  width: min(100%, 220px);
  height: 138px;
}

.inbox-stack span {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
}

.inbox-stack span:nth-child(1) { top: 8px; opacity: 0.58; }
.inbox-stack span:nth-child(2) { top: 44px; opacity: 0.78; }
.inbox-stack span:nth-child(3) {
  top: 80px;
  border-color: rgba(249, 115, 22, 0.34);
  background: rgba(249, 115, 22, 0.09);
}

.inbox-stack i {
  position: absolute;
  right: 26px;
  bottom: 12px;
  width: 46px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.28);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 210px);
}

.channel-grid span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.78);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channel-grid span:nth-child(2) {
  border-color: rgba(96, 165, 250, 0.34);
  color: var(--text-primary);
  background: rgba(96, 165, 250, 0.08);
}

.throughput-meter {
  position: relative;
  display: grid;
  place-items: center;
  width: 172px;
  height: 136px;
}

.meter-arc {
  position: absolute;
  inset: 16px 10px 0;
  border: 18px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.meter-arc::after {
  content: "";
  position: absolute;
  inset: -18px -18px 0;
  border: 18px solid rgba(74, 222, 128, 0.68);
  border-right-color: transparent;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.meter-needle {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--text-primary);
  transform: rotate(-26deg);
  transform-origin: left center;
}

.throughput-meter strong {
  position: absolute;
  bottom: 18px;
  color: var(--text-primary);
  font-size: 1.24rem;
}

/* Services operating system layout */
.services-grid--legacy {
  display: none;
}

.services-system {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.system-panel,
.system-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #101010;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.system-panel {
  min-height: 430px;
  overflow: hidden;
}

.system-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.system-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.system-topbar span:first-child {
  background: var(--accent);
}

.system-body {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 384px;
}

.system-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding-top: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.system-sidebar span {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.system-sidebar .active {
  border-color: rgba(249, 115, 22, 0.32);
  background: rgba(249, 115, 22, 0.12);
}

.system-flow {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: center;
  gap: 0;
  padding: 42px;
  background:
    radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.13), transparent 35%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.system-node {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-node--agent {
  min-height: 118px;
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.11);
  color: var(--text-primary);
  box-shadow: 0 0 38px rgba(249, 115, 22, 0.13);
}

.system-rail {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.10), rgba(249, 115, 22, 0.62));
}

.system-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.system-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
}

.system-item > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.system-item h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 1.02rem;
}

.system-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.68;
}



/* ============================================================
   PROCESS — SHIBA FRAMEWORK
   ============================================================ */
.process {
  background: var(--bg);
}

.shiba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.38s var(--ease),
    transform    0.38s var(--ease),
    box-shadow   0.38s var(--ease);
}

.phase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.phase-visual {
  padding: 36px 28px;
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-body {
  padding: 26px 28px;
  flex: 1;
}

.phase-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.phase-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.phase-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ── Phase 1: Workflow nodes ───────────────────────────────── */
.workflow {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 210px;
}

.workflow-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  width: 100%;
  transition: border-color 0.25s var(--ease);
}

.wf-node--action {
  border-color: rgba(249, 115, 22, 0.22);
  color: var(--text-primary);
}

.phase-card:hover .wf-node--action {
  border-color: rgba(249, 115, 22, 0.45);
}

.wf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.wf-dot--action { background: var(--accent); }

.workflow-line {
  width: 1px;
  height: 14px;
  background: var(--border);
  /* align with center of wf-dot: border(1) + padding(14) + dot/2(3.5) ≈ 18px */
  margin-left: 18px;
}

/* ── Phase 2: Integration SVG ─────────────────────────────── */
.integrate-svg {
  width: 164px;
  height: 164px;
}

/* ── Phase 3: Code block ──────────────────────────────────── */
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.74rem;
  line-height: 1.72;
  overflow-x: auto;
  width: 100%;
  margin: 0;
  white-space: pre;
}

.code-block code { color: var(--text-secondary); font-family: inherit; }

.c-kw   { color: var(--accent); }
.c-cls  { color: var(--text-primary); }
.c-fn   { color: #60a5fa; }
.c-prop { color: #c084fc; }
.c-str  { color: #4ade80; }

/* Stagger: phase cards */
.shiba-grid .phase-card:nth-child(1) { transition-delay: 0s;    }
.shiba-grid .phase-card:nth-child(2) { transition-delay: 0.10s; }
.shiba-grid .phase-card:nth-child(3) { transition-delay: 0.20s; }

/* Process redesign */
.process {
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0) 0%, rgba(20, 20, 20, 0.55) 52%, rgba(14, 14, 14, 0) 100%),
    var(--bg);
}

.shiba-grid {
  gap: 20px;
}

.phase-card {
  position: relative;
  min-height: 430px;
  background: #101010;
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  isolation: isolate;
}

.phase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.78;
  transition: opacity 0.38s var(--ease);
}

.phase-card--map::before {
  background:
    radial-gradient(circle at 50% 22%, rgba(249, 115, 22, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(249, 115, 22, 0.10), transparent 46%);
}

.phase-card--build::before {
  background:
    radial-gradient(circle at 50% 24%, rgba(96, 165, 250, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(96, 165, 250, 0.10), transparent 48%);
}

.phase-card--launch::before {
  background:
    radial-gradient(circle at 50% 24%, rgba(74, 222, 128, 0.14), transparent 40%),
    linear-gradient(145deg, rgba(74, 222, 128, 0.09), transparent 50%);
}

.phase-card:hover {
  border-color: rgba(249, 115, 22, 0.42);
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

.phase-card:hover::before {
  opacity: 1;
}

.phase-visual {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 34px 28px 22px;
  background: transparent;
  border-bottom: 0;
}

.phase-body {
  position: relative;
  z-index: 1;
  padding: 8px 28px 30px;
}

.phase-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.phase-body h3 {
  max-width: 260px;
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.22;
}

.phase-body p {
  font-size: 0.9rem;
}

.process-map,
.process-pipeline,
.process-metrics {
  position: relative;
  width: min(100%, 230px);
  aspect-ratio: 1;
}

.map-ring {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 50%;
}

.map-ring--inner {
  inset: 54px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}

.map-core {
  position: absolute;
  inset: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f97316;
  color: #120804;
  font-weight: 800;
  box-shadow: 0 0 34px rgba(249, 115, 22, 0.32);
}

.map-pin {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.055);
}

.map-pin--one { top: 36px; left: 62px; }
.map-pin--two { top: 76px; right: 32px; background: #f97316; }
.map-pin--three { left: 48px; bottom: 48px; }

.process-pipeline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.process-pipeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 22px;
  width: 1px;
  background: linear-gradient(#60a5fa, rgba(255, 255, 255, 0.14), #f97316);
}

.pipeline-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 14px 42px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.78);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-row::before {
  content: "";
  position: absolute;
  left: 17px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #60a5fa;
}

.pipeline-row i {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.pipeline-row--active {
  border-color: rgba(96, 165, 250, 0.38);
  color: var(--text-primary);
}

.pipeline-row--active::before {
  background: var(--accent);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.44);
}

.process-metrics {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  padding: 42px 34px 40px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.18);
}

.metric-bar {
  width: 42px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #4ade80, rgba(74, 222, 128, 0.18));
  box-shadow: 0 18px 34px rgba(74, 222, 128, 0.10);
}

.metric-bar--one { height: 72px; opacity: 0.55; }
.metric-bar--two { height: 112px; opacity: 0.76; }
.metric-bar--three { height: 154px; }

.metric-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.10);
  color: #bbf7d0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Process layout correction */
.phase-card {
  min-height: 0;
}

.phase-card:hover {
  transform: none;
}

.phase-visual {
  height: 220px;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
}

.phase-body {
  padding-top: 0;
}

.process-map,
.process-pipeline,
.process-metrics {
  width: 176px;
  height: 176px;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.map-ring {
  inset: 10px;
}

.map-ring--inner {
  inset: 44px;
}

.map-core {
  inset: 62px;
}

.map-pin--one { top: 30px; left: 48px; }
.map-pin--two { top: 62px; right: 26px; }
.map-pin--three { left: 38px; bottom: 40px; }

.process-pipeline {
  width: min(100%, 210px);
  height: auto;
  min-height: 160px;
}

.process-pipeline::before {
  top: 20px;
  bottom: 20px;
}

.pipeline-row {
  min-height: 44px;
}

.process-metrics {
  width: min(100%, 210px);
  height: 168px;
  padding: 54px 26px 24px;
  box-sizing: border-box;
}

.metric-bar {
  width: clamp(30px, 18%, 40px);
}

.metric-bar--one { height: 54px; }
.metric-bar--two { height: 86px; }
.metric-bar--three { height: 116px; }

.metric-badge {
  top: 10px;
  right: 50%;
  transform: translateX(50%);
}

.process-board {
  position: relative;
  width: min(100%, 220px);
  height: 168px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), transparent 44%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    rgba(8, 8, 8, 0.58);
  background-size: 24px 24px;
}

.process-board::before {
  content: none;
}

.process-board::after {
  content: none;
}

.scope-panel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.scope-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--accent);
  color: #120804;
  font-size: 1rem;
  font-weight: 850;
}

.scope-copy span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.scope-copy strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.2;
}

.scope-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scope-signals span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.66);
  color: var(--text-secondary);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-signals span:first-child {
  border-color: rgba(249, 115, 22, 0.24);
  color: var(--text-primary);
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(circle at 18% 30%, rgba(249, 115, 22, 0.08), transparent 34%),
    var(--bg-alt);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.contact-wrapper--form-only {
  display: block;
  max-width: 620px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #101010;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

.contact-brief {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.12), transparent 52%),
    #101010;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.contact-brief::after {
  content: "";
  position: absolute;
  inset: auto 28px 28px auto;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 50%;
}

.brief-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 22px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-brief h3 {
  max-width: 330px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 1.55rem;
  line-height: 1.18;
}

.contact-brief p {
  max-width: 360px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.brief-steps {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.brief-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.62);
}

.brief-steps span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.brief-steps strong {
  color: var(--text-primary);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  min-height: 48px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 15px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  transition:
    border-color     0.25s var(--ease),
    box-shadow       0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.10);
  background-color: rgba(16, 16, 16, 0.95);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.field-error {
  font-size: 0.76rem;
  color: var(--error);
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.field-error.visible { opacity: 1; }

/* Form success message */
.form-success {
  border-radius: 6px;
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.18);
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  transition:
    max-height 0.4s var(--ease),
    opacity    0.35s var(--ease),
    padding    0.4s var(--ease);
}

.form-success.visible {
  max-height: 80px;
  opacity: 1;
  padding: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-credit:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 26px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--accent); }

.footer-credit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity   0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero .btn {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Stagger: services cards */
.services-grid .card:nth-child(1) { transition-delay: 0s;    }
.services-grid .card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .card:nth-child(3) { transition-delay: 0.20s; }


/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-gap: 96px; }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .services-system {
    grid-template-columns: 1fr;
  }

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

  .services-grid .card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }

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

  .phase-visual { min-height: 180px; }
}

/* ============================================================
   RESPONSIVE — 768px  (mobile)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-gap: 80px; }

  /* Show hamburger */
  .hamburger { display: flex; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 32px 40px;
    gap: 4px;
    border-left: 1px solid var(--border);
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 0;
    color: var(--text-primary);
    width: 100%;
  }

  .nav-link::after { display: none; }

  /* Lang switcher inside mobile drawer */
  .nav-lang {
    margin: 18px 0 0;
    padding: 18px 0 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    width: 100%;
    gap: 8px;
  }

  .lang-link { font-size: 0.9rem; padding: 6px 8px; }

  /* Services: single column */
  .system-panel {
    min-height: 0;
  }

  .system-body {
    grid-template-columns: 1fr;
  }

  .system-sidebar {
    display: none;
  }

  .system-flow {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .system-rail {
    width: 1px;
    height: 24px;
    margin: 0 auto;
    background: linear-gradient(rgba(255, 255, 255, 0.10), rgba(249, 115, 22, 0.62));
  }

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

  .services-grid .card:nth-child(3) {
    max-width: none;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* ============================================================
   RESPONSIVE — 480px  (small mobile)
   ============================================================ */
@media (max-width: 480px) {
  :root { --section-gap: 64px; }

  .hero-title    { font-size: 2.15rem; }
  .hero-subtitle { font-size: 0.92rem; }

  .section-header h2 { font-size: 1.7rem; }

  .card { padding: 28px 22px; }

  .contact-brief,
  .contact-form {
    padding: 24px 20px;
  }

  .contact-brief h3 {
    font-size: 1.28rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 0;
  }

  .service-visual {
    height: 170px;
    padding: 22px;
  }

  .service-kicker,
  .service-card h3,
  .service-card p {
    margin-left: 22px;
    margin-right: 22px;
  }
}
