/* =============================================
   ENERJIONE — Modern Corporate Landing
   ============================================= */

:root,
:root[data-theme="dark"] {
  --bg-0: #05070d;
  --bg-1: #0a0e1a;
  --bg-2: #0f1424;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: #a0a8c0;
  --text-dim: #6b7390;
  --accent: #00d4ff;
  --accent-2: #4d9fff;
  --accent-glow: rgba(0, 212, 255, 0.4);
  --nav-bg: rgba(5, 7, 13, 0.7);
  --footer-bg: rgba(0, 0, 0, 0.3);
  --grid-line: rgba(255, 255, 255, 0.025);
  --particle-rgb: 0, 212, 255;
  --logo-filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.25));

  --grid-color: #F39200;
  --ges-color: #7DBA3F;
  --bess-color: #8B5CF6;
  --microgrid-color: #3B9EE3;
  --ev-color: #E63946;
  --asset-color: #F4B400;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.15);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

:root[data-theme="light"] {
  --bg-0: #f5f7fb;
  --bg-1: #ffffff;
  --bg-2: #eef2f8;
  --surface: rgba(0, 0, 0, 0.02);
  --surface-hover: rgba(0, 0, 0, 0.04);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0a1024;
  --text-muted: #4a5573;
  --text-dim: #7a849c;
  --accent: #0091c2;
  --accent-2: #2563eb;
  --accent-glow: rgba(0, 145, 194, 0.35);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --footer-bg: rgba(238, 242, 248, 0.6);
  --grid-line: rgba(15, 23, 42, 0.05);
  --particle-rgb: 37, 99, 235;
  --logo-filter: none;

  --shadow-glow: 0 0 60px rgba(0, 145, 194, 0.18);
  --shadow-card: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background 0.4s ease, color 0.3s ease;
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========= ANIMATED BACKGROUND ========= */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 212, 255, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(243, 146, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #05070d 0%, #0a0e1a 50%, #05070d 100%);
  transition: background 0.5s ease;
}

:root[data-theme="light"] .bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 145, 194, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(139, 92, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(243, 146, 0, 0.06), transparent 60%),
    linear-gradient(180deg, #f5f7fb 0%, #ffffff 50%, #eef2f8 100%);
}

:root[data-theme="light"] #energy-canvas { opacity: 0.45; }

#energy-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.7;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ========= SIDE RAIL — Timeline Style (desktop/mobile separated) ========= */
:root {
  --rail-width: 150px;
}

@media (min-width: 769px) {
  body { padding-left: var(--rail-width); }
}

.mobile-brand {
  display: none;
}

.rail-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.rail-logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 212, 255, 0.25));
}

/* Logo tema eşlemesi (ters): dark->light logo, light->dark logo */
.logo-dark { display: none; }
.logo-light { display: block; }
:root[data-theme="dark"] .logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: block !important; }
:root[data-theme="light"] .logo-dark { display: block !important; }
:root[data-theme="light"] .logo-light { display: none !important; }

/* ===== Desktop rail ===== */
.side-rail--desktop {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: var(--rail-width);
  background: transparent;
  border: none;
  overflow: hidden;
}

.side-rail--desktop .rail-top {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 130;
  pointer-events: auto;
}

.side-rail--desktop .rail-nav-links {
  list-style: none;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px 0;
}

.side-rail--desktop .rail-nav-links::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--border-strong) 12%,
    var(--border-strong) 88%,
    transparent 100%);
  z-index: 0;
}

.side-rail--desktop .rail-nav-links li {
  width: 100%;
  display: flex;
  align-items: center;
}

.side-rail--desktop .rail-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 56px;
  padding: 0 16px 0 22px;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
  font-family: inherit;
  transition: color 0.25s ease;
}

.side-rail--desktop .rail-link::before {
  content: '';
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--border-strong);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.side-rail--desktop .rail-link .material-symbols-rounded {
  display: none;
}

.side-rail--desktop .rail-label {
  position: static;
  transform: none;
  margin-left: 12px;
  white-space: nowrap;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 55%, transparent);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.side-rail--desktop .rail-link:hover .rail-label {
  color: color-mix(in srgb, var(--text) 85%, transparent);
}

