/* =========================================================================
   Korotek Theme — main.css
   Ocean Deep design system. Dark theme default; light via html.light class.
   ========================================================================= */

/* -------------------------------------------------------------------------
 * CSS Custom Properties — Dark theme (default)
 * ---------------------------------------------------------------------- */
:root {
  --radius: 0.75rem;

  /* Ocean Deep palette */
  --ocean-50:  oklch(0.97 0.01 230);
  --ocean-100: oklch(0.93 0.02 230);
  --ocean-200: oklch(0.87 0.03 230);
  --ocean-300: oklch(0.76 0.05 225);
  --ocean-400: oklch(0.63 0.08 220);
  --ocean-500: oklch(0.52 0.10 215);
  --ocean-600: oklch(0.43 0.10 215);
  --ocean-700: oklch(0.35 0.09 220);
  --ocean-800: oklch(0.27 0.08 230);
  --ocean-900: oklch(0.20 0.07 240);
  --ocean-950: oklch(0.12 0.05 250);

  --teal-300: oklch(0.75 0.10 195);
  --teal-400: oklch(0.66 0.11 200);
  --teal-500: oklch(0.58 0.12 210);

  /* Semantic tokens */
  --background:        oklch(0.08 0.04 250);
  --foreground:        oklch(0.97 0.01 230);
  --card:              oklch(0.12 0.05 250);
  --card-foreground:   oklch(0.97 0.01 230);
  --popover:           oklch(0.12 0.05 250);
  --popover-foreground:oklch(0.97 0.01 230);
  --primary:           oklch(0.58 0.12 210);
  --primary-foreground:oklch(0.08 0.04 250);
  --secondary:         oklch(0.18 0.06 245);
  --secondary-foreground:oklch(0.97 0.01 230);
  --muted:             oklch(0.18 0.05 245);
  --muted-foreground:  oklch(0.70 0.04 235);
  --accent:            oklch(0.66 0.11 200);
  --accent-foreground: oklch(0.08 0.04 250);
  --destructive:       oklch(0.60 0.20 25);
  --border:            oklch(1 0 0 / 10%);
  --input:             oklch(1 0 0 / 12%);
  --ring:              oklch(0.58 0.12 210);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Radius shortcuts */
  --radius-sm:  calc(var(--radius) - 4px);
  --radius-md:  calc(var(--radius) - 2px);
  --radius-lg:  var(--radius);
  --radius-xl:  calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
}

/* -------------------------------------------------------------------------
 * Light theme override — toggled via html.light class
 * ---------------------------------------------------------------------- */
html.light {
  color-scheme: light;
  --teal-300: oklch(0.50 0.10 205);
  --teal-400: oklch(0.48 0.11 205);
  --teal-500: oklch(0.45 0.12 210);
  --background:        oklch(0.985 0.005 230);
  --foreground:        oklch(0.18 0.05 245);
  --card:              oklch(1 0 0);
  --card-foreground:   oklch(0.18 0.05 245);
  --popover:           oklch(1 0 0);
  --popover-foreground:oklch(0.18 0.05 245);
  --primary:           oklch(0.50 0.12 210);
  --primary-foreground:oklch(0.99 0 0);
  --secondary:         oklch(0.94 0.02 230);
  --secondary-foreground:oklch(0.18 0.05 245);
  --muted:             oklch(0.95 0.015 230);
  --muted-foreground:  oklch(0.42 0.04 240);
  --accent:            oklch(0.50 0.11 200);
  --accent-foreground: oklch(0.99 0 0);
  --border:            oklch(0.2 0.05 245 / 12%);
  --input:             oklch(0.2 0.05 245 / 16%);
  --ring:              oklch(0.50 0.12 210);
}

html.light .card-glass {
  background: oklch(1 0 0 / 80%);
  border-color: oklch(0.2 0.05 245 / 10%);
}

