/* =========================================================================
   PINTECH LABS — Design System
   Vanilla CSS translation of the Tailwind/shadcn design tokens used by the
   original Next.js app. Organized: reset -> tokens -> base -> layout ->
   components -> utilities -> animations -> responsive.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  --background: 0 0% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 226 70% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 191 91% 37%;
  --accent-foreground: 222 47% 11%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 226 70% 55%;
  --radius: 1rem;
}

html.dark {
  --background: 222 47% 2%;
  --foreground: 210 40% 98%;
  --card: 222 47% 4%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 2%;
  --popover-foreground: 210 40% 98%;
  --primary: 191 91% 50%;
  --primary-foreground: 222 47% 2%;
  --secondary: 222 47% 10%;
  --secondary-foreground: 210 40% 98%;
  --muted: 222 47% 10%;
  --muted-foreground: 215 20% 65%;
  --accent: 191 91% 50%;
  --accent-foreground: 222 47% 2%;
  --destructive: 0 62% 30%;
  --destructive-foreground: 210 40% 98%;
  --border: 222 47% 12%;
  --input: 222 47% 12%;
  --ring: 191 91% 50%;
}

/* Color helpers */
:root {
  --c-bg: hsl(var(--background));
  --c-fg: hsl(var(--foreground));
  --c-card: hsl(var(--card));
  --c-card-fg: hsl(var(--card-foreground));
  --c-primary: hsl(var(--primary));
  --c-primary-fg: hsl(var(--primary-foreground));
  --c-secondary: hsl(var(--secondary));
  --c-secondary-fg: hsl(var(--secondary-foreground));
  --c-muted: hsl(var(--muted));
  --c-muted-fg: hsl(var(--muted-foreground));
  --c-accent: hsl(var(--accent));
  --c-accent-fg: hsl(var(--accent-foreground));
  --c-destructive: hsl(var(--destructive));
  --c-destructive-fg: hsl(var(--destructive-foreground));
  --c-border: hsl(var(--border));
  --c-input: hsl(var(--input));
  --c-ring: hsl(var(--ring));
}

/* ---------- Base ---------- */
html {
  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 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--c-bg);
  color: var(--c-fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
  touch-action: manipulation;
  overflow-x: hidden;
  min-height: 100vh;
}

a, button, [role="button"], input, label, select, summary, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::selection {
  background: color-mix(in srgb, var(--c-primary) 30%, transparent);
  color: var(--c-fg);
}

:focus-visible {
  outline: 2px solid var(--c-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
p { line-height: 1.6; }

.text-primary { color: var(--c-primary); }

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: 80rem; /* 1280px / max-w-7xl */
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.tap-target {
  min-height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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;
}
.skip-link.sr-only:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  clip: auto; overflow: visible; white-space: normal;
  z-index: 9999;
  background: var(--c-primary);
  color: var(--c-primary-fg);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
}

/* ---------- Glass / mesh surfaces ---------- */
.mesh-gradient {
  background:
    radial-gradient(at 0% 0%, hsla(226, 70%, 55%, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(191, 91%, 50%, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(250, 100%, 55%, 0.03) 0px, transparent 50%);
}
html.dark .mesh-gradient {
  background:
    radial-gradient(at 0% 0%, hsla(191, 91%, 50%, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(226, 70%, 55%, 0.1) 0px, transparent 50%);
}

.glass {
  background: color-mix(in srgb, var(--c-bg) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-border) 50%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  will-change: transform;
}

.glass-card {
  background: color-mix(in srgb, var(--c-card) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-border) 50%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.06), 0 8px 10px -6px rgba(99, 102, 241, 0.06);
  transform: translateZ(0);
}
html.dark .glass-card { box-shadow: none; }

/* Reduce blur cost on small/low-powered screens (this is what caused Safari
   mobile jank in the old build — many stacked backdrop-filter layers). */
@media (max-width: 767px) {
  .glass, .glass-card { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 700;
  border-radius: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  height: 2.5rem;
  padding-inline: 1rem;
  border: none;
  cursor: pointer;
}
.btn:active { transform: scale(0.95); }
.btn svg { pointer-events: none; flex-shrink: 0; }

.btn-primary {
  background: var(--c-primary);
  color: var(--c-primary-fg);
  box-shadow: 0 10px 25px -5px color-mix(in srgb, var(--c-primary) 30%, transparent);
}
@media (hover: hover) { .btn-primary:hover { background: color-mix(in srgb, var(--c-primary) 90%, transparent); } }

.btn-outline {
  background: transparent;
  border: 1px solid var(--c-border);
}
@media (hover: hover) { .btn-outline:hover { background: color-mix(in srgb, var(--c-muted) 50%, transparent); } }

.btn-lg {
  height: 4rem;
  padding-inline: 2.5rem;
  font-size: 1.125rem;
  font-weight: 900;
  border-radius: 1rem;
}

.btn svg { width: 1.25rem; height: 1.25rem; }
.mobile-cta svg { width: 1.5rem; height: 1.5rem; }
.submit-btn svg, .submit-btn .spinner { width: 1.5rem; height: 1.5rem; }

.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: block; } }

/* ---------- Form fields ---------- */
.field-label {
  display: block;
  font-weight: 900;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.field-standalone { margin-bottom: 1.5rem; }
.field-input-wrap { position: relative; }
.field-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--c-muted-fg);
  pointer-events: none;
}
.input, .textarea, .select-trigger {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--c-border) 50%, transparent);
  background: color-mix(in srgb, var(--c-bg) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-fg);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--c-muted-fg); font-weight: 500; }
