/* ==========================================================================
   INSIAS — In Silico Assessments
   Brand: white / #0081e9 (logo blue) / #00c5b3 (logo teal)
   ========================================================================== */

:root {
  --brand: #0081e9;
  --brand-dark: #005fae;
  --brand-soft: rgba(0, 129, 233, 0.1);

  --teal: #00c5b3;
  --teal-dark: #00857a;
  --teal-soft: rgba(0, 197, 179, 0.12);

  --ink: #0e2233;
  --ink-soft: #33506a;
  --muted: #6b7f92;
  --alert: #e8590c;

  --bg: #ffffff;
  --bg-alt: #f4f9fd;

  --radius: 18px;
  --radius-sm: 10px;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --shadow: 0 20px 60px -20px rgba(14, 34, 51, 0.18);
  --shadow-soft: 0 10px 40px -15px rgba(14, 34, 51, 0.1);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
}

.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-eyebrow.light { color: var(--teal-dark); }

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
}

.section-title.light { color: var(--ink); }

.section-sub {
  max-width: 620px;
  margin-bottom: clamp(36px, 5vw, 56px);
  font-size: 1.05rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 129, 233, 0.55);
}

.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(0, 129, 233, 0.7); }

.btn-ghost {
  color: var(--brand);
  border-color: rgba(0, 129, 233, 0.35);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { border-color: var(--brand); background: rgba(0, 129, 233, 0.08); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(14, 34, 51, 0.08);
  box-shadow: 0 6px 24px -12px rgba(14, 34, 51, 0.12);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-name span { color: var(--brand); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(14, 34, 51, 0.75);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 82vw);
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 22px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(14, 34, 51, 0.08);
    box-shadow: -12px 0 40px -20px rgba(14, 34, 51, 0.18);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { font-size: 1.1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(0, 129, 233, 0.13), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0, 197, 179, 0.11), transparent 60%),
    linear-gradient(165deg, #ffffff 0%, #f0f8fe 100%);
  overflow: hidden;
}

#moleculeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.hero-logo {
  height: clamp(84px, 12vw, 130px);
  width: auto;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.hero-platforms li {
  padding: 6px 16px;
  border: 1px solid rgba(14, 34, 51, 0.14);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.hero-platforms li:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(14, 34, 51, 0.35);
  border-radius: 14px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--brand);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  background: linear-gradient(120deg, var(--brand) 0%, #009bd1 55%, var(--teal) 100%);
  padding: clamp(40px, 6vw, 64px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 22px;
}

.about-text h2 em {
  font-style: normal;
  color: var(--teal-dark);
}

.about-text .lead {
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Animated molecule visual */
.molecule-card {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 28% 22%, rgba(0, 197, 179, 0.14), transparent 55%),
    radial-gradient(circle at 82% 85%, rgba(0, 129, 233, 0.14), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #eef7fe 100%);
  border: 1px solid rgba(0, 129, 233, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
}

.molecule-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.molecule-svg {
  width: 80%;
  max-width: 320px;
}

.molecule-bonds path,
.molecule-bonds line,
.molecule-alert path,
.molecule-alert line {
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Alerting substructure: aromatic amine — ink until the scan "finds" it */
.molecule-alert path,
.molecule-alert line {
  stroke: var(--ink);
}

.molecule-alert text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
}

.molecule-float {
  animation: molecule-float 7s ease-in-out infinite;
}

.alert-halo,
.molecule-scan,
.molecule-badge {
  opacity: 0;
}

/* One-shot scan sequence, triggered when the card enters the viewport (js/main.js) */
.molecule-card.animate .molecule-scan {
  animation: scan-sweep 5s ease-in-out forwards;
}

.molecule-card.animate .molecule-alert path,
.molecule-card.animate .molecule-alert line {
  animation: alert-stroke 5s ease-in-out forwards;
}

.molecule-card.animate .molecule-alert text {
  animation: alert-fill 5s ease-in-out forwards;
}

.molecule-card.animate .molecule-alert {
  animation: alert-glow 5s ease-in-out forwards;
}

.molecule-card.animate .alert-halo {
  animation: alert-halo 5s ease-in-out forwards;
}

.molecule-card.animate .molecule-badge {
  animation: badge-in 5s ease-in-out forwards;
}

.molecule-scan .scan-glow {
  stroke: var(--teal);
  stroke-width: 11;
  stroke-linecap: round;
  opacity: 0.18;
}

.molecule-scan .scan-line {
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
}

.molecule-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(232, 89, 12, 0.4);
  box-shadow: var(--shadow-soft);
  color: var(--alert);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--alert);
  animation: badge-blink 1.2s ease-in-out infinite;
}

@keyframes scan-sweep {
  0%   { transform: translateY(-80px); opacity: 0; }
  6%   { opacity: 1; }
  36%  { transform: translateY(96px); opacity: 1; }
  42%  { transform: translateY(96px); opacity: 0; }
  100% { transform: translateY(96px); opacity: 0; }
}

@keyframes alert-stroke {
  0%, 44%   { stroke: var(--ink); }
  58%, 100% { stroke: var(--alert); }
}

@keyframes alert-fill {
  0%, 44%   { fill: var(--ink); }
  58%, 100% { fill: var(--alert); }
}

@keyframes alert-glow {
  0%, 46%   { filter: none; }
  58%       { filter: drop-shadow(0 0 7px rgba(232, 89, 12, 0.8)); }
  74%, 100% { filter: drop-shadow(0 0 4px rgba(232, 89, 12, 0.45)); }
}

@keyframes alert-halo {
  0%, 46%   { opacity: 0; }
  60%, 100% { opacity: 1; }
}

@keyframes badge-in {
  0%, 50%   { opacity: 0; transform: translateY(6px); }
  64%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes badge-blink {
  0%, 100% { opacity: 1; }
  50%     { opacity: 0.35; }
}

@keyframes molecule-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.molecule-name {
  position: absolute;
  bottom: 52px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.molecule-name span {
  font-weight: 400;
  color: var(--muted);
}

.molecule-caption {
  position: absolute;
  bottom: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { background: var(--bg-alt); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid rgba(13, 27, 38, 0.07);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 129, 233, 0.35);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.card-icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 1.15rem; line-height: 1.4; }

.card .card-cat {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  flex-grow: 0;
}

.platform-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: clamp(36px, 5vw, 56px) 0 28px;
}

.card p { font-size: 0.95rem; flex-grow: 1; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag-list li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ==========================================================================
   Process
   ========================================================================== */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid rgba(13, 27, 38, 0.06);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.step:hover { transform: translateY(-6px); border-color: rgba(0, 129, 233, 0.4); }

.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  display: block;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; }

/* ==========================================================================
   Why in silico (parallax band)
   ========================================================================== */

.why {
  background: var(--bg-alt);
  overflow: hidden;
  color: var(--ink-soft);
}

.why-bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
}

.why-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.why-content { position: relative; z-index: 1; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.why-item {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(14, 34, 51, 0.07);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.why-item:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: rgba(0, 197, 179, 0.45);
  box-shadow: 0 16px 40px -18px rgba(0, 197, 179, 0.35);
}

.why-item h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 10px; }
.why-item p { font-size: 0.92rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info .section-title { margin-bottom: 22px; }

.contact-meta {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 18px;
}

.contact-meta li {
  padding: 18px 22px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  color: var(--ink);
}

.meta-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}

.contact-meta a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.contact-meta a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(13, 27, 38, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 129, 233, 0.14);
}

.form-field input.invalid,
.form-field textarea.invalid { border-color: #d64545; }

.form-field input[type="file"] {
  padding: 11px 14px;
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
}

.form-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(13, 27, 38, 0.55);
}


/* Honeypot field — hidden from humans, visible to bots */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 1.4em;
}