html.light .gradient-hero {
  background:
    radial-gradient(ellipse at 50% 0%, oklch(0.80 0.06 215 / 0.45) 0%, transparent 55%),
    linear-gradient(180deg, var(--background) 0%, oklch(0.96 0.015 230) 100%);
}

html.light .gradient-text {
  background: linear-gradient(135deg, var(--foreground) 0%, var(--teal-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html.light .bg-ocean-800,
html.light section.bg-ocean-800,
html.light footer.bg-ocean-950 {
  background-color: oklch(0.95 0.02 225);
}

html.light .bg-ocean-950,
html.light section.bg-ocean-950 {
  background-color: oklch(0.93 0.025 228);
}

/* -------------------------------------------------------------------------
 * Reset & base
 * ---------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul, ol {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.15;
}

/* -------------------------------------------------------------------------
 * Layout utilities
 * ---------------------------------------------------------------------- */
.container {
  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; } }

.container-md {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container-md { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-md { padding-inline: 2rem; } }

/* -------------------------------------------------------------------------
 * Section spacing
 * ---------------------------------------------------------------------- */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* -------------------------------------------------------------------------
 * Gradient utilities
 * ---------------------------------------------------------------------- */
.gradient-hero {
  background:
    radial-gradient(ellipse at 50% 0%, oklch(0.35 0.09 220 / 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, oklch(0.58 0.12 210 / 0.12) 0%, transparent 45%),
    linear-gradient(180deg, var(--background) 0%, oklch(0.10 0.05 250) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--foreground) 0%, var(--teal-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------------------------------------------------------------
 * Card styles
 * ---------------------------------------------------------------------- */
.card-glass {
  background: oklch(1 0 0 / 4%);
  backdrop-filter: blur(12px);
  border: 1px solid oklch(1 0 0 / 8%);
}

/* -------------------------------------------------------------------------
 * Glow effect
 * ---------------------------------------------------------------------- */
.glow-teal {
  box-shadow: 0 0 40px -10px oklch(0.58 0.12 210 / 0.4);
}

/* -------------------------------------------------------------------------
 * Background color helpers
 * ---------------------------------------------------------------------- */
.bg-background  { background-color: var(--background); }
.bg-card        { background-color: var(--card); }
.bg-ocean-800   { background-color: var(--ocean-800); }
.bg-ocean-950   { background-color: var(--ocean-950); }
.bg-secondary   { background-color: var(--secondary); }
.bg-primary     { background-color: var(--primary); }
.bg-muted       { background-color: var(--muted); }

/* -------------------------------------------------------------------------
 * Text color helpers
 * ---------------------------------------------------------------------- */
.text-foreground       { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary          { color: var(--primary); }
.text-teal-300         { color: var(--teal-300); }
.text-teal-400         { color: var(--teal-400); }
.text-teal-500         { color: var(--teal-500); }
.text-ocean-100        { color: var(--ocean-100); }

/* -------------------------------------------------------------------------
 * Button base
 * ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, opacity 150ms, box-shadow 150ms;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover { background-color: oklch(from var(--primary) calc(l - 0.05) c h); }

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { background-color: var(--card); }

.btn-ghost {
  background-color: transparent;
  color: var(--muted-foreground);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--foreground); background-color: var(--muted); }

.btn-lg {
  height: 3.25rem;
  padding-inline: 2rem;
  font-size: 1rem;
  border-radius: 9999px;
}

.btn-sm {
  height: 2rem;
  padding-inline: 0.875rem;
  font-size: 0.75rem;
  border-radius: 9999px;
}

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

/* -------------------------------------------------------------------------
 * Site wrapper (for sticky footer)
 * ---------------------------------------------------------------------- */
#site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* -------------------------------------------------------------------------
 * Site header
 * ---------------------------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: oklch(from var(--background) l c h / 90%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  height: 3.5rem;
  width: 3.5rem;
  object-fit: contain;
}

/* Desktop nav */
.primary-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) { .primary-nav { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 150ms;
}
.nav-link:hover, .nav-link.active { color: var(--foreground); }

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 150ms;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-trigger:hover, .nav-trigger.open { color: var(--foreground); }

.nav-trigger svg.chevron {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 200ms;
}
.nav-trigger.open svg.chevron { transform: rotate(180deg); }

/* Mega-menu dropdown */
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  display: none;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .mega-menu { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .mega-menu { padding-inline: 2rem; } }

.mega-menu.open { display: block; }

.mega-menu-inner {
  background-color: oklch(from var(--background) l c h / 95%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 0.5rem;
  max-width: 36rem;
  margin-inline: auto;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mega-menu-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .mega-menu-grid { grid-template-columns: 1fr 1fr auto; }
}

.mega-col-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--teal-400);
  margin-bottom: 0.75rem;
}

.mega-col-heading svg { width: 0.875rem; height: 0.875rem; }

.mega-col ul {
  border-left: 1px solid oklch(from var(--primary) l c h / 40%);
  padding-left: 0.75rem;
}

.mega-col ul li a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  transition: color 150ms;
}
.mega-col ul li a:hover { color: var(--foreground); }

/* Header controls */
.header-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) { .header-controls { display: flex; } }

.header-controls-mobile {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .header-controls-mobile { display: none; } }

/* Theme toggle button */
.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: color 150ms;
}
.theme-toggle:hover { color: var(--foreground); }
.theme-toggle svg { width: 1rem; height: 1rem; }

/* Language switcher */
.lang-switcher { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding-inline: 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 150ms;
  cursor: pointer;
}
.lang-btn:hover { color: var(--foreground); }
.lang-btn svg { width: 1rem; height: 1rem; }

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  margin-top: 0.5rem;
  width: 11rem;
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.5);
  display: none;
}
.lang-dropdown.open { display: block; }

.lang-dropdown button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--popover-foreground);
  border-radius: var(--radius-md);
  transition: background-color 150ms;
  text-align: left;
}
.lang-dropdown button:hover { background-color: var(--muted); }
.lang-dropdown button.current svg { width: 1rem; height: 1rem; color: var(--primary); }

