/* ========================================================
   Fonal AI — Design Tokens, Glass Effects, Animations, Components
   Pure CSS — no frameworks, no build tools
   ======================================================== */

/* --- Design Tokens --- */
:root {
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) * 0.533);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 1rem);
  --radius-2xl: calc(var(--radius) + 2rem);
  --radius-3xl: calc(var(--radius) + 3rem);
  --radius-4xl: calc(var(--radius) + 4rem);

  --background: oklch(0.985 0.008 235);
  --foreground: oklch(0.21 0.045 255);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.21 0.045 255);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.21 0.045 255);
  --primary: oklch(0.52 0.17 250);
  --primary-foreground: oklch(0.985 0.005 240);
  --secondary: oklch(0.94 0.02 240);
  --secondary-foreground: oklch(0.3 0.06 255);
  --muted: oklch(0.94 0.02 240);
  --muted-foreground: oklch(0.5 0.04 255);
  --accent: oklch(0.92 0.035 235);
  --accent-foreground: oklch(0.3 0.08 255);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0.005 240);
  --border: oklch(0.9 0.02 245);
  --input: oklch(0.9 0.02 245);
  --ring: oklch(0.6 0.14 250);
  --sky-deep: oklch(0.45 0.15 255);
  --sky-soft: oklch(0.82 0.07 230);
  --ice: oklch(0.96 0.02 230);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Typography Scale --- */
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.5; }
.text-xl { font-size: 1.25rem; line-height: 1.4; }
.text-2xl { font-size: 1.5rem; line-height: 1.3; }
.text-3xl { font-size: 1.875rem; line-height: 1.2; }
.text-4xl { font-size: 2.25rem; line-height: 1.15; }
.text-5xl { font-size: 3rem; line-height: 1.08; letter-spacing: -0.03em; }
.text-6xl { font-size: 3.75rem; line-height: 1.06; letter-spacing: -0.03em; }
.text-7xl { font-size: 4.5rem; line-height: 1.05; letter-spacing: -0.03em; }

.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-balance { text-wrap: balance; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-white { color: white; }
.text-white\/85 { color: oklch(1 0 0 / 0.85); }
.text-white\/70 { color: oklch(1 0 0 / 0.7); }

/* --- Flexbox / Grid Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* --- Hero Gradient Background --- */
.hero-gradient {
  background:
    radial-gradient(120% 90% at 85% 10%, oklch(0.75 0.10 230) 0%, transparent 55%),
    radial-gradient(100% 80% at 10% 90%, oklch(0.70 0.12 250) 0%, transparent 50%),
    linear-gradient(160deg, oklch(0.88 0.05 235) 0%, oklch(0.66 0.12 245) 55%, oklch(0.50 0.15 252) 100%);
  min-height: 100vh;
  position: relative;
}

/* --- Ambient Gradient Orbs --- */
.orbs-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(90px);
}

.orb--soft {
  background: var(--sky-soft);
  top: -6rem;
  right: -4rem;
}

.orb--deep {
  background: var(--sky-deep);
  bottom: -6rem;
  left: -4rem;
  opacity: 0.4;
}

/* --- Glass Surface Effects --- */
.glass {
  background: oklch(1 0 0 / 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid oklch(1 0 0 / 0.65);
}

.glass-deep {
  background: oklch(1 0 0 / 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid oklch(1 0 0 / 0.30);
}

.dock-blur {
  background: oklch(1 0 0 / 0.60);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid oklch(1 0 0 / 0.70);
  box-shadow: 0 12px 40px -12px oklch(0.45 0.12 250 / 0.18);
}

/* --- Floating Dock Header --- */
.dock-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 40rem;
  width: calc(100% - 2rem);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: dockFadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}

.dock-header:hover {
  box-shadow: 0 20px 50px -12px oklch(0.45 0.12 250 / 0.22);
  transform: translateX(-50%) translateY(-2px);
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dock-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dock-hamburger:hover {
  background: var(--accent);
}

.dock-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.dock-hamburger:hover span:nth-child(1) {
  width: 12px;
  background: var(--primary);
}

.dock-hamburger:hover span:nth-child(2) {
  background: var(--primary);
}

.dock-hamburger:hover span:nth-child(3) {
  width: 12px;
  background: var(--primary);
}

/* Hamburger open state */
.dock-hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.dock-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.dock-hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.dock-header:hover .wordmark {
  letter-spacing: 0.05em;
}

.wordmark-fonal {
  transition: color 0.3s ease;
}

.wordmark-ai {
  color: var(--primary);
  transition: color 0.3s ease;
}

.dock-header:hover .wordmark-fonal {
  color: var(--primary);
}

.dock-header:hover .wordmark-ai {
  color: var(--foreground);
}

/* Dock nav links */
.dock-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dock-nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(0.21 0.045 255 / 0.7);
  transition: color 0.3s ease, background 0.3s ease;
}

.dock-nav-link:hover {
  color: var(--foreground);
  background: oklch(0 0 0 / 0.04);
}

.dock-nav-link.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Dock right buttons */
.dock-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  transition: all 0.2s ease-out;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 25px 50px -12px oklch(0.45 0.12 250 / 0.28);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px oklch(0.45 0.12 250 / 0.35);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid oklch(1 0 0 / 0.5);
}

.btn-ghost:hover {
  background: var(--accent);
}

.btn-ghost:active {
  transform: scale(0.95);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--accent);
}