.side-rail--desktop .rail-link:hover::before {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border-strong));
  background: color-mix(in srgb, var(--accent) 45%, var(--bg-0));
  transform: scale(1.15);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.side-rail--desktop .rail-link.is-active::before {
  background: color-mix(in srgb, var(--accent) 68%, #0a0e1a);
  border-color: color-mix(in srgb, var(--accent) 72%, #1f2a44);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
  width: 14px;
  height: 14px;
  min-width: 14px;
}

.side-rail--desktop .rail-link.is-active .rail-label {
  color: var(--text);
  font-weight: 700;
}

/* ===== Mobile rail drawer ===== */
.side-rail--mobile {
  display: none;
}

.side-rail--mobile .rail-top {
  position: static;
  padding: 16px 16px 10px 72px;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.side-rail--mobile .rail-logo .logo-img {
  height: 34px;
}

.side-rail--mobile .rail-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px 10px 14px;
  width: 100%;
}

.side-rail--mobile .rail-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
}

.side-rail--mobile .rail-link .material-symbols-rounded {
  display: inline-flex;
  font-size: 17px;
}

.side-rail--mobile .rail-link::before,
.side-rail--mobile .rail-label::before {
  content: none;
}

.side-rail--mobile .rail-label {
  position: static;
  transform: none;
  margin-left: 0;
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
  pointer-events: auto;
  color: inherit;
}

.side-rail--mobile .rail-link:hover,
.side-rail--mobile .rail-link.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: rgba(255, 255, 255, 0.04);
}

.side-rail--mobile .rail-link.rail-link-cta {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

@media (max-width: 768px) {
  .side-rail--desktop {
    display: none;
  }

  /* Mobil üst header şeridi — scroll'da görünür olur */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 118;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
  }
  body.is-scrolled::before {
    opacity: 1;
    border-bottom-color: var(--border);
  }

  .mobile-brand {
    position: fixed;
    top: 16px;
    left: 68px;
    z-index: 132;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    transition: opacity 0.2s ease;
  }

  .mobile-brand .logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 4px 18px rgba(0, 212, 255, 0.22));
  }

  .side-rail--mobile {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 135;
    background: rgba(6, 10, 20, 0.96);
    border-right: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
  }

  .side-rail--mobile.is-open {
    transform: translateX(0);
  }

  /* Drawer açıkken dıştaki logo gizlensin (üst üste binme önlenir) */
  body.rail-open .mobile-brand {
    opacity: 0;
    pointer-events: none;
  }

  .side-rail--mobile .rail-nav-links {
    flex: 1;
    overflow-y: auto;
  }

  /* Login + Demo butonları drawer'ın en altına sabit */
  .rail-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 10px 16px;
    border-top: 1px solid var(--border);
  }
  .rail-foot .rail-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
  }
  .rail-foot .rail-link .material-symbols-rounded { font-size: 18px; }
  .rail-foot .rail-link-accent {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border-strong);
  }
  .rail-foot .rail-link-cta {
    color: #001428;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .rail-foot { display: none; }
}

@media (min-width: 769px) {
  .side-rail--mobile {
    display: none !important;
  }
}

/* Light mode adaptasyonu */
:root[data-theme="light"] .side-rail--desktop .rail-link::before {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .side-rail--desktop .rail-label {
  color: rgba(15, 23, 42, 0.5);
}

:root[data-theme="light"] .side-rail--desktop .rail-link:hover .rail-label {
  color: rgba(15, 23, 42, 0.8);
}

:root[data-theme="light"] .side-rail--desktop .rail-link.is-active .rail-label {
  color: rgba(15, 23, 42, 0.96);
}

:root[data-theme="light"] .side-rail--desktop .rail-nav-links::before {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(15, 23, 42, 0.15) 12%,
    rgba(15, 23, 42, 0.15) 88%,
    transparent 100%);
}

