/* ============================================================
   MIND BUREAU — Design System
   Premium Minimal × AI-Native Business
   ============================================================ */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }

/* === Design Tokens === */
:root {
  --bg-0: #07080E;
  --bg-1: #0C0E18;
  --bg-2: #111425;
  --bg-3: #161B2E;
  --bd-1: #1A1E2E;
  --bd-2: #222840;
  --bd-3: #2D3350;
  --t-1: #EEEDF0;
  --t-2: #8B91AA;
  --t-3: #525775;
  --a: #5B7CFC;
  --a-hover: #7A97FF;
  --a-dim: rgba(91,124,252,0.10);
  --a-dim2: rgba(91,124,252,0.06);
  --a-bd: rgba(91,124,252,0.22);
  --stealth: #181B2B;
  --stealth-t: #626880;
  --stealth-bd: #272B44;
  --public-bg: rgba(34,211,160,0.07);
  --public-t: #22D3A0;
  --public-bd: rgba(34,211,160,0.18);
  --f-display: 'Syne', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.28s;
}

/* === Base === */
body {
  font-family: var(--f-body);
  background: var(--bg-0);
  color: var(--t-1);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === Typography === */
.display {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.026em;
}
h2 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h4 {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
p { color: var(--t-2); line-height: 1.72; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: var(--s-3);
}
.label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--a);
  flex-shrink: 0;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-4);
}
.section {
  padding: var(--s-8) 0;
}
.section--sm {
  padding: var(--s-6) 0;
}
.section__header {
  margin-bottom: var(--s-6);
}
.section__header p {
  margin-top: var(--s-2);
  max-width: 560px;
  font-size: 1.05rem;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(7, 8, 14, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bd-1);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav--scrolled {
  background: rgba(7, 8, 14, 0.94);
  border-color: var(--bd-2);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.nav__logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--t-1);
  margin-right: auto;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav__logo:hover { opacity: 0.8; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-2);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--t-1); }
.nav__links a.active::after { transform: scaleX(1); }
.nav__cta { flex-shrink: 0; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--t-1);
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--r-1);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn--sm  { font-size: 0.8125rem; padding: 6px 14px; height: 34px; }
.btn--md  { font-size: 0.875rem;  padding: 10px 20px; height: 42px; }
.btn--lg  { font-size: 0.9375rem; padding: 14px 28px; height: 52px; }
.btn--primary {
  background: var(--a);
  color: #fff;
  border-color: var(--a);
}
.btn--primary:hover {
  background: var(--a-hover);
  border-color: var(--a-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(91,124,252,0.38);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--ghost {
  color: var(--t-1);
  border-color: var(--bd-2);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--bg-2);
  border-color: var(--bd-3);
}
.btn--outline {
  color: var(--a);
  border-color: var(--a-bd);
  background: transparent;
}
.btn--outline:hover {
  background: var(--a-dim);
  border-color: var(--a);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(91,124,252,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 85% 85%, rgba(91,124,252,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
}
.hero__content {
  max-width: 900px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: var(--s-4);
  padding: 5px 12px;
  background: var(--a-dim);
  border: 1px solid var(--a-bd);
  border-radius: 100px;
}
.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--a);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--a);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero__title {
  margin-bottom: var(--s-3);
  background: linear-gradient(145deg, var(--t-1) 30%, rgba(238,237,240,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: var(--t-2);
  max-width: 540px;
  margin-bottom: var(--s-5);
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}
.hero__scroll {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--t-3);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: floatScroll 2.5s ease-in-out infinite;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--t-3), transparent);
}
@keyframes floatScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* === About Brief === */
.about-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.about-brief__text p {
  font-size: 1.05rem;
  line-height: 1.78;
}
.about-brief__text p + p { margin-top: var(--s-2); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.stat {
  padding: var(--s-3);
  background: var(--bg-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-2);
}
.stat__value {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--t-1);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__value span { color: var(--a); }
.stat__label {
  font-size: 0.8rem;
  color: var(--t-3);
  letter-spacing: 0.02em;
}

/* === Products Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: var(--s-2);
}
.product-card {
  background: var(--bg-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-2);
  padding: var(--s-4);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--a-bd) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.product-card:hover {
  border-color: var(--bd-2);
  background: var(--bg-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.product-card:hover::before { opacity: 1; }
.product-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-5);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-color: var(--bd-2);
}
.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s-2);
  gap: var(--s-1);
}
.product-card__name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -0.01em;
}
.product-card__desc {
  font-size: 0.875rem;
  color: var(--t-2);
  line-height: 1.65;
  flex: 1;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--a);
  margin-top: var(--s-3);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.product-card__link:hover { gap: 10px; color: var(--a-hover); }
.product-card--featured .product-card__body { flex: 1; }
.product-card--featured .product-card__name {
  font-size: 1.4rem;
  margin-bottom: var(--s-1);
}
.product-card--featured .product-card__desc {
  font-size: 0.95rem;
  max-width: 460px;
}
.product-card__tag-row {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--t-3);
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  border-radius: 4px;
}

/* === Badge === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  line-height: 1;
}
.badge--stealth {
  background: var(--stealth);
  color: var(--stealth-t);
  border: 1px solid var(--stealth-bd);
}
.badge--stealth::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--stealth-t);
  border-radius: 50%;
}
.badge--public {
  background: var(--public-bg);
  color: var(--public-t);
  border: 1px solid var(--public-bd);
}
.badge--public::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--public-t);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--public-t);
  animation: publicPulse 2s ease-in-out infinite;
}
@keyframes publicPulse {
  0%, 100% { box-shadow: 0 0 6px var(--public-t); }
  50% { box-shadow: 0 0 14px var(--public-t); }
}

/* === Process === */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bd-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-2);
  overflow: hidden;
}
.process-step {
  background: var(--bg-1);
  padding: var(--s-4);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.process-step:hover { background: var(--bg-2); }
.process-step__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.process-step__num::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--a);
}
.process-step__title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-1);
}
.process-step__desc {
  font-size: 0.85rem;
  color: var(--t-2);
  line-height: 1.65;
}

