/* ==========================================================================
   HADINOVA — style.css
   Design system + component styles.
   Tailwind (Play CDN) handles utilities; this file holds the brand layer:
   tokens, typography, buttons, cards, forms, nav and section primitives.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --brand: #0B57D0;
  --brand-700: #0846AB;
  --accent: #8B5CF6;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --surface: #F8FAFC;
  --success: #10B981;
  --warning: #F59E0B;

  /* Section rhythm (Desktop 120 / Tablet 80 / Mobile 60) */
  --section-pad: 60px;

  --gradient: linear-gradient(120deg, #0B57D0 0%, #8B5CF6 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.28);
  --ring: 0 0 0 3px rgba(11, 87, 208, 0.18);
}

@media (min-width: 768px)  { :root { --section-pad: 80px; } }
@media (min-width: 1024px) { :root { --section-pad: 120px; } }

.dark {
  --ink: #F8FAFC;
  --muted: #94A3B8;
  --line: #1E293B;
  --surface: #0F172A;
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --ring: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-padding-top: 90px; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(11, 87, 208, 0.16); }

/* Accessible focus ring (only when keyboard navigating) */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.dark .eyebrow { color: #a78bfa; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 20px -8px rgba(11, 87, 208, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(11, 87, 208, 0.7);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.btn-ghost:hover {
  border-color: var(--brand);
  background: rgba(11, 87, 208, 0.05);
  transform: translateY(-2px);
}
.dark .btn-ghost { color: var(--ink); }
.dark .btn-ghost:hover { background: rgba(139, 92, 246, 0.1); border-color: #8B5CF6; }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.dark #site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.7);
  border-bottom-color: var(--d-line, #1E293B);
}

.nav-link {
  position: relative;
  padding: 0.55rem 0.95rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(11, 87, 208, 0.06); }
.nav-link.is-active { color: var(--brand); }
.dark .nav-link:hover { background: rgba(139, 92, 246, 0.12); }
.dark .nav-link.is-active { color: #a78bfa; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  border-radius: 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--brand); }
.dark .icon-btn { background: rgba(15, 23, 42, 0.6); }

/* Official-logo brand tile (nav, footer, mobile menu).
   The supplied logo has a white field, so it sits in a light tile that reads
   cleanly in both light and dark mode — the logo is never recoloured. */
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand-tile img { height: 84%; width: 84%; object-fit: contain; display: block; }
.dark .brand-tile { border-color: rgba(255, 255, 255, 0.12); }

.brand-mark { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.group:hover .brand-mark { transform: scale(1.06); box-shadow: var(--shadow-md); }

/* Mobile menu */
.mobile-menu {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.dark .mobile-menu { background: rgba(2, 6, 23, 0.92); border-bottom-color: var(--d-line, #1E293B); }
.mobile-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s ease;
}
.mobile-link:hover { background: rgba(11, 87, 208, 0.07); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero-title {
  font-size: clamp(2.25rem, 8vw, 4.75rem);  /* 36px → 72px+ */
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.badge {
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.dark .badge { background: rgba(15, 23, 42, 0.5); }
.badge-dot {
  height: 8px; width: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

/* Ambient hero background */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.aurora--1 { top: -10%; left: -5%; height: 480px; width: 480px; background: radial-gradient(circle, rgba(11,87,208,0.55), transparent 70%); }
.aurora--2 { bottom: -15%; right: -8%; height: 520px; width: 520px; background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 70%); }
.aurora--3 { top: 30%; right: 25%; height: 360px; width: 360px; background: radial-gradient(circle, rgba(11,87,208,0.3), transparent 70%); opacity: 0.4; }
.dark .aurora { opacity: 0.4; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}
.dark .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(248,250,252,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(248,250,252,0.05) 1px, transparent 1px);
}

.neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.dark .neural-canvas { opacity: 0.5; }

/* Logo showcase — the official Hadinova logo is the hero centerpiece.
   The logo is presented exactly as supplied inside a premium floating tile,
   wrapped in a gradient glow halo and orbital rings. The logo itself is never
   distorted, skewed, cropped or recoloured. */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(300px, 64vw);
  aspect-ratio: 1;
}
.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Gradient glow halo behind the tile (mouse-follow + breathing) */
.hero-logo__glow {
  position: absolute;
  inset: 6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), rgba(11, 87, 208, 0.32) 45%, transparent 70%);
  filter: blur(46px);
  will-change: transform, opacity;
}

/* Orbital rings (decorative, separate from the logo) */
.hero-logo__ring {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid rgba(11, 87, 208, 0.18);
}
.hero-logo__ring--outer { inset: -6%; }
.hero-logo__ring--mid {
  inset: 7%;
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.22);
}
.dark .hero-logo__ring--outer { border-color: rgba(147, 180, 245, 0.24); }
.dark .hero-logo__ring--mid   { border-color: rgba(196, 181, 253, 0.26); }

/* Orbiting satellites — a dot pinned to a full-size rotating layer */
.hero-logo__sat { position: absolute; inset: -6%; z-index: 2; pointer-events: none; }
.hero-logo__sat::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  margin-left: -5px;
  height: 10px; width: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.85);
}
.hero-logo__sat--b { inset: 7%; }
.hero-logo__sat--b::before {
  top: auto; bottom: -3.5px; left: 50%;
  margin-left: -3.5px;
  height: 7px; width: 7px;
  background: #8B5CF6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* The white showcase tile holding the logo */
.hero-logo__tile {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 34px 64px -24px rgba(11, 87, 208, 0.5),
    0 12px 30px -14px rgba(15, 23, 42, 0.25);
  will-change: transform;
}
/* Gradient ring border on the tile */
.hero-logo__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.dark .hero-logo__tile {
  box-shadow:
    0 36px 80px -22px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-logo__img {
  width: 86%;
  height: auto;
  display: block;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-cue__mouse {
  display: block;
  height: 38px; width: 24px;
  border: 2px solid var(--muted);
  border-radius: 14px;
  position: relative;
  opacity: 0.6;
}
.scroll-cue__dot {
  position: absolute;
  top: 7px; left: 50%;
  height: 6px; width: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--brand);
}
.dark .scroll-cue__dot { background: #a78bfa; }

/* --------------------------------------------------------------------------
   7. About — panel, focus chips, stats
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.dark .panel { background: var(--surface); }
.panel-glow {
  position: absolute;
  inset: 8% 8% auto auto;
  z-index: 0;
  height: 200px; width: 200px;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.25;
  border-radius: 50%;
}

.focus-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.dark .focus-chip { background: rgba(2,6,23,0.4); }
.focus-chip i { color: var(--brand); width: 18px; }
.dark .focus-chip i { color: #a78bfa; }
.focus-chip:hover { transform: translateY(-2px); border-color: var(--brand); }

.stat-value { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat-label { margin-top: 0.45rem; font-size: 0.875rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   8. Ecosystem cards
   -------------------------------------------------------------------------- */
.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
  outline: none;
}
.dark .eco-card { background: var(--surface); }
/* Gradient accent border on hover */
.eco-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.eco-card:hover, .eco-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.eco-card:hover::before, .eco-card:focus-visible::before { opacity: 1; }

.eco-card__top { display: flex; align-items: center; justify-content: space-between; }
.eco-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px; width: 48px;
  border-radius: 14px;
  font-size: 1.15rem;
  color: var(--brand);
  background: rgba(11, 87, 208, 0.08);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.dark .eco-icon { color: #a78bfa; background: rgba(139, 92, 246, 0.15); }
.eco-card:hover .eco-icon {
  transform: scale(1.08) rotate(-6deg);
  background: var(--gradient);
  color: #fff;
}
.eco-card__title { margin-top: 1.4rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.eco-card__desc { margin-top: 0.7rem; color: var(--muted); line-height: 1.6; flex: 1; }
.eco-card__cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dark .eco-card__cta { color: #a78bfa; }
.eco-card:hover .eco-card__cta, .eco-card:focus-visible .eco-card__cta { opacity: 1; transform: translateY(0); }
.eco-card__cta i { transition: transform 0.3s ease; }
.eco-card:hover .eco-card__cta i { transform: translateX(4px); }

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status::before { content: ""; height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.status--dev     { color: #0B57D0; background: rgba(11, 87, 208, 0.1); }
.status--soon    { color: #8B5CF6; background: rgba(139, 92, 246, 0.12); }
.status--planned { color: #B45309; background: rgba(245, 158, 11, 0.14); }
.status--roadmap { color: #64748B; background: rgba(100, 116, 139, 0.14); }
.dark .status--dev     { color: #93b4f5; background: rgba(11, 87, 208, 0.22); }
.dark .status--soon    { color: #c4b5fd; background: rgba(139, 92, 246, 0.22); }
.dark .status--planned { color: #fcd34d; background: rgba(245, 158, 11, 0.2); }
.dark .status--roadmap { color: #cbd5e1; background: rgba(100, 116, 139, 0.25); }

/* --------------------------------------------------------------------------
   9. Vision pillars
   -------------------------------------------------------------------------- */
.vision-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(11,87,208,0.07), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139,92,246,0.07), transparent 40%);
  pointer-events: none;
}

.pillar {
  position: relative;
  padding: 2.25rem 2rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.dark .pillar { background: var(--surface); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px; width: 56px;
  border-radius: 16px;
  font-size: 1.4rem;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 24px -10px rgba(11, 87, 208, 0.7);
}
.pillar-title { margin-top: 1.4rem; font-size: 1.5rem; font-weight: 700; }
.pillar-desc { margin-top: 0.65rem; color: var(--muted); line-height: 1.6; }
.pillar-index {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--line);
  letter-spacing: -0.03em;
}
.dark .pillar-index { color: rgba(148,163,184,0.18); }

/* --------------------------------------------------------------------------
   10. Why Hadinova features
   -------------------------------------------------------------------------- */
.feature {
  padding: 1.85rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark .feature { background: var(--surface); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px; width: 50px;
  border-radius: 14px;
  font-size: 1.2rem;
  color: var(--brand);
  background: rgba(11, 87, 208, 0.08);
}
.dark .feature-icon { color: #a78bfa; background: rgba(139, 92, 246, 0.15); }
.feature-title { margin-top: 1.2rem; font-size: 1.15rem; font-weight: 700; }
.feature-desc { margin-top: 0.55rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   11. Founder vision
   -------------------------------------------------------------------------- */
.founder-card {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.dark .founder-card { background: var(--surface); }
.founder-card::after {
  content: "";
  position: absolute;
  bottom: -40%; right: -10%;
  height: 360px; width: 360px;
  background: var(--gradient);
  opacity: 0.12;
  filter: blur(60px);
  border-radius: 50%;
}
.founder-quote-mark { font-size: 2.5rem; color: var(--brand); opacity: 0.25; margin-bottom: 1rem; }
.dark .founder-quote-mark { color: #a78bfa; }
.founder-quote {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 56rem;
}
.founder-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px; width: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.founder-avatar img { height: 80%; width: 80%; object-fit: contain; display: block; }
.dark .founder-avatar { background: #fff; border-color: rgba(255, 255, 255, 0.12); }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact-line { display: flex; align-items: flex-start; gap: 1rem; }
.contact-line__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px; width: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  color: var(--brand);
  background: rgba(11, 87, 208, 0.08);
}
.dark .contact-line__icon { color: #a78bfa; background: rgba(139, 92, 246, 0.15); }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.dark .form-card { background: var(--surface); }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.field-label { margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.field-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.dark .field-input { background: rgba(2,6,23,0.5); color: var(--ink); }
.field-input::placeholder { color: var(--muted); opacity: 0.7; }
.field-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--ring);
}
.dark .field-input:focus { background: rgba(2,6,23,0.8); }
.field-input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

.field-error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ef4444;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.field-error.is-visible { opacity: 1; }

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: #ef4444; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.footer-link { color: var(--muted); transition: color 0.2s ease; }
.footer-link:hover { color: var(--brand); }
.dark .footer-link:hover { color: #a78bfa; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px; width: 42px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.social-btn:hover { color: #fff; background: var(--gradient); border-color: transparent; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   14. Responsive niceties
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-stage { width: min(252px, 54vw); }
}
@media (max-width: 640px) {
  .hero-stage { width: min(196px, 50vw); }
  .pillar-index { font-size: 2rem; top: 1.25rem; right: 1.25rem; }
}