:root[data-theme="light"] .side-rail--mobile {
  background: rgba(255, 255, 255, 0.97);
  border-right-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .mobile-rail-backdrop {
  background: rgba(15, 23, 42, 0.3);
}

:root[data-theme="light"] .rail-toggle {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .side-rail--mobile .rail-link:hover,
:root[data-theme="light"] .side-rail--mobile .rail-link.is-active {
  background: rgba(15, 23, 42, 0.05);
}

.top-actions {
  position: fixed;
  top: 18px;
  right: 112px;
  z-index: 102;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
}

@media (max-width: 768px) {
  .top-actions {
    display: none;
  }
}

/* Eski rail-bottom aktif değil */
.rail-bottom {
  display: none !important;
}

/* mobile rail-toggle + backdrop — moved after base .rail-toggle definition, see below */

@media (max-width: 560px) {
  .rail-logo .logo-img {
    height: 36px;
  }
}

.floating-controls {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0;
}

@media (max-width: 768px) {
  .floating-controls {
    top: 16px;
    right: 14px;
  }
}

.rail-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 140;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.rail-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.mobile-rail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 119;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.mobile-rail-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .rail-toggle {
    display: inline-flex;
  }
  .mobile-rail-backdrop {
    display: block;
  }
}

/* ========= NAVIGATION ========= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  filter: var(--logo-filter);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-logo { position: relative; }
.nav-logo:hover .logo-img { transform: scale(1.02); }
.navbar.scrolled .logo-img { height: 36px; }
.logo-img-footer { height: 48px; }

/* Logo tema eşlemesi yukarıda merkezi tanımlandı */

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }

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

/* ----- Language switch (round button + dropdown) ----- */
.lang-switch {
  position: relative;
}

.lang-current {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.lang-current:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.lang-current .flag {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: none;
  object-fit: cover;
  preserveAspectRatio: xMidYMid slice;
}
.lang-current .flag rect,
.lang-current .flag circle,
.lang-current .flag polygon,
.lang-current .flag path,
.lang-current .flag g { /* SVG'lerin viewBox'a göre büyümesi için */ }
:root[lang="tr"] .lang-current .flag-tr,
:root[lang="en"] .lang-current .flag-en,
:root[lang="de"] .lang-current .flag-de { display: block; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.92);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--nav-bg);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 110;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.lang-switch.is-open .lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.lang-dropdown .lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  transition: all 0.2s ease;
}
.lang-dropdown .lang-btn svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.2s ease;
}
.lang-dropdown .lang-btn:hover {
  border-color: var(--accent);
  transform: scale(1.06);
}
.lang-dropdown .lang-btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
:root[data-theme="dark"] .theme-toggle .icon-sun { transform: translateY(0) rotate(0); opacity: 1; }
:root[data-theme="dark"] .theme-toggle .icon-moon { transform: translateY(28px) rotate(-90deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle .icon-sun { transform: translateY(-28px) rotate(90deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle .icon-moon { transform: translateY(0) rotate(0); opacity: 1; }

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}
.nav-login .material-symbols-rounded {
  font-size: 18px;
}
.nav-login:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.nav-login svg { color: currentColor; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001428;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.nav-cta .material-symbols-rounded {
  font-size: 18px;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
:root[data-theme="light"] .nav-cta { color: #ffffff; }

/* ========= HERO ========= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 32px 40px;
  position: relative;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease 0.1s both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}
.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #4d9fff 40%, #a855f7 80%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Başlık satırı aynı anda hem gradient hem fade-in animasyonu taşımalı
   (tek 'animation' tanımı diğerini ezmesin) */
.title-line.gradient-text {
  animation: fadeInUp 1s ease forwards, gradientShift 8s ease infinite;
  animation-delay: 0.4s, 0s;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001428;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
:root[data-theme="light"] .btn-primary { color: #ffffff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.btn-lg { padding: 18px 36px; font-size: 15px; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: nowrap;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
  max-width: 1000px;
  margin: 0 auto;
}

.stat { text-align: center; flex: 1; min-width: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff, #a0a8c0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 32px auto 0;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  opacity: 0;
  animation: fadeInUp 1s ease 1.4s forwards;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 8px 12px;
}
.hero-scroll:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.3s ease;
}
.hero-scroll:hover .mouse { border-color: var(--accent); }

.mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: wheelScroll 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  box-shadow: 0 0 8px var(--accent);
}

@keyframes wheelScroll {
  0% { transform: translateX(-50%) translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

.scroll-arrow {
  animation: arrowBounce 1.8s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 1; }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ========= PILLS SECTION ========= */
.pills-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.pill:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text);
  transform: translateY(-2px);
}

.pill-icon {
  font-size: 18px;
  color: var(--accent);
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

/* ========= SECTION HEADER ========= */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========= PRODUCTS ========= */
.products { padding: 20px 0 100px; position: relative; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  isolation: isolate;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.product-card.is-tilting {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.5), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.08), rgba(255,255,255,0.02));
  box-shadow: 0 30px 80px -20px rgba(var(--brand-rgb), 0.4),
              0 0 0 1px rgba(var(--brand-rgb), 0.3);
}
.product-card:hover::before { opacity: 1; }

.product-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.25), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}
.product-card:hover .product-glow { opacity: 1; }

.product-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(var(--brand-rgb), 0.4));
  transition: transform 0.3s ease;
}
.product-card:hover .product-logo-img {
  transform: scale(1.06);
}

