/* ==========================================================================
   DiatomStack Technologies — Design System
   ========================================================================== */

:root {
  /* Brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --accent:    #8b5cf6;
  --accent-2:  #06b6d4;

  /* Neutrals */
  --ink-900: #0a0a0f;
  --ink-800: #111827;
  --ink-700: #1f2937;
  --ink-600: #374151;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --ink-50:  #f9fafb;
  --white:   #ffffff;

  /* Surfaces */
  --bg:         #ffffff;
  --bg-muted:   #f8fafc;
  --bg-dark:    #0a0a12;
  --bg-darker:  #060609;
  --border:     #e5e7eb;
  --border-dark:#1f2937;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg:  0 10px 25px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl:  0 25px 50px -12px rgb(0 0 0 / 0.18);
  --shadow-brand: 0 20px 40px -12px rgb(79 70 229 / 0.35);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 880px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 4.8vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.375rem; }
p  { margin: 0 0 1em; color: var(--ink-600); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 16px;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-500);
  max-width: 640px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(229,231,235,.6);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav-inner {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink-900); font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: .75rem;
  box-shadow: var(--shadow-brand);
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: var(--r-md);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink-900); background: var(--ink-100); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  padding: 8px;
  border-radius: var(--r-md);
  color: var(--ink-700);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-600), var(--accent));
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  box-shadow: 0 24px 48px -12px rgb(79 70 229 / 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--ink-900);
  background: white;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--ink-50); border-color: var(--ink-300); }

.btn-ghost-dark {
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); }

.btn-lg { padding: 14px 24px; font-size: 1rem; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--brand-600);
}
.btn-link:hover { color: var(--brand-700); }
.btn-link .arrow { transition: transform .2s var(--ease); }
.btn-link:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 120px;
  background: var(--bg-dark);
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 20% 0%, rgb(99 102 241 / 0.28), transparent 55%),
    radial-gradient(ellipse 700px 500px at 85% 30%, rgb(139 92 246 / 0.28), transparent 55%),
    radial-gradient(ellipse 600px 400px at 50% 90%, rgb(6 182 212 / 0.18), transparent 55%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: -1;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-size: .8125rem; font-weight: 500;
  color: var(--ink-200);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-full);
  margin-bottom: 28px;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}
.hero h1 {
  color: white;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 40%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  color: var(--ink-300);
  font-size: 1.1875rem;
  margin: 0 auto 36px;
  max-width: 680px;
}
.hero-actions {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

.hero-trust {
  margin-top: 80px;
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 40px;
  color: rgba(255,255,255,.45);
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Stat bar
   ========================================================================== */
.stat-bar {
  padding: 56px 0;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-600), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--ink-500); font-size: .9375rem; }
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head .lede { margin: 0 auto; }