.input { height: 4rem; padding-inline: 1.25rem; }
.input.has-icon { padding-left: 3.5rem; }
.textarea { min-height: 10rem; padding: 1.5rem; border-radius: 1.5rem; line-height: 1.6; resize: vertical; }
.select-trigger {
  height: 4rem;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
.input:focus, .textarea:focus, .select-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary) 20%, transparent);
}
.field-error {
  color: var(--c-destructive);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: none;
}
.field-error.is-visible { display: block; }
.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select-trigger { border-color: var(--c-destructive); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  transition: padding 0.3s ease;
}
.navbar.is-scrolled { padding-top: max(0.5rem, env(safe-area-inset-top)); padding-bottom: 0.5rem; }
.navbar-inner {
  width: 100%;
  max-width: 80rem;
  border-radius: 1.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
@media (min-width: 768px) { .navbar-inner { padding-inline: 2rem; } }

.brand { display: flex; align-items: baseline; gap: 0; line-height: 1; transition: transform 0.2s ease; }
@media (hover: hover) { .brand:hover { transform: scale(1.05); } }
.brand-main { color: #0f172a; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1.5rem; }
html.dark .brand-main { color: #fff; }
.brand-accent { color: var(--c-primary); font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1.5rem; }
.brand-lg .brand-main, .brand-lg .brand-accent { font-size: 2.25rem; }
.brand-xl .brand-main, .brand-xl .brand-accent { font-size: 4rem; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted-fg);
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--c-primary);
  transition: width 0.3s ease;
}
@media (hover: hover) {
  .nav-link:hover { color: var(--c-primary); }
  .nav-link:hover::after { width: 100%; }
}

.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .navbar-actions { gap: 1rem; } }

.theme-toggle {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease;
}
@media (hover: hover) { .theme-toggle:hover { background: color-mix(in srgb, var(--c-primary) 10%, transparent); } }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon-sun { color: #22d3ee; display: none; }
.theme-toggle .icon-moon { color: #4f46e5; display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html:not(.dark) .theme-toggle .icon-moon { display: block; }

.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; height: 3rem; border-radius: 0.75rem; padding-inline: 1.5rem; } }