/* === Services === */
.services-list { display: grid; gap: 1px; }
.service-item {
  background: var(--bg-1);
  border: 1px solid var(--bd-1);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-radius: var(--r-2);
  margin-bottom: var(--s-2);
}
.service-item:last-child { margin-bottom: 0; }
.service-item:hover { background: var(--bg-2); border-color: var(--bd-2); }
.service-item__num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: var(--s-1);
}
.service-item__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.service-item__what {
  font-size: 0.9rem;
  color: var(--t-2);
  line-height: 1.7;
}
.service-item__outcome { }
.service-item__outcome-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: 8px;
}
.service-item__outcome-text {
  font-size: 0.875rem;
  color: var(--t-2);
  line-height: 1.65;
}
.service-item__format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--t-3);
  margin-top: var(--s-2);
}
.service-item__format::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid var(--bd-3);
  border-radius: 3px;
  flex-shrink: 0;
}

/* === CTA Banner === */
.cta-banner {
  background: var(--bg-1);
  border: 1px solid var(--bd-2);
  border-radius: var(--r-3);
  padding: var(--s-7) var(--s-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(91,124,252,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--a-bd) 50%, transparent 100%);
}
.cta-banner h2 { margin-bottom: var(--s-2); position: relative; z-index: 1; }
.cta-banner p {
  margin-bottom: var(--s-4);
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.cta-banner .btn { position: relative; z-index: 1; }

/* === Divider === */
.divider {
  border: none;
  border-top: 1px solid var(--bd-1);
  margin: var(--s-5) 0;
}

/* === Page Header === */
.page-header {
  padding-top: calc(64px + var(--s-7));
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--bd-1);
}
.page-header .label { margin-bottom: var(--s-2); }
.page-header h1 { margin-bottom: var(--s-2); }
.page-header p {
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.72;
}

/* === About === */
.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.mission-statement {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--t-1);
}
.mission-text p { font-size: 1.0rem; line-height: 1.78; }
.mission-text p + p { margin-top: var(--s-2); }
.principles { display: grid; gap: 0; }
.principle {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--bd-1);
}
.principle:last-child { border: none; }
.principle__num {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--a);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.principle__title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--t-1);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.principle__desc { font-size: 0.875rem; color: var(--t-2); line-height: 1.65; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-2);
}
.team-card {
  background: var(--bg-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-2);
  padding: var(--s-4);
  transition: border-color var(--dur) var(--ease);
}
.team-card:hover { border-color: var(--bd-2); }
.team-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--bd-2);
  border-radius: 10px;
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--a);
}
.team-card__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--t-1);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.team-card__role { font-size: 0.8rem; color: var(--t-2); }

