/* ==========================================================================
   Mendifai — marketing site styles
   Brand: near-black base, single prism gradient moment (now a live WebGL
   shader in the hero), pill CTAs, thin-line icons, heavy tight-tracked
   headlines (Inter).
   ========================================================================== */

:root{
  color-scheme: dark;

  --bg: #0A0A0B;
  --bg-alt: #0D0D10;
  --panel: #111113;
  --panel-raised: #17171a;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.2);

  --glass-bg: rgba(17,17,19,0.55);
  --glass-border: rgba(255,255,255,0.14);
  --glass-blur: saturate(150%) blur(16px);

  --text: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-faint: #85858c;

  --green: #39E37D;
  --amber: #FFB43D;

  --prism: linear-gradient(90deg,
    #FFFFFF 0%,
    #4D9FFF 20%,
    #39E37D 38%,
    #FFB43D 55%,
    #FF4D4D 68%,
    #E84DFF 82%,
    #3DDDF0 100%);

  --container: 1180px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

/* ---------------------------------- Ambient texture ------------------------ */
/* A whisper of film grain over the whole page so near-black reads as rich
   and textured instead of flat. Monochrome only — doesn't touch the brand's
   one color moment (the hero prism gradient). */

body::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

/* ---------------------------------- Motion: scroll reveal ------------------ */
/* Progressive enhancement: only hides content once we know JS is running,
   so the page is fully visible if JS fails to load. */

html.has-js .reveal{
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.has-js .reveal.is-visible{
  opacity: 1;
  translate: 0 0;
}

.reveal-delay-1{ transition-delay: 90ms; }
.reveal-delay-2{ transition-delay: 180ms; }
.reveal-delay-3{ transition-delay: 270ms; }

/* ---------------------------------- Motion: spotlight hover ----------------- */
/* Mouse-tracked glow on interactive panels. Subtle — a hint of light, not a
   color effect, so it doesn't compete with the hero's one gradient moment. */

.spotlight{
  position: relative;
  overflow: hidden;
}

.spotlight::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce){
  html.has-js .reveal{ opacity: 1; translate: 0 0; }
}

html{
  background: var(--bg);
  scroll-behavior: smooth;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a{ color: inherit; text-decoration: none; }

ul{ list-style: none; margin: 0; padding: 0; }

button{ font-family: inherit; }

h1,h2,h3,h4{
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p{ margin: 0; }

:focus-visible{
  outline: 2px solid #4D9FFF;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 1000;
  background: var(--panel);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus{
  left: 16px;
  top: 16px;
}

.container{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section{
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-block: clamp(64px, 10vw, 120px);
}

/* Alternating section shade — still near-black throughout, just enough
   shift to give the page some depth instead of one flat block of color. */
/* Alt sections also carry a faint technical dot-grid — echoes the thin-line
   icon language as texture instead of a second color. */
.section--alt{
  background:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1.5px) 0 0 / 28px 28px,
    var(--bg-alt);
}

/* Soft monochrome ambient glow, no hue — atmosphere, not a second gradient
   moment. Placed behind content via z-index (.container sits above it).
   --glow-shift is set by assets/js/motion.js for a subtle parallax drift. */
.section--glow-tr,
.section--glow-bl{
  --glow-shift: 0px;
}

.section--glow-tr::before,
.section--glow-bl::before{
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translateY(var(--glow-shift));
  transition: transform 0.2s linear;
}

.section--glow-tr::before{ top: -220px; right: -160px; }
.section--glow-bl::before{ bottom: -220px; left: -160px; }

/* Angled divider between two sections — a diagonal wedge in the color of
   the section above, cutting into the section below. Used sparingly (1-2
   boundaries), not on every seam. */
.section-divider{
  position: relative;
  height: 96px;
  background: var(--panel-raised);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
}

/* Oversized, near-invisible outline of a service icon in a section corner —
   texture drawn from the brand's own iconography, not a new visual language. */
.section-icon-watermark{
  position: absolute;
  width: 320px;
  height: 320px;
  opacity: 0.05;
  color: var(--text);
  pointer-events: none;
  z-index: 0;
}

.section-icon-watermark svg{ width: 100%; height: 100%; }

.section-icon-watermark--br{ bottom: -70px; right: -70px; }

.section-head{
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.section-head h2{
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-head p{
  color: var(--text-muted);
  font-size: 17px;
  max-width: 52ch;
}

/* ---------------------------------- Buttons ------------------------------ */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}

.btn:hover{
  background: #1c1c20;
  border-color: rgba(255,255,255,0.32);
}

.btn:active{ transform: translateY(1px); }

.btn svg{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover svg{ transform: translateX(3px); }

.btn--sm{
  padding: 10px 20px;
  font-size: 14px;
}

.btn--block{
  width: 100%;
  justify-content: center;
}

/* ---------------------------------- Status pill --------------------------- */

.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57,227,125,0.15);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference){
  .status-dot{ animation: pulse-dot 2.4s ease-in-out infinite; }
}

@keyframes pulse-dot{
  0%, 100%{ box-shadow: 0 0 0 3px rgba(57,227,125,0.15); }
  50%{ box-shadow: 0 0 0 6px rgba(57,227,125,0.08); }
}

/* ---------------------------------- Hero shader ---------------------------- */
/* Singular brand mark, alive instead of static. Appears exactly once on the
   page — fills the hero on load, colored from the prism gradient stops,
   swept left-to-right same as the static brand ribbon. Shrinks toward the
   bottom edge on scroll (see assets/js/shader-bg.js) so it settles into a
   slim ribbon once you've moved past the hero. */

.hero-shader{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 92%, transparent);
}

.hero-shader::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.3) 45%, rgba(10,10,11,0.85) 100%);
}

.hero-shader canvas{
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------------------------------- Header / nav -------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

/* The hero ribbon's resting state — once it's shrunk, this slim line takes
   over, tracking total scroll progress. Same gradient, same one moment,
   just persisting quietly instead of disappearing. */
.scroll-thread{
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--prism);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-thread.is-visible{ opacity: 1; }

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img{ width: 30px; height: 30px; }

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

.nav-links a{
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s ease;
}

.nav-links a::after{
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--text);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover{ color: var(--text); }
.nav-links a:hover::after{ right: 0; }

.nav-actions{
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-toggle svg{ width: 20px; height: 20px; }

.mobile-menu{
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 99;
  padding: 32px 24px;
  border-top: 1px solid var(--glass-border);
}

.mobile-menu.is-open{ display: block; }

.mobile-menu a{
  display: block;
  font-size: 22px;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-menu .btn{ margin-top: 28px; }

/* ---------------------------------- Hero ---------------------------------- */

.hero{
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--bg);
}

.hero-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1{
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  max-width: 16ch;
  margin-bottom: 26px;
}

.hero-sub{
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-cta-group{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* ---------------------------------- Problem / promise ---------------------- */

.compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-col{
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.compare-col h3{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 24px;
}

.compare-col.is-problem h3{ color: var(--text-faint); }
.compare-col.is-promise h3{ color: var(--green); }

.compare-list{ display: flex; flex-direction: column; gap: 20px; }

.compare-item{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.compare-item svg{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.is-problem .compare-item svg{ color: var(--text-faint); }
.is-promise .compare-item svg{ color: var(--green); }

.compare-item p{
  font-size: 15.5px;
  color: var(--text-muted);
}

.compare-col.is-promise .compare-item p{ color: #d6d9dd; }

/* ---------------------------------- Services / how it works ---------------- */

.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card{
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color .18s ease, transform .18s ease;
}

.service-card:hover{
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.service-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.service-card:hover .service-icon{
  transform: scale(1.08);
  border-color: var(--border-strong);
}

.service-icon svg{ width: 22px; height: 22px; }

.service-card h3{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p{
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------------------------------- Stats strip ------------------------------ */

.stats-section{ padding-block: clamp(48px, 7vw, 80px); }

.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.stat{
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.stat-number{
  display: block;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-label{
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------------------------------- Chat widget ---------------------------------- */

.chat-toggle{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-raised);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.chat-toggle:hover{
  transform: scale(1.05);
  border-color: var(--border-strong);
}

.chat-toggle svg{ width: 24px; height: 24px; }

.chat-panel{
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 199;
  width: min(380px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 140px));
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-panel.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.chat-panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

.chat-close{
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
}

.chat-close svg{ width: 18px; height: 18px; }
.chat-close:hover{ color: var(--text); }

#deepChat{
  /* min-height/min-width: 0 are load-bearing. A column flex item defaults to
     min-height: auto, so once the transcript grows deep-chat refuses to shrink
     below its own content height: it overflows the panel, and the panel's
     overflow: hidden crops the bottom off — taking the text input with it.
     Zeroing the automatic minimum makes it shrink to the room left over after
     the header instead of spilling past the panel. */
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  display: block;
  overflow: hidden;
}

/* Animated prism ribbon — the same brand gradient moment from the hero
   shader and scroll-thread, echoed as a thin flowing accent bar. */
.chat-panel::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--prism);
  background-size: 200% 100%;
  animation: ribbon-flow 6s linear infinite;
  z-index: 1;
}

@keyframes ribbon-flow{
  from{ background-position: 0% 0%; }
  to{ background-position: -200% 0%; }
}

@media (max-width: 640px){
  /* On phones the panel is a full-screen sheet, not a floating card — a 380px
     card plus an on-screen keyboard leaves no room for the conversation.
     Top/height come from the visual viewport (set by chat-widget.js) so the
     sheet shrinks to sit above the iOS keyboard instead of being pushed
     off-screen; 100dvh is the fallback before the first reading. */
  .chat-panel{
    left: 0;
    right: 0;
    top: var(--chat-vv-top, 0px);
    bottom: auto;
    width: 100%;
    height: var(--chat-vv-height, 100dvh);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    /* full-bleed glass just reads as murk at this size — go opaque */
    background: var(--panel);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(1.5%) scale(1);
    /* keyboard closed: clear the home indicator. iOS reports this inset as 0
       while the keyboard is up, so the composer sits flush above the keys. */
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior: contain;
  }
  .chat-panel.is-open{
    transform: translateY(0) scale(1);
  }
  .chat-panel-header{
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .chat-toggle{
    right: 16px;
    bottom: 16px;
  }
  /* the launcher would otherwise float on top of the sheet it opened */
  body.chat-open .chat-toggle{
    display: none;
  }
  /* Stop the page behind the sheet from scrolling (phones only — the desktop
     panel is a card and the page should stay scrollable behind it).
     overflow: hidden alone does not hold on iOS: focusing the composer makes
     Safari scroll the document to "reveal" it, which drags the fixed sheet
     partway off-screen and crops the transcript. position: fixed genuinely
     freezes it; chat-widget.js stores the scroll offset in `top` and restores
     it on close. */
  body.chat-open{
    position: fixed;
    top: var(--chat-scroll-lock, 0px);
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }
}

/* ---------------------------------- Contact ---------------------------------- */

.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-info h2{
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 18px;
}

.contact-info p{
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 42ch;
}

.contact-detail{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-detail svg{ width: 18px; height: 18px; flex-shrink: 0; }

.contact-form{
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.field{
  margin-bottom: 20px;
}

.field label{
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(255,255,255,0.35);
}

.field input::placeholder,
.field textarea::placeholder{ color: var(--text-faint); }

.form-error{
  display: none;
  font-size: 14.5px;
  color: #FF7A7A;
  padding: 14px 16px;
  border: 1px solid rgba(255,77,77,0.3);
  border-radius: var(--radius-md);
  margin-top: 18px;
}

.form-error.is-visible{ display: block; }

.form-success{
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--green);
  padding: 14px 16px;
  border: 1px solid rgba(57,227,125,0.3);
  border-radius: var(--radius-md);
  margin-top: 18px;
}

.form-success.is-visible{ display: flex; }

.form-success svg{ width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer{
  border-top: 1px solid var(--border);
  padding-block: 40px;
  background: var(--bg);
}

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

.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
}

.footer-brand img{ width: 24px; height: 24px; }

.footer-copy{
  font-size: 13px;
  color: var(--text-faint);
}

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

.footer-links a{
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-links a:hover{ color: var(--text); }

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 980px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .nav-actions .btn{ display: none; }
}

@media (max-width: 640px){
  .card-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr; }
  .compare{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}