.product-name-label {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand);
  line-height: 1;
  text-transform: uppercase;
}

.product-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-mark {
  width: 38px;
  height: 38px;
  background: var(--brand);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(var(--brand-rgb), 0.4);
}

.product-name { display: flex; flex-direction: column; }

.prod-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.prod-title b { color: var(--brand); font-weight: 700; }

.prod-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.5px;
}

.product-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  margin-bottom: 24px;
  position: relative;
}

.product-icon {
  width: 90px;
  height: 90px;
  color: var(--brand);
  filter: drop-shadow(0 0 20px rgba(var(--brand-rgb), 0.5));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-icon {
  transform: scale(1.15) rotate(-3deg);
}

.product-icon-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(var(--brand-rgb), 0.45));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-icon-img {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0 0 28px rgba(var(--brand-rgb), 0.7));
}

.product-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 28px;
  flex: 1;
  align-content: start;
}

.product-features li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(var(--brand-rgb), 0.6);
}

.product-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: var(--brand);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.product-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s;
}
.product-btn:hover::before { left: 100%; }
.product-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(var(--brand-rgb), 0.5);
}
.product-btn svg { transition: transform 0.3s; }
.product-btn:hover svg { transform: translateX(4px); }

/* ========= PLATFORM FEATURES ========= */
.platform {
  padding: 20px 0 100px;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.feature-card:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::after { transform: translateX(100%); }

.feature-icon-box {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(77, 159, 255, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  transition: all 0.4s;
}
.feature-icon-box svg { width: 28px; height: 28px; }

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========= INTEGRATIONS DIAGRAM ========= */
.integrations {
  padding: 20px 0 100px;
  position: relative;
}

.diagram {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
}

.diagram-nodes {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
}

.node {
  flex: 1;
  min-width: 100px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, color-mix(in srgb, var(--node-color) 14%, transparent), transparent 75%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid color-mix(in srgb, var(--node-color) 45%, transparent);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--node-color);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 20px -8px var(--node-color);
}

.node span { font-size: 26px; line-height: 1; }
.node .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.node-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--node-color) 60%, transparent));
  transition: transform 0.3s ease;
}
.node:hover .node-logo {
  transform: scale(1.12) rotate(-3deg);
}
.node::after {
  content: attr(data-label);
  display: block;
}

.node:hover {
  transform: translateY(-6px) scale(1.03);
  background:
    radial-gradient(ellipse 100% 90% at 50% 0%, color-mix(in srgb, var(--node-color) 22%, transparent), transparent 75%),
    rgba(255, 255, 255, 0.05);
  border-color: color-mix(in srgb, var(--node-color) 70%, transparent);
  box-shadow: 0 14px 44px -10px var(--node-color);
}

.diagram-lines {
  position: absolute;
  top: 100px;
  left: 40px;
  right: 40px;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}

.dline {
  stroke-dasharray: 4 8;
  animation: dash 3s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -100; }
}

.diagram-platform {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: 30px 48px;
  background:
    radial-gradient(ellipse 120% 120% at 50% 0%, rgba(0, 212, 255, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.45);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.1),
    0 20px 60px -15px rgba(0, 212, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.platform-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--accent);
  animation: platformPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0;
  pointer-events: none;
}
.platform-pulse-2 {
  animation-delay: 1.5s;
}
@keyframes platformPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