.hamburger {
  display: flex;
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  position: relative;
  z-index: 70;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger svg { width: 1.5rem; height: 1.5rem; transition: opacity 0.15s ease, transform 0.15s ease; }
.hamburger .icon-close { display: none; }
.hamburger.is-open .icon-open { display: none; }
.hamburger.is-open .icon-close { display: block; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: color-mix(in srgb, var(--c-bg) 97%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
@media (min-width: 1024px) { .mobile-overlay { display: none; } }
.mobile-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-overlay-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8rem 2rem 0;
  gap: 1.5rem;
}
.mobile-link {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  padding-block: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 30%, transparent);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-overlay.is-open .mobile-link { opacity: 1; transform: translateX(0); }
.mobile-link:active { color: var(--c-primary); }
.mobile-cta-wrap {
  margin-top: auto;
  padding-bottom: max(4rem, calc(2rem + env(safe-area-inset-bottom)));
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease 0.15s, transform 0.25s ease 0.15s;
}
.mobile-overlay.is-open .mobile-cta-wrap { opacity: 1; transform: translateY(0); }
.mobile-cta {
  width: 100%;
  height: 4rem;
  border-radius: 1.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: hidden;
}
.hero-blobs {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
html.dark .hero-blobs { opacity: 1; }
.hero-blob {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 9999px;
  filter: blur(80px);
}
@media (min-width: 768px) { .hero-blob { width: 600px; height: 600px; } }
.hero-blob-a { top: 25%; left: 25%; background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.hero-blob-b { bottom: 25%; right: 25%; background: color-mix(in srgb, var(--c-accent) 5%, transparent); }

.hero-content { position: relative; z-index: 10; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.eyebrow svg { width: 0.75rem; height: 0.75rem; color: var(--c-primary); }
.eyebrow span {
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.hero-title {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  line-height: 0.9;
  text-wrap: balance;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }

.hero-sub {
  max-width: 42rem;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  color: var(--c-muted-fg);
  font-weight: 500;
  line-height: 1.6;
  text-wrap: balance;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; } }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-actions .btn { width: 100%; }
@media (min-width: 640px) { .hero-actions .btn { width: auto; } }
.btn-arrow { transition: transform 0.2s ease; }
@media (hover: hover) { .btn-primary:hover .btn-arrow { transform: translateX(4px); } }

/* ---------- Sections (shared) ---------- */
.section { padding-block: 6rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }
.section-head { text-align: center; margin-bottom: 5rem; }
.section-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
@media (min-width: 768px) { .section-title { font-size: 4.5rem; } }
.section-sub {
  color: var(--c-muted-fg);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
}

/* ---------- Products / Flagship Ecosystem ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .products-grid { gap: 3rem; } }

.product-card {
  padding: 2rem;
  border-radius: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
}
@media (min-width: 768px) { .product-card { padding: 3rem; } }

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--c-primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent);
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}
html.dark .product-tag { background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.product-tag svg { width: 2rem; height: 2rem; }
.icon-primary { color: var(--c-primary); }
.icon-accent { color: var(--c-accent); }
.product-tag span {
  font-weight: 900;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
}
.product-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
@media (min-width: 768px) { .product-title { font-size: 3rem; } }
.product-desc {
  font-size: 1.125rem;
  color: var(--c-muted-fg);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 500;
}
.product-features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--c-fg) 80%, transparent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product-features svg { width: 1rem; height: 1rem; color: var(--c-primary); flex-shrink: 0; }
.product-cta {
  height: 4rem;
  border-radius: 1.5rem;
  width: 100%;
}
@media (min-width: 640px) { .product-cta { width: fit-content; } }

/* ---------- Engagement Models ---------- */
.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .models-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .models-grid { gap: 3rem; } }

.model-card {
  padding: 2rem;
  border-radius: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}
@media (min-width: 768px) { .model-card { padding: 3rem; } }

.model-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--c-primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent);
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}
html.dark .model-tag { background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.model-tag svg { width: 2rem; height: 2rem; }
.model-tag span {
  font-weight: 900;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
}
.model-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
@media (min-width: 768px) { .model-title { font-size: 2.75rem; } }
.model-desc {
  font-size: 1.125rem;
  color: var(--c-muted-fg);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 500;
}
.model-features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.model-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--c-fg) 80%, transparent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.model-features svg { width: 1rem; height: 1rem; color: var(--c-primary); flex-shrink: 0; }
.model-cta {
  height: 4rem;
  border-radius: 1.5rem;
  width: 100%;
}
@media (min-width: 640px) { .model-cta { width: fit-content; } }

.tech-strip { margin-top: 5rem; text-align: center; }
.tech-strip-group { margin-bottom: 2.5rem; }
.tech-strip-group:last-child { margin-bottom: 0; }
.tech-strip-label {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--c-muted-fg);
  margin-bottom: 1.25rem;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--c-primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-fg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
html.dark .tech-pill { background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
@media (hover: hover) { .tech-pill:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c-primary) 40%, transparent); } }