/* ==========================================================================
   Product cards
   ========================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .products { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.product-card {
  position: relative;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 400px 200px at 80% 0%, rgb(99 102 241 / 0.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: -1;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-200);
}
.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  margin-bottom: 16px;
  box-shadow: var(--shadow-brand);
}
.product-icon svg { width: 22px; height: 22px; }
.product-icon.a { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }
.product-icon.b { background: linear-gradient(135deg, #06b6d4, #4f46e5); }
.product-icon.c { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.product-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 3px 9px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.product-card p { color: var(--ink-600); margin-bottom: 14px; font-size: .9375rem; }

.feature-list { list-style: none; padding: 0; margin: 0 0 18px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 0;
  font-size: .875rem;
  color: var(--ink-700);
  line-height: 1.45;
}
.feature-list li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--brand-500), var(--accent))
    center/10px no-repeat;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'><path d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4L8.5 12l6.8-6.8a1 1 0 0 1 1.4 0z'/></svg>"),
    linear-gradient(135deg, var(--brand-500), var(--accent));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px, cover;
}

/* ==========================================================================
   Services section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.service-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.service-card p { font-size: .9375rem; margin: 0; color: var(--ink-500); }

.section-muted { background: var(--bg-muted); }

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-item h4 {
  font-size: 1rem; font-weight: 600;
  color: var(--ink-900); margin: 0 0 8px;
}
.why-num {
  display: inline-block;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand-600);
  margin-bottom: 10px;
}
.why-item p { font-size: .9375rem; color: var(--ink-500); margin: 0; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  background: var(--bg-dark);
  color: white;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  padding: 80px 32px;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 30% 20%, rgb(99 102 241 / 0.4), transparent 55%),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgb(139 92 246 / 0.4), transparent 55%);
  z-index: -1;
}
.cta h2 { color: white; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.7); margin: 0 auto 28px; max-width: 540px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-darker);
  color: var(--ink-400);
  padding: 72px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h5 {
  color: white;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--ink-400);
  font-size: .9375rem;
  transition: color .15s;
}
.footer-links a:hover { color: white; }

.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: white; font-weight: 700; font-size: 1.125rem; margin-bottom: 16px;
}
.footer-about { color: var(--ink-400); font-size: .9375rem; max-width: 320px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: .875rem;
}
.footer-bottom .socials {
  display: inline-flex; gap: 14px;
}
.footer-bottom .socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  color: var(--ink-400);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-bottom .socials a:hover { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.03); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   About / Team
   ========================================================================== */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 900px 400px at 50% 0%, var(--brand-50), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .lede { margin: 0 auto; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

.team-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.team-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.avatar {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.875rem;
  color: white;
  background: linear-gradient(135deg, var(--brand-600), var(--accent));
  box-shadow: var(--shadow-brand);
  letter-spacing: -0.02em;
}
.avatar.b { background: linear-gradient(135deg, #06b6d4, #4f46e5); }
.avatar.c { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.team-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.team-role {
  font-size: .8125rem; font-weight: 600;
  color: var(--brand-600);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.team-bio { font-size: .9375rem; color: var(--ink-500); margin: 0 0 20px; }
.team-linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: .875rem; font-weight: 500;
  color: var(--ink-700);
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: color .15s, background .15s, border-color .15s;
}
.team-linkedin:hover {
  color: #0A66C2; background: #e8f1fa; border-color: #cfe2f3;
}
.team-linkedin svg { width: 16px; height: 16px; color: #0A66C2; }

/* ==========================================================================
   Legal (Privacy / Terms)
   ========================================================================== */
.legal {
  padding: calc(var(--nav-h) + 56px) 0 96px;
}
.legal .meta {
  color: var(--ink-500); font-size: .875rem; margin-bottom: 32px;
}
.legal h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 1.125rem; margin-top: 28px; margin-bottom: 8px; }
.legal p, .legal ul { color: var(--ink-600); font-size: .9875rem; }
.legal ul { padding-left: 22px; }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Modal — Request Demo
   ========================================================================== */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.modal.open { display: flex; opacity: 1; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 36px 32px 32px;
  transform: translateY(12px) scale(.98);
  transition: transform .25s var(--ease);
}
.modal.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-500);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--ink-100); color: var(--ink-900); }
.modal-close svg { width: 18px; height: 18px; }

.modal-card h3 {
  font-size: 1.5rem; margin-bottom: 6px; letter-spacing: -0.02em;
}
.modal-card .sub {
  color: var(--ink-500); margin-bottom: 24px; font-size: .9375rem;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  background: white;
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgb(99 102 241 / 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }

.modal-card .btn-primary { width: 100%; margin-top: 8px; padding: 13px; }

.form-footnote {
  margin: 14px 0 0;
  font-size: .75rem;
  color: var(--ink-500);
  text-align: center;
}
.form-footnote a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}
.form-success.active { display: block; }
.form-success .icon {
  width: 64px; height: 64px;
  margin: 8px auto 16px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: white;
  box-shadow: 0 12px 30px -8px rgb(16 185 129 / 0.4);
}
.form-success .icon svg { width: 28px; height: 28px; }
.form-success h3 { margin-bottom: 6px; }
.form-success p { color: var(--ink-500); margin-bottom: 20px; font-size: .9375rem; }

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
.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;
}
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }

/* ==========================================================================
   Animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}