.platform-logo {
  height: 46px;
  width: auto;
  display: block;
  filter: var(--logo-filter) drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

/* ===== Light mode: diagram + platform card refinements ===== */
:root[data-theme="light"] .diagram {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .node {
  background: #ffffff;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--node-color) 25%, transparent),
              0 0 0 1px color-mix(in srgb, var(--node-color) 35%, transparent);
}
:root[data-theme="light"] .node:hover {
  background: #ffffff;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--node-color) 40%, transparent);
}

:root[data-theme="light"] .diagram-platform {
  background: linear-gradient(135deg, #ffffff, #f0f5ff);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 145, 194, 0.18),
              0 0 0 1px rgba(0, 145, 194, 0.35);
}

:root[data-theme="light"] .platform-pulse {
  border-color: var(--accent);
}

:root[data-theme="light"] .protocol-chip {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
:root[data-theme="light"] .protocol-chip:hover {
  background: rgba(0, 145, 194, 0.06);
  border-color: var(--accent);
}

/* Light mode: dline (connector animation) — daha koyu renk */
:root[data-theme="light"] .diagram-lines {
  opacity: 0.7;
}
:root[data-theme="light"] .diagram-lines path {
  stroke: rgba(0, 145, 194, 0.5) !important;
}

/* Light mode genel surface fix — entegrasyon bölümü background */
:root[data-theme="light"] .integrations,
:root[data-theme="light"] .platform,
:root[data-theme="light"] .products {
  background: transparent;
}

/* Light mode: feature kartları */
:root[data-theme="light"] .feature-card {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
:root[data-theme="light"] .feature-card:hover {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 145, 194, 0.12);
}

/* Light mode: pill section ve cta box */
:root[data-theme="light"] .pills-section {
  background: rgba(255, 255, 255, 0.4);
}
:root[data-theme="light"] .pill {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
:root[data-theme="light"] .pill:hover {
  background: rgba(0, 145, 194, 0.06);
}

:root[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #ffffff, #f0f7fc);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* Light mode: hero stats kutusu */
:root[data-theme="light"] .hero-stats {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
:root[data-theme="light"] .stat-num {
  background: linear-gradient(180deg, #0a1024, #4a5573);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Light mode: ürün kartları */
:root[data-theme="light"] .product-card {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
:root[data-theme="light"] .product-card:hover {
  background: #ffffff;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--brand) 18%, transparent);
}

.protocols {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.protocol-chip {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.protocol-chip:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* ========= REFERANSLAR ŞERİDİ ========= */
.references-section {
  padding: 80px 0 60px;
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.references-header {
  text-align: center;
  margin-bottom: 36px;
}
.references-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 14px;
  line-height: 1.2;
}

.references-marquee {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.references-marquee::before,
.references-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.references-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: refMarquee 50s linear infinite;
}
.references-marquee:hover .references-track {
  animation-play-state: paused;
}

@keyframes refMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ref-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-width: 180px;
  padding: 14px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ref-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.ref-logo span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #2a3142;
  white-space: nowrap;
}
.ref-logo img {
  max-height: 100%;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.ref-logo:hover img {
  opacity: 1;
}

:root[data-theme="light"] .ref-logo {
  border-color: rgba(15, 23, 42, 0.1);
}
:root[data-theme="light"] .ref-logo:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

/* Referans istatistikleri */
.references-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.ref-stat {
  text-align: center;
  min-width: 140px;
}
.ref-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ref-stat-num span {
  font-size: 22px;
  opacity: 0.8;
}
.ref-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.ref-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Light mode */
:root[data-theme="light"] .ref-logo {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
:root[data-theme="light"] .ref-logo:hover {
  background: rgba(0, 145, 194, 0.04);
}
:root[data-theme="light"] .references-stats {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

@media (max-width: 600px) {
  .ref-logo { min-width: 140px; height: 56px; padding: 0 18px; }
  .ref-logo span { font-size: 15px; }
  .references-track { gap: 28px; }
  .references-stats { gap: 18px; padding: 22px; }
  .ref-stat-divider { display: none; }
  .ref-stat-num { font-size: 28px; }
  .ref-stat-num span { font-size: 18px; }
}

/* Legacy side-rail hard-fix blocks removed: desktop/mobile are now scoped as .side-rail--desktop and .side-rail--mobile */

/* ========= BLOG ========= */
.blog-section { padding: 40px 0 60px; }
.blog-track-wrap { position: relative; display: flex; align-items: center; gap: 12px; }

/* Şerit modu (3+ yazı) — yatay kaydırma */
.blog-track,
.blog-grid {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 14px; flex: 1; scrollbar-width: thin;
}
.blog-track::-webkit-scrollbar,
.blog-grid::-webkit-scrollbar { height: 6px; }
.blog-track::-webkit-scrollbar-thumb,
.blog-grid::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 100px; }

/* Az yazı modu (1-2) — ortalı grid, geniş kart */
.blog-track-wrap.is-few { justify-content: center; }
.blog-track.is-grid,
.blog-grid.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 480px));
  gap: 24px;
  overflow: visible;
  justify-content: center;
}

.blog-nav {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-1, rgba(10,14,26,0.7));
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.blog-nav:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }

.blog-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.blog-track.is-grid .blog-card,
.blog-grid.is-grid .blog-card { flex: initial; width: 100%; }
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 24px 60px -24px rgba(0,212,255,0.5);
}
.blog-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(139,92,246,0.12));
  overflow: hidden;
}
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-cover.no-img { display: flex; align-items: center; justify-content: center; }
.blog-card-cover.no-img img { display: none; }
.blog-card-cover.no-img .material-symbols-rounded { font-size: 44px; color: var(--accent); opacity: 0.5; }
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.blog-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); color: var(--accent);
}
.blog-date { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.blog-card-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  line-height: 1.35; margin-bottom: 10px; letter-spacing: -0.3px;
}
.blog-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.blog-card:hover .blog-card-more svg { transform: translateX(4px); }
.blog-card-more svg { transition: transform 0.3s ease; }
.blog-all-wrap { text-align: center; margin-top: 40px; }

:root[data-theme="light"] .blog-card { background: #ffffff; box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
:root[data-theme="light"] .blog-nav { background: #ffffff; }

@media (max-width: 600px) {
  .blog-nav { display: none; }
  .blog-card { flex-basis: 280px; width: 280px; }
  .blog-track.is-grid,
  .blog-grid.is-grid { grid-template-columns: 1fr; }
}

/* ========= DUYURULAR ========= */
.announce-section { padding: 60px 0 20px; }
.announce-track-wrap { position: relative; display: flex; align-items: center; gap: 12px; }

/* Boş durum — bu dilde duyuru/yazı yokken gösterilen mesaj */
.section-empty {
  flex: 1;
  width: 100%;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted, #8a94a6);
  font-size: 1.05rem;
  line-height: 1.6;
  border: 1px dashed var(--border-strong, rgba(255,255,255,0.12));
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

/* Şerit modu (3+ duyuru) — yatay kaydırma */
.announce-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 14px; flex: 1; scrollbar-width: thin;
}
.announce-track::-webkit-scrollbar { height: 6px; }
.announce-track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 100px; }

/* Az duyuru modu (1-2) — ortalı grid, geniş kart */
.announce-track-wrap.is-few { justify-content: center; }
.announce-track.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 520px));
  justify-content: center;
  gap: 20px;
  overflow: visible;
  padding: 6px 2px;
  max-width: 1080px;
  margin: 0 auto;
}

.announce-card {
  --sev-color: var(--accent);
  scroll-snap-align: start;
  flex: 0 0 340px;
  width: 340px;
  height: 240px;                 /* SABİT yükseklik */
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 140% 80% at 0% 0%, color-mix(in srgb, var(--sev-color) 9%, transparent), transparent 55%),
    rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.announce-track.is-grid .announce-card { flex: initial; width: 100%; }
.announce-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sev-color) 50%, var(--border));
  box-shadow: 0 20px 50px -20px var(--sev-color);
}
.announce-card:focus-visible { outline: 2px solid var(--sev-color); outline-offset: 2px; }
.announce-card.sev-warning { --sev-color: #f4b400; }
.announce-card.sev-critical { --sev-color: #ff4d6d; }
.announce-card.sev-success { --sev-color: #7DBA3F; }

.announce-card-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sev-color) 16%, transparent);
  color: var(--sev-color);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sev-color) 30%, transparent);
}
.announce-card-icon .material-symbols-rounded { font-size: 22px; font-variation-settings: 'FILL' 1; }
.announce-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.announce-sev {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 100px;
  background: color-mix(in srgb, var(--sev-color) 14%, transparent); color: var(--sev-color);
}
.announce-date { font-size: 12px; color: var(--text-dim); white-space: nowrap; margin-left: auto; }
.announce-card-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
  margin-bottom: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Önizleme: düz metin, kırpılmış (kart yüksekliği sabit kalsın) */