/* ---------- Custom Dev Banner ---------- */
.section-flat { padding-block: 6rem; }
.dev-panel {
  border-radius: 3.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
@media (min-width: 768px) { .dev-panel { padding: 5rem; } }
.dev-panel-glow {
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: color-mix(in srgb, var(--c-primary) 5%, transparent);
  filter: blur(120px);
  z-index: -1;
}
.dev-grid { display: grid; gap: 4rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .dev-grid { grid-template-columns: 1fr 1fr; } }
.dev-heading {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  line-height: 1.2;
}
@media (min-width: 768px) { .dev-heading { font-size: 3rem; } }
.dev-copy { font-size: 1.125rem; color: var(--c-muted-fg); margin-bottom: 3rem; line-height: 1.6; font-weight: 500; }

.pillars { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--c-primary) 10%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.pillar-icon svg { width: 1.5rem; height: 1.5rem; color: var(--c-primary); }
.pillar h3 { font-weight: 900; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.pillar p { font-size: 0.625rem; color: var(--c-muted-fg); font-weight: 700; text-transform: uppercase; }
.btn-inquire {
  height: 3.5rem;
  padding-inline: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 1rem;
}

.dev-visual { display: none; position: relative; }
@media (min-width: 1024px) { .dev-visual { display: block; } }
.dev-visual-card {
  aspect-ratio: 1 / 1;
  border-radius: 3rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: rotate(3deg);
  position: relative;
  overflow: hidden;
}
.dev-visual-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 10%, transparent), transparent);
}
.dev-visual-inner {
  height: 100%; width: 100%;
  border-radius: 2rem;
  background: color-mix(in srgb, var(--c-fg) 5%, transparent);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
}
.dev-visual-inner .brand-word { font-size: 3.75rem; font-weight: 900; color: color-mix(in srgb, var(--c-primary) 30%, transparent); text-transform: uppercase; letter-spacing: -0.03em; }
.dev-visual-inner .brand-caption { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5em; color: var(--c-muted-fg); margin-top: 0.5rem; }
.dev-visual-orb {
  position: absolute;
  bottom: -2rem; left: -2rem;
  width: 12rem; height: 12rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
  filter: blur(24px);
  opacity: 0.5;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: color-mix(in srgb, var(--c-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent);
  margin-bottom: 2rem;
}
.contact-badge svg { width: 0.75rem; height: 0.75rem; color: var(--c-primary); }
.contact-badge span { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-primary); }
.contact-title { font-size: 2.25rem; margin-bottom: 2.5rem; line-height: 0.9; text-transform: uppercase; }
@media (min-width: 768px) { .contact-title { font-size: 5rem; } }
.contact-copy { font-size: 1.25rem; color: var(--c-muted-fg); margin-bottom: 3rem; max-width: 28rem; font-weight: 500; line-height: 1.6; }