/* Mobile menu */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  color: var(--foreground);
}
.mobile-menu-btn svg { width: 1.25rem; height: 1.25rem; }

.mobile-nav {
  display: none;
  border-top: 1px solid oklch(1 0 0 / 6%);
  background-color: var(--background);
  padding: 1rem;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }

@media (min-width: 768px) { .mobile-nav { display: none !important; } }

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background-color 150ms, color 150ms;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: oklch(1 0 0 / 4%);
  color: var(--foreground);
}

.mobile-nav-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
}
.mobile-nav-trigger svg { width: 1rem; height: 1rem; transition: transform 200ms; }
.mobile-nav-trigger.open svg { transform: rotate(180deg); }

.mobile-sub-nav {
  display: none;
  padding-left: 0.75rem;
  padding-bottom: 0.75rem;
}
.mobile-sub-nav.open { display: block; }

.mobile-sub-heading {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--teal-400);
}

.mobile-sub-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 150ms;
}
.mobile-sub-link:hover { color: var(--foreground); }

.mobile-border-l {
  border-left: 1px solid oklch(from var(--primary) l c h / 40%);
  padding-left: 0.75rem;
}

/* -------------------------------------------------------------------------
 * Page top offset (for fixed header)
 * ---------------------------------------------------------------------- */
main { padding-top: 5.5rem; }

/* -------------------------------------------------------------------------
 * Client marquee
 * ---------------------------------------------------------------------- */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee-scroll 40s linear infinite;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4rem;
  white-space: nowrap;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee-fade {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Hero dashboard mockup (browser chrome)
 * ---------------------------------------------------------------------- */
.browser-chrome {
  display: flex;
  height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  background-color: oklch(from var(--secondary) l c h / 70%);
  padding-inline: 1rem;
}

.browser-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
}