.announce-card-preview {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
  flex: 1; min-height: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.announce-card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--sev-color); flex-shrink: 0;
}
.announce-card:hover .announce-card-more svg { transform: translateX(4px); }
.announce-card-more svg { transition: transform 0.3s ease; }

.announce-nav {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.announce-nav:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) {
  .announce-nav { display: none; }
  .announce-card { flex-basis: 280px; width: 280px; }
  .announce-track.is-grid { grid-template-columns: 1fr; }
}

:root[data-theme="light"] .announce-card { background: #ffffff; box-shadow: 0 4px 16px rgba(15,23,42,0.05); }

/* Duyuru detay modalı */
.announce-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  --sev-color: var(--accent);
}
.announce-modal.sev-warning { --sev-color: #f4b400; }
.announce-modal.sev-critical { --sev-color: #ff4d6d; }
.announce-modal.sev-success { --sev-color: #7DBA3F; }
.announce-modal-backdrop { position: absolute; inset: 0; background: rgba(0,4,12,0.7); backdrop-filter: blur(8px); animation: fadeIn 0.25s ease both; }
.announce-modal-box {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--sev-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.announce-modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.announce-modal-close:hover { color: var(--text); border-color: var(--sev-color); transform: rotate(90deg); }
.announce-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.announce-modal-head > div { display: flex; align-items: center; gap: 10px; }
.announce-modal-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 18px; }
.announce-modal-body { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.announce-modal-body :first-child { margin-top: 0; }
.announce-modal-body img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; }
.announce-modal-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.announce-modal-body th, .announce-modal-body td { border: 1px solid var(--border); padding: 8px 10px; }

/* ========= CTA ========= */
.cta-section { padding: 100px 0 140px; }

.cta-box {
  position: relative;
  padding: 80px 60px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.cta-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }

/* Split layout (sol: içerik, sağ: harita) */
.cta-box.cta-box-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  padding: 60px 56px;
}
.cta-box.cta-box-split .cta-content {
  max-width: none;
  margin: 0;
}
.cta-box.cta-box-split .cta-title { text-align: left; }
.cta-box.cta-box-split .cta-buttons { justify-content: flex-start; }

/* Inline booking widget (iletişim sağ taraf) */
.cta-booking {
  position: relative;
  z-index: 2;
  background: rgba(10, 14, 26, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px -20px rgba(0, 212, 255, 0.35);
  /* Sabit içerik alanı — slots açılınca büyüme */
  overflow: hidden;
}
:root[data-theme="light"] .cta-booking { background: rgba(255, 255, 255, 0.6); }
.cta-booking-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cta-booking-head .material-symbols-rounded {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02121b;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.cta-booking-title { font-size: 15px; font-weight: 700; color: var(--text); }
.cta-booking-sub { font-size: 12px; color: var(--text-dim); }

/* Body: takvim ve slot panel'i yan yana, slide-switch — sabit yükseklik */
.cta-booking-body { position: relative; height: 380px; }
.cta-booking-pane:not(.is-hidden) {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.cta-booking-pane {
  transition: opacity 0.25s, transform 0.25s;
}
.cta-booking-pane.is-hidden {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transform: translateX(-10px);
}

/* Slot paneli — takvim yerine geçer, aynı yükseklik */
.cta-booking-slots {
  display: flex; flex-direction: column;
}
.cta-booking-slots-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.cta-booking-back {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-booking-back:hover { border-color: var(--accent); color: var(--accent); }
.cta-booking-slots-title { font-size: 13px; font-weight: 600; color: var(--text-muted); flex: 1; }
.cta-booking-slots-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  overflow-y: auto; padding-right: 4px;
  flex: 1;
  align-content: start;
}
.cta-booking-slots-grid::-webkit-scrollbar { width: 6px; }
.cta-booking-slots-grid::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 100px; }
.cta-booking-slot {
  padding: 8px 0; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.cta-booking-slot:hover { border-color: var(--accent); background: rgba(0,212,255,0.1); color: var(--accent); }

/* Slot başlığındaki seçili ürün chip'i */
.cta-product-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  border: 1px solid var(--brand);
  margin-right: 4px;
  vertical-align: middle;
}

/* Inline widget ürün seçim listesi */
.cta-booking-products-grid {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; padding-right: 4px; flex: 1; align-content: start;
}
.cta-booking-product {
  padding: 12px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all 0.2s; text-align: left;
  font-family: var(--font-display);
}
.cta-booking-product:hover {
  border-color: var(--brand); color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

@media (max-width: 900px) {
  .cta-box.cta-box-split {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .cta-box.cta-box-split .cta-title { text-align: center; }
  .cta-box.cta-box-split .cta-buttons { justify-content: center; }
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 20px 0;
}

.cta-text {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========= FOOTER ========= */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
}

/* ========= MODAL ========= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 12, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease both;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.08);
  padding: 32px 36px;
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: rotate(90deg);
}
.modal-header {
  margin-bottom: 20px;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -1px;
  margin: 10px 0 6px;
}
.modal-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ========= FORM ========= */
.demo-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.field em { color: #ff4d6d; font-style: normal; }
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-group {
  border: none;
  padding: 0;
  margin: 0;
}
.field-group legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.field-group legend em { color: #ff4d6d; font-style: normal; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 540px) { .checkbox-grid { grid-template-columns: repeat(2, 1fr); } }

.check-card {
  position: relative;
  cursor: pointer;
}
.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.check-card:hover span {
  border-color: var(--brand);
  color: var(--brand);
}
.check-card input:checked + span {
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand) inset, 0 6px 18px color-mix(in srgb, var(--brand) 25%, transparent);
}
.check-card input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-status {
  font-size: 13px;
  padding: 0;
  min-height: 20px;
  color: var(--text-muted);
}
.form-status.is-success {
  padding: 12px 14px;
  background: rgba(125, 186, 63, 0.1);
  border: 1px solid rgba(125, 186, 63, 0.4);
  color: #b4e077;
  border-radius: 10px;
}
.form-status.is-error {
  padding: 12px 14px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.4);
  color: #ff8a93;
  border-radius: 10px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}
.form-actions .btn { padding: 12px 22px; font-size: 14px; }
.form-actions .btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ========= REVEAL ANIMATIONS ========= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.products-grid .product-card.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-box { padding: 56px 28px; }
  .diagram { padding: 40px 20px; }
  .diagram-nodes { gap: 8px; }
  .node { min-width: 80px; height: 70px; font-size: 9px; }
  .node span { font-size: 18px; }
  .hero-stats { gap: 18px; padding: 20px; flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-num { font-size: 28px; }
  .stat { min-width: 120px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }
  .hero { padding: 100px 20px 60px; }
  .nav-cta { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .products, .platform, .integrations { padding: 80px 0; }
  .product-features { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 20px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .pills { gap: 8px; }
  .pill { font-size: 12px; padding: 10px 14px; }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ====== APPOINTMENT PRODUCT SELECT ====== */
.appt-product-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: center;
}
.appt-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.appt-product-card {
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.appt-product-card:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 22%, transparent);
}
.appt-product-card--wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .appt-product-grid { grid-template-columns: 1fr; } }

.appt-step-back {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 13px; font-weight: 600;
  padding: 0 0 12px; transition: color 0.2s;
}
.appt-step-back:hover { color: var(--accent); }

.appt-empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 12px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ====== APPOINTMENT CALENDAR ====== */
.appt-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.appt-cal-title { font-weight: 700; font-size: 15px; }
.appt-cal-nav {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.appt-cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.appt-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.appt-cal-day-label {
  font-size: 11px; font-weight: 600; text-align: center;
  color: var(--text-dim); padding: 4px 0;
}
.appt-cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; border-radius: 8px;
  color: var(--text-dim); transition: background 0.2s, color 0.2s;
}
.appt-cal-cell.is-past { opacity: 0.3; }
.appt-cal-cell.is-available {
  color: var(--text); background: var(--surface); cursor: pointer;
  position: relative;
}
.appt-cal-cell.is-available::after {
  content: ''; position: absolute; bottom: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.appt-cal-cell.is-available:hover { background: rgba(0,212,255,0.15); color: var(--accent); }
.appt-cal-cell.is-selected { background: var(--accent); color: #02121b; font-weight: 700; }
.appt-cal-cell.is-selected::after { background: #02121b; }

.appt-slots-wrap { margin-top: 20px; }
.appt-slots-title { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.appt-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.appt-slot-btn {
  padding: 8px 18px; border-radius: 100px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.appt-slot-btn:hover { border-color: var(--accent); background: rgba(0,212,255,0.1); color: var(--accent); }

.appt-selected-product {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px; margin-bottom: 10px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
}
.appt-selected-product .material-symbols-rounded { font-size: 18px; color: var(--brand); }

.appt-selected-badge {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.25);
  font-size: 14px;
}
.appt-selected-badge .material-symbols-rounded { font-size: 20px; color: var(--accent); }
.appt-selected-badge b { color: var(--accent); font-size: 16px; }

.form-actions--single { justify-content: center; }