.contact-panel { padding: 1.5rem; border-radius: 3.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
@media (min-width: 768px) { .contact-panel { padding: 3rem; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { width: 100%; height: 4rem; border-radius: 1rem; font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--c-primary) 20%, transparent); }
.spinner {
  width: 1.5rem; height: 1.5rem;
  border: 2.5px solid color-mix(in srgb, var(--c-primary-fg) 40%, transparent);
  border-top-color: var(--c-primary-fg);
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
  display: none;
}
.submit-btn.is-loading .spinner { display: inline-block; }
.submit-btn.is-loading .icon-send { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--c-bg); padding-top: 8rem; padding-bottom: 4rem; border-top: 1px solid color-mix(in srgb, var(--c-border) 30%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; margin-bottom: 6rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand-col .brand { margin-bottom: 2.5rem; width: fit-content; }
.footer-tagline { color: var(--c-muted-fg); max-width: 24rem; margin-bottom: 3rem; font-size: 1.125rem; line-height: 1.6; font-weight: 500; }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-socials svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) { .footer-socials a:hover { color: var(--c-primary); transform: scale(1.1); } }
.footer-socials a:active { transform: scale(0.9); }
.footer-col h4 { font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.625rem; color: var(--c-muted-fg); margin-bottom: 2.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 1.25rem; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; }
@media (hover: hover) { .footer-col a:hover { color: var(--c-primary); } }
.footer-bottom { padding-top: 3rem; border-top: 1px solid color-mix(in srgb, var(--c-border) 30%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2.5rem; text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-copy { font-weight: 900; color: var(--c-muted-fg); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.footer-slogan { font-weight: 900; color: var(--c-primary); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.25em; }
.footer-status { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.25rem; border-radius: 9999px; }
.footer-status svg { width: 1rem; height: 1rem; color: var(--c-primary); }
.footer-status span { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-muted-fg); }

/* ---------- Splash screen ---------- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease-in-out;
}
.splash.is-hidden { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.splash-rule { width: 3rem; height: 2px; background: var(--c-primary); margin-top: 0.5rem; }
.splash-caption { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.4em; color: var(--c-muted-fg); margin-top: 1rem; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- Scroll reveal ---------- */
/* Scoped to html.js so content stays visible by default when JavaScript
   is unavailable (disabled, blocked, or a non-executing crawler) instead
   of being permanently hidden behind an opacity:0 that nothing removes. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.js .reveal-x { opacity: 0; transform: translateX(-20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal-x.is-visible { opacity: 1; transform: translateX(0); }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-hero { padding-top: 12rem; padding-bottom: 6rem; position: relative; overflow: hidden; }
.legal-hero .container { max-width: 64rem; }
.legal-head { text-align: center; margin-bottom: 6rem; }
.legal-title { font-size: 3rem; margin-bottom: 2rem; text-transform: uppercase; line-height: 0.9; }
@media (min-width: 768px) { .legal-title { font-size: 6rem; } }
.legal-rev { color: var(--c-muted-fg); font-weight: 900; text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.75rem; }
.legal-sections { display: flex; flex-direction: column; gap: 2.5rem; }
.legal-card { padding: 2.5rem; border-radius: 3rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
@media (min-width: 768px) { .legal-card { padding: 4rem; } }
.legal-card-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.legal-icon { padding: 1.25rem; background: color-mix(in srgb, var(--c-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent); border-radius: 1.5rem; flex-shrink: 0; }
.legal-icon svg { width: 1.75rem; height: 1.75rem; color: var(--c-primary); }
.legal-card-head h2 { font-size: 1.5rem; text-transform: uppercase; }
@media (min-width: 768px) { .legal-card-head h2 { font-size: 1.875rem; } }
.legal-card p { color: var(--c-muted-fg); line-height: 1.7; font-size: 1.125rem; font-weight: 500; }
.legal-card p.cookie-intro { margin-bottom: 3rem; }
.legal-foot { text-align: center; padding-top: 4rem; }
.legal-foot p { color: color-mix(in srgb, var(--c-muted-fg) 60%, transparent); font-size: 0.875rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; }
.legal-foot p.legal-foot-note { opacity: 0.7; font-style: italic; }

/* Cookie category cards inside privacy page */
.cookie-cat { border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--c-border) 30%, transparent); background: color-mix(in srgb, var(--c-card) 30%, transparent); overflow: hidden; margin-bottom: 1.5rem; }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--c-border) 20%, transparent); background: color-mix(in srgb, var(--c-muted) 20%, transparent); }
.cookie-cat-head h3 { font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; }
.cookie-badge { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.25rem 0.75rem; border-radius: 9999px; border: 1px solid; }
.cookie-badge.active { color: #34d399; background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.2); }
.cookie-badge.optional { color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 10%, transparent); border-color: color-mix(in srgb, var(--c-primary) 20%, transparent); }
.cookie-cat-body { padding: 1.25rem 1.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cookie-cat-body { grid-template-columns: 1fr 1fr; } }
.cookie-label { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; color: var(--c-muted-fg); margin-bottom: 0.5rem; }
.cookie-purpose { font-size: 0.875rem; color: color-mix(in srgb, var(--c-fg) 80%, transparent); line-height: 1.6; font-weight: 500; }
.cookie-examples { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.cookie-examples span { font-size: 0.625rem; font-family: ui-monospace, monospace; background: color-mix(in srgb, var(--c-muted) 60%, transparent); border: 1px solid color-mix(in srgb, var(--c-border) 40%, transparent); padding: 0.25rem 0.5rem; border-radius: 0.5rem; color: var(--c-muted-fg); }
.cookie-meta { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; }
.cookie-meta svg { width: 0.875rem; height: 0.875rem; color: var(--c-muted-fg); margin-top: 2px; flex-shrink: 0; }
.cookie-meta strong { display: block; font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-muted-fg); }
.cookie-meta p { font-size: 0.75rem; color: color-mix(in srgb, var(--c-fg) 70%, transparent); font-weight: 500; }
.pref-block { border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent); background: color-mix(in srgb, var(--c-primary) 5%, transparent); padding: 1.5rem; margin-bottom: 2rem; }
.pref-block-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.pref-block-head svg { width: 1.25rem; height: 1.25rem; color: var(--c-primary); }
.pref-block-head h3 { font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; }
.pref-block p { font-size: 0.875rem; color: var(--c-muted-fg); line-height: 1.6; font-weight: 500; margin-bottom: 1rem; }
.pref-block code { font-size: 0.6875rem; background: color-mix(in srgb, var(--c-muted) 60%, transparent); border: 1px solid color-mix(in srgb, var(--c-border) 40%, transparent); padding: 0.125rem 0.375rem; border-radius: 0.375rem; font-family: ui-monospace, monospace; }
.subproc-block { border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--c-border) 30%, transparent); background: color-mix(in srgb, var(--c-muted) 10%, transparent); padding: 1.5rem; }
.subproc-block-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.subproc-block-head svg { width: 1.25rem; height: 1.25rem; color: var(--c-muted-fg); }
.subproc-block-head h3 { font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; }
.subproc-block > p { font-size: 0.875rem; color: var(--c-muted-fg); line-height: 1.6; font-weight: 500; margin-bottom: 0.75rem; }
.subproc-block > p.subproc-second-heading { margin-top: 1rem; }
.subproc-block ul { display: flex; flex-direction: column; gap: 0.5rem; }
.subproc-block li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.subproc-block li .dash { color: var(--c-primary); font-weight: 900; margin-top: 2px; }
.subproc-block li span { color: var(--c-muted-fg); font-weight: 500; }
.subproc-block a { color: var(--c-primary); }
@media (hover: hover) { .subproc-block a:hover { text-decoration: underline; } }