.browser-dot-red   { background-color: oklch(from var(--destructive) l c h / 70%); }
.browser-dot-amber { background-color: oklch(from var(--accent) l c h / 60%); }
.browser-dot-green { background-color: oklch(from var(--primary) l c h / 70%); }

/* -------------------------------------------------------------------------
 * Feature modules tab switcher (homepage)
 * ---------------------------------------------------------------------- */
.modules-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .modules-tabs { grid-template-columns: repeat(4, 1fr); }
}

.module-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 4rem;
  padding-inline: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: oklch(from var(--background) l c h / 30%);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms;
  text-align: left;
}

.module-tab svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.module-tab:hover {
  background-color: var(--card);
  color: var(--foreground);
}

.module-tab.active {
  border-color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 10%);
  color: var(--foreground);
}

@media (min-width: 640px) { .module-tab { padding-inline: 1.25rem; } }

.module-panel {
  display: none;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: oklch(from var(--background) l c h / 55%);
  overflow: hidden;
}

.module-panel.active {
  display: grid;
}

@media (min-width: 1024px) {
  .module-panel.active {
    grid-template-columns: 0.88fr 1.12fr;
  }
}

.module-panel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
}

@media (min-width: 640px)  { .module-panel-content { padding: 2.5rem; } }
@media (min-width: 1024px) { .module-panel-content { padding: 3rem; } }

.module-panel-image {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  background-color: oklch(from var(--secondary) l c h / 35%);
  padding: 1.25rem;
}

@media (min-width: 640px)  { .module-panel-image { padding: 2rem; } }
@media (min-width: 1024px) {
  .module-panel-image {
    min-height: 34rem;
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

/* -------------------------------------------------------------------------
 * AI Agents carousel
 * ---------------------------------------------------------------------- */
.agents-carousel-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) { .agents-carousel-wrapper { gap: 1.5rem; } }

.agents-track {
  display: grid;
  min-height: 26rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .agents-track {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }
}

.agent-card {
  display: none;
  flex-direction: column;
  min-height: 22.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
  transition: opacity 300ms, transform 300ms;
}

@media (min-width: 768px) { .agent-card { display: flex; } }

.agent-card.agent-active {
  display: flex;
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.agent-card.agent-side {
  transform: scale(0.94);
  opacity: 0.55;
}

.agent-prompt-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: oklch(from var(--secondary) l c h / 60%);
  padding: 1.25rem;
}

.agent-prompt-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: oklch(from var(--primary) l c h / 15%);
  color: var(--teal-300);
  flex-shrink: 0;
}
.agent-icon svg { width: 1.25rem; height: 1.25rem; }

.agent-response {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  background-color: oklch(from var(--background) l c h / 60%);
  padding: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.agents-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.agent-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.agent-dot span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--muted-foreground);
  display: block;
}

.agent-dot.active span { background-color: var(--primary); }

/* Carousel nav buttons */
.carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  flex-shrink: 0;
  transition: background-color 150ms;
}
.carousel-btn:hover { background-color: var(--muted); }
.carousel-btn svg { width: 1.25rem; height: 1.25rem; }

/* -------------------------------------------------------------------------
 * Partner grid & search
 * ---------------------------------------------------------------------- */
.partner-search-wrap { position: relative; max-width: 28rem; }
.partner-search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.partner-search {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 150ms;
}
.partner-search::placeholder { color: var(--muted-foreground); }
.partner-search:focus { border-color: var(--primary); }

.partner-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px)  { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }

.partner-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--card);
  overflow: hidden;
}

.partner-logo-area {
  display: flex;
  height: 9rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
}

.partner-logo-area.dark { background-color: var(--ocean-900); }

.partner-logo-area img {
  max-height: 5rem;
  max-width: 100%;
  object-fit: contain;
}

.partner-info {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.partner-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.partner-info p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* -------------------------------------------------------------------------
 * FAQ accordion
 * ---------------------------------------------------------------------- */
.faq-item {
  border-radius: var(--radius-2xl);
  border: 1px solid oklch(1 0 0 / 8%);
  background-color: oklch(from var(--card) l c h / 40%);
  transition: border-color 150ms;
  overflow: hidden;
}
.faq-item:hover { border-color: oklch(1 0 0 / 12%); }

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
}