/* === Contact === */
.contact-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-7);
  align-items: start;
}
.contact-info__item {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--bd-1);
}
.contact-info__item:first-child { padding-top: 0; }
.contact-info__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 5px;
}
.contact-info__value {
  font-size: 0.9375rem;
  color: var(--t-1);
}
.contact-info__value a {
  color: var(--a);
  transition: color var(--dur) var(--ease);
}
.contact-info__value a:hover { color: var(--a-hover); }
.contact-sla {
  margin-top: var(--s-4);
  padding: var(--s-3);
  background: var(--bg-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-2);
}
.contact-sla__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 4px;
}
.contact-sla__value { font-size: 0.875rem; color: var(--t-2); }

/* === Form === */
.form { display: grid; gap: var(--s-2); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--t-2);
}
.form-label .req { color: var(--a); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-1);
  padding: 11px 14px;
  color: var(--t-1);
  font-size: 0.9375rem;
  font-family: var(--f-body);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
  outline: none;
  line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--t-3); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(91,124,252,0.4);
  box-shadow: 0 0 0 3px var(--a-dim);
  background: var(--bg-2);
}
.form-input.error,
.form-textarea.error {
  border-color: rgba(239,68,68,0.45);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
.form-error-msg {
  font-size: 0.75rem;
  color: #EF5050;
  margin-top: 2px;
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23525775' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-2);
  color: var(--t-1);
}
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-1);
}
.form-submit-note {
  font-size: 0.775rem;
  color: var(--t-3);
}

/* === Success State === */
.form-success {
  text-align: center;
  padding: var(--s-7) var(--s-4);
}
.form-success__icon {
  width: 52px;
  height: 52px;
  background: rgba(34,211,160,0.1);
  border: 1px solid rgba(34,211,160,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-3);
  color: var(--public-t);
  font-size: 1.3rem;
}
.form-success h3 { margin-bottom: 8px; color: var(--t-1); }
.form-success p { font-size: 0.9rem; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--bd-1);
  padding: var(--s-4) 0;
  margin-top: var(--s-8);
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.footer__logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--t-1);
}
.footer__links {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.8rem;
  color: var(--t-3);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--t-2); }
.footer__copy { font-size: 0.775rem; color: var(--t-3); }

/* === Reveal Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}
.reveal.is-visible {
  animation: fadeUp 0.65s var(--ease) forwards;
}
.reveal-d1 { animation-delay: 0.08s !important; }
.reveal-d2 { animation-delay: 0.16s !important; }
.reveal-d3 { animation-delay: 0.24s !important; }
.reveal-d4 { animation-delay: 0.32s !important; }
.reveal-d5 { animation-delay: 0.40s !important; }
.reveal-d6 { animation-delay: 0.48s !important; }

/* === Responsive === */
@media (max-width: 1024px) {
  .about-brief { gap: var(--s-5); }
  .mission-block { gap: var(--s-5); }
  .service-item { grid-template-columns: 240px 1fr 1fr; gap: var(--s-3); }
}

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--bd-1);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s-3) var(--s-3);
    gap: var(--s-2);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
    pointer-events: none;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__links a { font-size: 1rem; }
  .about-brief { grid-template-columns: 1fr; gap: var(--s-5); }
  .mission-block { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .service-item { grid-template-columns: 1fr; padding: var(--s-4); gap: var(--s-2); }
  .contact-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .product-card--featured { flex-direction: column; gap: var(--s-3); }
  .cta-banner { padding: var(--s-5) var(--s-4); }
}

@media (max-width: 600px) {
  .container { padding: 0 var(--s-2); }
  .section { padding: var(--s-6) 0; }
  .nav__inner { padding: 0 var(--s-2); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .form-submit-row { flex-direction: column; align-items: flex-start; }
}

/* === Utilities === */
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.text-center { text-align: center; }
.text-muted { color: var(--t-3); }
.flex-center { display: flex; align-items: center; gap: var(--s-2); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── VARIANT SWITCHER ─── */
.variant-switcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(7,8,14,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
}
.vs__item {
  text-decoration: none;
  color: rgba(255,255,255,0.35);
  padding: 5px 12px;
  border-radius: 30px;
  transition: color .2s, background .2s;
}
.vs__item:hover { color: rgba(255,255,255,0.8); }
.vs__item.active {
  background: rgba(91,124,252,0.15);
  color: #5B7CFC;
  border: 1px solid rgba(91,124,252,0.3);
}
.vs__sep {
  color: rgba(255,255,255,0.12);
  user-select: none;
}