/* ---------- Cookie consent banner ---------- */
.cookie-scrim {
  position: fixed; inset: 0; z-index: 9990;
  background: color-mix(in srgb, var(--c-bg) 30%, transparent);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cookie-scrim.is-visible { opacity: 1; pointer-events: auto; }

.cookie-banner {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom)); left: 0; right: 0;
  margin-inline: auto;
  z-index: 9999;
  width: calc(100% - 2rem);
  max-width: 42rem;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  visibility: hidden;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner-inner {
  position: relative;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--c-border) 50%, transparent);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
  background: color-mix(in srgb, var(--c-card) 60%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}
.cookie-accent-line { height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--c-primary), transparent); opacity: 0.7; }
.cookie-collapsed { padding: 1rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .cookie-collapsed { flex-direction: row; } }
.cookie-copy-wrap { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; width: 100%; }
@media (min-width: 640px) { .cookie-copy-wrap { width: auto; } }
.cookie-shield { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--c-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent); display: flex; align-items: center; justify-content: center; }
.cookie-shield svg { width: 1rem; height: 1rem; color: var(--c-primary); }
.cookie-copy p:first-child { font-size: 0.8125rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.125rem; }
.cookie-copy p:last-child { font-size: 0.75rem; color: var(--c-muted-fg); line-height: 1.5; }
.cookie-copy a { color: var(--c-primary); }
@media (hover: hover) { .cookie-copy a:hover { text-decoration: underline; } }
.cookie-actions { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-shrink: 0; width: 100%; }
@media (min-width: 640px) { .cookie-actions { width: auto; } }
.cookie-btn { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem; font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-muted-fg); border: 1px solid color-mix(in srgb, var(--c-border) 50%, transparent); transition: color 0.2s ease, border-color 0.2s ease; }
@media (hover: hover) { .cookie-btn:hover { color: var(--c-fg); border-color: var(--c-border); } }
.cookie-btn svg { width: 0.75rem; height: 0.75rem; transition: transform 0.3s ease; }
.cookie-btn.is-expanded svg { transform: rotate(180deg); }
.cookie-btn-accept { padding-inline: 1rem; background: var(--c-primary); color: var(--c-primary-fg); border-color: var(--c-primary); }
@media (hover: hover) { .cookie-btn-accept:hover { opacity: 0.9; } }
.cookie-btn-accept:active { transform: scale(0.95); }