.faq-trigger h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal-400);
  transition: transform 200ms;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.faq-item.open .faq-body { max-height: 40rem; }

.faq-body p {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* -------------------------------------------------------------------------
 * Cookie consent banner
 * ---------------------------------------------------------------------- */
#cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  padding: 0.75rem;
  display: none;
}
#cookie-consent.visible { display: block; }

@media (min-width: 640px) { #cookie-consent { padding: 1rem; } }

.cookie-inner {
  max-width: 56rem;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: oklch(from var(--card) l c h / 95%);
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 640px) { .cookie-inner { padding: 1.5rem; } }

.cookie-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cookie-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

.cookie-text p { font-size: 0.875rem; color: var(--muted-foreground); }
.cookie-text .cookie-title { font-size: 1rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.25rem; }
.cookie-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (min-width: 768px) { .cookie-actions { flex-wrap: nowrap; justify-content: flex-end; } }

.cookie-btn {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms;
}
.cookie-btn-secondary {
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
}
.cookie-btn-secondary:hover { background-color: var(--accent); color: var(--accent-foreground); }
.cookie-btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.cookie-btn-primary:hover { opacity: 0.9; }

/* Cookie preferences panel */
.cookie-prefs { display: none; }
.cookie-prefs.open { display: block; }
.cookie-simple { display: block; }
.cookie-simple.hidden { display: none; }

.pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: oklch(from var(--background) l c h / 40%);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.pref-row.disabled { opacity: 0.8; cursor: default; }
.pref-row p { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.pref-row span { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.125rem; display: block; }
.pref-row input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
 * Section heading component
 * ---------------------------------------------------------------------- */
.section-heading { text-align: center; }
.section-heading.align-left { text-align: left; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-300);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
}

.section-description {
  margin-top: 1rem;
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.align-left .section-description { margin-inline: 0; }

/* -------------------------------------------------------------------------
 * App store badges
 * ---------------------------------------------------------------------- */
.store-badge {
  display: inline-flex;
  height: 3rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  background-color: #000;
  padding-inline: 1rem;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 10%);
  transition: transform 150ms;
  text-decoration: none;
}
.store-badge:hover { transform: scale(1.02); }

.store-badge-label { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-badge-sub   { font-size: 0.625rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.store-badge-name  { font-size: 1rem; font-weight: 600; color: #fff; }
.store-badge svg   { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
#site-footer {
  border-top: 1px solid oklch(1 0 0 / 6%);
  background-color: var(--ocean-950);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .footer-brand { grid-column: span 2; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}
.footer-logo img { height: 5rem; width: 5rem; object-fit: contain; }

.footer-desc {
  margin-top: 1rem;
  max-width: 28rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col ul a {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  transition: color 150ms;
}
.footer-col ul a:hover { color: var(--foreground); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-contact-item svg { width: 1rem; height: 1rem; color: var(--teal-400); flex-shrink: 0; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 6%);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-link {
  color: var(--muted-foreground);
  transition: color 150ms;
  display: inline-flex;
  align-items: center;
}
.social-link:hover { color: var(--foreground); }
.social-link svg { width: 1.25rem; height: 1.25rem; }
.social-link img { height: 1.25rem; width: auto; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.footer-legal a, .footer-legal button {
  transition: color 150ms;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.footer-legal a:hover, .footer-legal button:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-divider {
  display: none;
  width: 1px;
  height: 1rem;
  background-color: oklch(1 0 0 / 20%);
}
@media (min-width: 640px) { .footer-divider { display: inline-block; } }

.footer-store-badges {
  margin-top: 3rem;
  border-top: 1px solid oklch(1 0 0 / 6%);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-store-badges p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: center;
}

.store-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* -------------------------------------------------------------------------
 * Services page — service articles
 * ---------------------------------------------------------------------- */
.service-article {
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem;
  scroll-margin-top: 8rem;
}
.service-article:last-child { border-bottom: none; }

.service-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.25rem;
}

.service-meta svg { width: 2rem; height: 2rem; color: var(--primary); flex-shrink: 0; }

.service-article h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.75rem;
}

@media (min-width: 640px) { .service-article h3 { font-size: 1.875rem; } }

.service-article p { margin-top: 1rem; max-width: 42rem; line-height: 1.75; color: var(--muted-foreground); }

.service-details {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-detail-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  align-items: flex-start;
}
.service-detail-item::before { content: '—'; color: var(--teal-300); flex-shrink: 0; }

/* -------------------------------------------------------------------------
 * Product page — modules deep dive
 * ---------------------------------------------------------------------- */
.module-section { scroll-margin-top: 6rem; }

.feature-deep-dive { margin-top: 3rem; border-top: 1px solid var(--border); }

.feature-entry {
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .feature-grid { grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; } }

.feature-number { font-size: 0.75rem; font-weight: 600; color: var(--teal-300); }
.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}
@media (min-width: 640px) { .feature-title { font-size: 1.5rem; } }

.feature-desc { margin-top: 0.75rem; max-width: 36rem; line-height: 1.75; color: var(--muted-foreground); }

.practice-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.practice-list { display: flex; flex-direction: column; gap: 0.625rem; }

.practice-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: oklch(from var(--foreground) l c h / 90%);
  align-items: flex-start;
}

.practice-dot {
  margin-top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--primary);
  flex-shrink: 0;
}

.feature-image-wrap {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.375rem;
}
@media (min-width: 640px) { .feature-image-wrap { padding: 0.75rem; } }
.feature-image-wrap img { width: 100%; height: auto; border-radius: 2px; display: block; }

/* Process flow */
.flow-figure { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.flow-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 1.75rem;
}
.flow-caption-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
}

/* -------------------------------------------------------------------------
 * Privacy policy content
 * ---------------------------------------------------------------------- */
.policy-section { scroll-margin-top: 7rem; margin-bottom: 3rem; }

.policy-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .policy-section h3 { font-size: 1.5rem; } }

.policy-section p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.policy-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.policy-list li { color: var(--muted-foreground); line-height: 1.75; }
.policy-list li::marker { color: var(--teal-400); }
.policy-list strong { color: var(--foreground); }

/* -------------------------------------------------------------------------
 * Hero image overlay pattern (services, partners pages)
 * ---------------------------------------------------------------------- */
.hero-image-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-image-section img.bg-image {
  position: absolute;
  inset: 0;
  z-index: -20;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to top, var(--background) 0%, oklch(from var(--background) l c h / 80%) 40%, oklch(from var(--background) l c h / 15%) 100%);
}

/* -------------------------------------------------------------------------
 * Portfolio — guest app phone mockup
 * ---------------------------------------------------------------------- */
.phone-mockup {
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background-color: var(--ocean-950);
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.phone-screen {
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(to bottom, var(--ocean-800), var(--ocean-950));
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------------
 * About page — value cards
 * ---------------------------------------------------------------------- */
.value-card {
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  transition: background-color 150ms;
}
.value-card:hover { background-color: oklch(1 0 0 / 6%); }

.value-icon-wrap {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-color: oklch(from var(--primary) l c h / 10%);
  color: var(--primary);
  margin-bottom: 1rem;
}
.value-icon-wrap svg { width: 1.5rem; height: 1.5rem; }

/* -------------------------------------------------------------------------
 * Grid utilities used across pages
 * ---------------------------------------------------------------------- */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
 * Misc utilities
 * ---------------------------------------------------------------------- */
.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-y      { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.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;
}

.hidden { display: none !important; }

/* No-JS graceful degradation: modules panel shows all by default */
.no-js .module-panel { display: grid; }

/* RTL support for Arabic */
[dir="rtl"] .mega-menu { right: auto; left: 0; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