.form-note.ok { color: #1a7f4b; font-weight: 600; }
.form-note.err { color: #d64545; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid rgba(0, 129, 233, 0.12);
  padding: 64px 0 32px;
  color: var(--ink-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand { max-width: 340px; }

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p { font-size: 0.9rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover { color: var(--brand); }

.footer-copy {
  width: 100%;
  border-top: 1px solid rgba(14, 34, 51, 0.1);
  padding-top: 24px;
  font-size: 0.82rem;
}

.footer-legal {
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   Credentials block (About)
   ========================================================================== */

.credentials {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--teal-soft);
  border: 1px solid rgba(0, 197, 179, 0.35);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.credentials p { font-size: 0.95rem; }

/* ==========================================================================
   Consent checkbox (contact form)
   ========================================================================== */

.form-field.form-consent { margin-bottom: 20px; }

.form-field.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-field.form-consent input {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.form-field.form-consent input.invalid { outline: 2px solid #d64545; outline-offset: 2px; }

.form-field.form-consent a { color: var(--brand); font-weight: 600; }

/* ==========================================================================
   Privacy page
   ========================================================================== */

.privacy { max-width: 760px; }
.privacy h3 { margin-top: 32px; font-size: 1.05rem; }
.privacy p { margin-top: 10px; }
.privacy a:not(.btn) { color: var(--brand); font-weight: 600; }
.privacy-updated { color: var(--muted); font-size: 0.9rem; margin-top: -8px; }
.privacy-back { margin-top: 40px; }

/* ==========================================================================
   404 page
   ========================================================================== */

.error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(0, 197, 179, 0.08), transparent 70%),
    radial-gradient(700px 350px at 85% 100%, rgba(0, 129, 233, 0.1), transparent 70%),
    var(--bg);
}

.error-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-inner .brand { margin-bottom: 28px; }

.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.error-code,
.error-inner .section-eyebrow {
  background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-sub {
  max-width: 520px;
  margin-top: 10px;
}

.error-inner .hero-actions {
  margin-top: 32px;
  margin-bottom: 0;
  justify-content: center;
}

/* ==========================================================================
   Reveal-on-scroll animations
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wheel, .molecule-float, .molecule-scan, .molecule-alert, .molecule-alert path,
  .molecule-alert line, .molecule-alert text, .alert-halo, .molecule-badge, .badge-dot {
    animation: none !important;
  }
  .molecule-alert path, .molecule-alert line { stroke: var(--alert); }
  .molecule-alert text { fill: var(--alert); }
  .molecule-badge { opacity: 1; }
  .alert-halo { opacity: 0.5; }
}