.cookie-expanded { height: 0; opacity: 0; overflow: hidden; transition: height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease; }
.cookie-expanded.is-open { opacity: 1; }
.cookie-expanded-inner { padding: 0 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cookie-divider { height: 1px; width: 100%; background: color-mix(in srgb, var(--c-border) 40%, transparent); margin-bottom: 0.25rem; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--c-muted) 20%, transparent); border: 1px solid color-mix(in srgb, var(--c-border) 20%, transparent); }
.cookie-row.essential { background: color-mix(in srgb, var(--c-muted) 30%, transparent); border-color: color-mix(in srgb, var(--c-border) 30%, transparent); }
.cookie-row-info { display: flex; align-items: center; gap: 0.75rem; }
.cookie-row-icon { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; background: color-mix(in srgb, var(--c-muted) 60%, transparent); border: 1px solid color-mix(in srgb, var(--c-border) 30%, transparent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cookie-row.essential .cookie-row-icon { background: color-mix(in srgb, var(--c-primary) 10%, transparent); border-color: color-mix(in srgb, var(--c-primary) 20%, transparent); }
.cookie-row-icon svg { width: 0.875rem; height: 0.875rem; color: var(--c-muted-fg); }
.cookie-row.essential .cookie-row-icon svg { color: var(--c-primary); }
.cookie-row-info p:first-child { font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.cookie-row-info p:last-child { font-size: 0.6875rem; color: var(--c-muted-fg); line-height: 1.5; margin-top: 0.125rem; }

.toggle { position: relative; display: inline-flex; flex-shrink: 0; height: 1.5rem; width: 2.75rem; border-radius: 9999px; border: 2px solid color-mix(in srgb, var(--c-border) 60%, transparent); background: color-mix(in srgb, var(--c-muted) 40%, transparent); transition: background-color 0.3s ease, border-color 0.3s ease; }
.toggle.is-on { border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 20%, transparent); }
.toggle.is-disabled { opacity: 0.5; cursor: not-allowed; }
.toggle-knob { pointer-events: none; display: inline-block; height: 1rem; width: 1rem; border-radius: 9999px; background: color-mix(in srgb, var(--c-muted-fg) 50%, transparent); box-shadow: 0 1px 3px rgba(0,0,0,0.3); margin-top: 1px; transform: translateX(2px); transition: transform 0.3s ease, background-color 0.3s ease; }
.toggle.is-on .toggle-knob { transform: translateX(21px); background: var(--c-primary); }

.cookie-save-btn { width: 100%; margin-top: 0.25rem; padding-block: 0.625rem; border-radius: 0.75rem; font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); border: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent); transition: background-color 0.2s ease; }
@media (hover: hover) { .cookie-save-btn:hover { background: color-mix(in srgb, var(--c-primary) 20%, transparent); } }
.cookie-save-btn:active { transform: scale(0.98); }
.cookie-dismiss { position: absolute; top: 0.75rem; right: 0.75rem; width: 1.75rem; height: 1.75rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: var(--c-muted-fg); background: color-mix(in srgb, var(--c-muted) 40%, transparent); transition: background-color 0.2s ease, color 0.2s ease; }
.cookie-dismiss svg { width: 0.875rem; height: 0.875rem; }
@media (hover: hover) { .cookie-dismiss:hover { color: var(--c-fg); background: color-mix(in srgb, var(--c-muted) 80%, transparent); } }
.cookie-dismiss:active { transform: scale(0.9); }

/* ---------- Toast ---------- */
.toast-viewport {
  position: fixed;
  top: 1rem; right: 1rem; left: 1rem;
  z-index: 9998;
  display: flex; flex-direction: column; gap: 0.75rem;
  pointer-events: none;
}
@media (min-width: 640px) { .toast-viewport { left: auto; max-width: 26rem; } }
.toast {
  pointer-events: auto;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--c-border) 60%, transparent);
  background: var(--c-card);
  color: var(--c-fg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-destructive { border-color: color-mix(in srgb, var(--c-destructive) 50%, transparent); }
.toast-title { font-weight: 800; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.toast-desc { font-size: 0.875rem; opacity: 0.85; line-height: 1.5; }

/* ---------- Misc ---------- */
.section-anchor { padding-block: 3rem; }
.overflow-clip { overflow: clip; }
.icon-sprite-defs { display: none; }

/* ---------- 404 page ---------- */
.notfound { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.notfound-card { padding: 3rem; border-radius: 3.5rem; max-width: 32rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.notfound-icon { width: 5rem; height: 5rem; background: color-mix(in srgb, var(--c-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c-primary) 20%, transparent); border-radius: 1.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; }
.notfound-icon svg { width: 2.5rem; height: 2.5rem; color: var(--c-primary); }
.notfound h1 { font-size: 2.25rem; text-transform: uppercase; margin-bottom: 1.5rem; }
.notfound p { color: var(--c-muted-fg); font-size: 1.125rem; line-height: 1.6; margin-bottom: 2.5rem; }