.btn-outline:active {
  transform: scale(0.95);
}

.btn-lg {
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 9999px;
}

.btn-icon:hover {
  background: var(--accent);
}

.btn-icon:active {
  transform: scale(0.95);
}

.btn-full {
  width: 100%;
}

/* --- Badge / Kicker --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: oklch(1 0 0 / 0.15);
  border: 1px solid oklch(1 0 0 / 0.25);
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

/* --- Cards --- */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.card-glass {
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.card-deep {
  border-radius: var(--radius-3xl);
  padding: 2rem;
}

/* --- Stats Bar --- */
.stats-bar {
  border-radius: var(--radius-3xl);
  padding: 0;
  overflow: hidden;
}

.stats-bar .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  flex: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.stats-divider {
  width: 1px;
  background: oklch(1 0 0 / 0.2);
  align-self: stretch;
}

/* --- Animations --- */
@keyframes dockFadeIn {
  0%   { opacity: 0; filter: blur(12px); transform: translateX(-50%) translateY(-14px) scale(0.96); }
  100% { opacity: 1; filter: blur(0);    transform: translateX(-50%) translateY(0)     scale(1); }
}

@keyframes scaleIn {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.anim-dock { animation: dockFadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-scale { animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; }
.anim-fade-up { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.anim-fade-up-1 { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; opacity: 0; }
.anim-fade-up-2 { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; opacity: 0; }
.anim-fade-up-3 { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards; opacity: 0; }
.anim-fade-in { animation: fadeIn 0.6s ease forwards; opacity: 0; }

@keyframes profileDockIn {
  0%   { opacity: 0; filter: blur(12px); transform: translateY(-14px) scale(0.96); }
  100% { opacity: 1; filter: blur(0);    transform: translateY(0)     scale(1); }
}

/* --- Page Layout --- */
.page-content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 2rem;
  gap: 1.5rem;
  position: relative;
}

/* --- Hero Wordmark --- */
.hero-wordmark {
  position: absolute;
  top: -2%;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.3;
  text-shadow: 0 10px 45px oklch(0.45 0.12 250 / 0.3);
}

.hero-wordmark span {
  white-space: nowrap;
}

.hero-wordmark .hw-fonal {
  color: white;
}

.hero-wordmark .hw-ai {
  color: var(--primary);
}

.hero-wordmark .hw-fonal {
  color: white;
}

.hero-wordmark .hw-ai {
  color: var(--primary);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  max-width: 48rem;
  text-wrap: balance;
}

.hero-headline .highlight {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 36rem;
  color: oklch(1 0 0 / 0.85);
  text-wrap: balance;
}

/* --- Section Styles --- */
.section {
  padding: 5rem 0;
}

.section-dark {
  color: white;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  text-wrap: balance;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -12px oklch(0.45 0.12 250 / 0.15);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-box {
  border-radius: var(--radius-3xl);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: oklch(1 0 0 / 0.8);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  color: oklch(1 0 0 / 0.7);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrap .input-icon {
  position: absolute;
  left: 0.875rem;
  color: var(--muted-foreground);
  pointer-events: none;
  width: 1.1rem;
  height: 1.1rem;
}


.form-input {
  width: 100%;
  padding: 0.65rem 0.875rem 0.65rem 2.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: oklch(1 0 0 / 0.7);
  color: var(--foreground);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(0.6 0.14 250 / 0.12);
}

.form-input.has-error {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px oklch(0.577 0.245 27.325 / 0.12);
}

.form-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.form-error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.375rem;
  display: none;
}

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


/* --- Mobile Responsive --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: oklch(0 0 0 / 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 85vw);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-link:hover {
  background: var(--accent);
}

.mobile-menu-link.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.mobile-menu-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-close:hover {
  background: var(--accent);
}

.mobile-menu-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile hamburger in dock visible only on mobile */
.dock-hamburger-desktop {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .dock-nav {
    display: none;
  }

  .dock-right .btn {
    display: none;
  }

  .dock-hamburger-desktop {
    display: flex;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .hero-headline .text-6xl,
  .hero-headline .text-7xl {
    font-size: 2.5rem;
  }

  .stats-bar {
    flex-direction: column;
  }

  .stats-bar .stat-item {
    padding: 1.25rem 1.5rem;
  }

  .stats-divider {
    width: 100%;
    height: 1px;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .service-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .service-detail-grid .glass {
    order: 0 !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) {
  .hero-headline {
    font-size: 4.5rem;
  }

  .dock-hamburger-desktop {
    display: none;
  }
}

/* --- Smooth scroll anchoring --- */
[id] {
  scroll-margin-top: 6rem;
}

/* ==============================
   COOKIE CONSENT OVERLAY
   ============================== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: oklch(0.2 0.045 255 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cookie-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-card {
  max-width: 30rem;
  width: 100%;
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 25px 60px -15px oklch(0 0 0 / 0.35);
}

.cookie-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.cookie-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cookie-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cookie-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ==============================
   TOAST NOTIFICATIONS
   ============================== */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: min(26rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: oklch(1 0 0 / 0.9);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid oklch(1 0 0 / 0.7);
  box-shadow: 0 20px 50px -12px oklch(0.45 0.12 250 / 0.25);
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: oklch(0.52 0.17 250 / 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.toast-body {
  flex: 1;
  font-weight: 500;
}

.toast-close {
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.toast-close:hover {
  color: var(--foreground);
  background: var(--accent);
}
