/* Neo Atti – 2026 Landing Page Design System + themes */

:root,
html[data-theme="dark"] {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.18);
  --color-text: #e8e8ed;
  --color-text-muted: #9a9aaf;
  --color-primary: #0079ef;
  --color-primary-light: #3d9bff;
  --color-primary-dark: #015fbd;
  --color-accent: #6366f1;
  --color-gradient-start: #0079ef;
  --color-gradient-end: #6366f1;
  --color-on-primary: #ffffff;
  --color-link: #3d9bff;
  --color-link-hover: #ffffff;
  --color-hover-bg: rgba(255, 255, 255, 0.06);
  --color-header-bg: rgba(10, 10, 15, 0.82);
  --color-header-bg-scrolled: rgba(10, 10, 15, 0.95);
  --color-tag-bg: rgba(0, 121, 239, 0.14);
  --color-icon-bg: rgba(0, 121, 239, 0.12);
  --color-star: #fbbf24;
  --shadow-glow: 0 0 60px rgba(0, 121, 239, 0.15);
  --btn-shadow: 0 4px 20px rgba(0, 121, 239, 0.35);
  --btn-shadow-hover: 0 8px 30px rgba(0, 121, 239, 0.45);
  --hero-text: #f4f6fb;
  --hero-text-muted: rgba(244, 246, 251, 0.8);
  --hero-image-opacity: 0.5;
  --hero-badge-bg: rgba(255, 255, 255, 0.08);
  --hero-badge-border: rgba(255, 255, 255, 0.16);
  --hero-stat-bg: rgba(8, 12, 24, 0.72);
  --hero-stat-border: rgba(255, 255, 255, 0.22);
  --hero-stat-value: #9ec9ff;
  --hero-stat-label: #f2f5fa;
  --hero-ghost-border: rgba(255, 255, 255, 0.28);
  --hero-ghost-hover-bg: rgba(255, 255, 255, 0.1);
  --hero-grid-line: rgba(255, 255, 255, 0.02);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --container: 1140px;
}

html[data-theme="light"] {
  --color-bg: #e8ecf2;
  --color-bg-elevated: #f0f3f7;
  --color-bg-card: rgba(15, 23, 42, 0.06);
  --color-border: rgba(15, 23, 42, 0.14);
  --color-border-hover: rgba(15, 23, 42, 0.24);
  --color-text: #0c1222;
  --color-text-muted: #3d4a5c;
  --color-primary: #005bbf;
  --color-primary-light: #0066d6;
  --color-primary-dark: #00408a;
  --color-accent: #4338ca;
  --color-gradient-start: #005bbf;
  --color-gradient-end: #4338ca;
  --color-on-primary: #f8fafc;
  --color-link: #0052ad;
  --color-link-hover: #003d82;
  --color-hover-bg: rgba(15, 23, 42, 0.07);
  --color-header-bg: rgba(232, 236, 242, 0.92);
  --color-header-bg-scrolled: rgba(240, 243, 247, 0.97);
  --color-tag-bg: rgba(0, 91, 191, 0.12);
  --color-icon-bg: rgba(0, 91, 191, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 91, 191, 0.1);
  --btn-shadow: 0 4px 18px rgba(0, 91, 191, 0.26);
  --btn-shadow-hover: 0 8px 26px rgba(0, 91, 191, 0.32);
  --hero-text: #0c1222;
  --hero-text-muted: #3d4a5c;
  --hero-image-opacity: 0.35;
  --hero-badge-bg: rgba(15, 23, 42, 0.06);
  --hero-badge-border: rgba(15, 23, 42, 0.14);
  --hero-stat-bg: rgba(255, 255, 255, 0.72);
  --hero-stat-border: rgba(15, 23, 42, 0.14);
  --hero-stat-value: #005bbf;
  --hero-stat-label: #3d4a5c;
  --hero-ghost-border: rgba(15, 23, 42, 0.22);
  --hero-ghost-hover-bg: rgba(15, 23, 42, 0.07);
  --hero-grid-line: rgba(15, 23, 42, 0.04);
}

html[data-theme="night"] {
  --color-bg: #0b1220;
  --color-bg-elevated: #111a2e;
  --color-bg-card: rgba(148, 163, 184, 0.06);
  --color-border: rgba(148, 163, 184, 0.16);
  --color-border-hover: rgba(148, 163, 184, 0.28);
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-primary: #38bdf8;
  --color-primary-light: #7dd3fc;
  --color-primary-dark: #0284c7;
  --color-accent: #818cf8;
  --color-gradient-start: #0ea5e9;
  --color-gradient-end: #6366f1;
  --color-on-primary: #0b1220;
  --color-link: #7dd3fc;
  --color-link-hover: #e0f2fe;
  --color-hover-bg: rgba(148, 163, 184, 0.08);
  --color-header-bg: rgba(11, 18, 32, 0.88);
  --color-header-bg-scrolled: rgba(11, 18, 32, 0.96);
  --color-tag-bg: rgba(56, 189, 248, 0.12);
  --color-icon-bg: rgba(56, 189, 248, 0.12);
  --shadow-glow: 0 0 50px rgba(56, 189, 248, 0.12);
  --btn-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
  --btn-shadow-hover: 0 8px 28px rgba(14, 165, 233, 0.4);
  --hero-image-opacity: 0.52;
}

html[data-theme="sepia"] {
  --color-bg: #f4ecd8;
  --color-bg-elevated: #faf4e6;
  --color-bg-card: rgba(92, 64, 32, 0.06);
  --color-border: rgba(92, 64, 32, 0.16);
  --color-border-hover: rgba(92, 64, 32, 0.28);
  --color-text: #3b2f1e;
  --color-text-muted: #6b5638;
  --color-primary: #a35b1a;
  --color-primary-light: #c26b22;
  --color-primary-dark: #7a4212;
  --color-accent: #8b5a2b;
  --color-gradient-start: #a35b1a;
  --color-gradient-end: #8b5a2b;
  --color-on-primary: #fff8ef;
  --color-link: #8a4b14;
  --color-link-hover: #5c3010;
  --color-hover-bg: rgba(92, 64, 32, 0.08);
  --color-header-bg: rgba(244, 236, 216, 0.92);
  --color-header-bg-scrolled: rgba(250, 244, 230, 0.97);
  --color-tag-bg: rgba(163, 91, 26, 0.12);
  --color-icon-bg: rgba(163, 91, 26, 0.12);
  --color-star: #c48a1a;
  --shadow-glow: 0 0 40px rgba(163, 91, 26, 0.12);
  --btn-shadow: 0 4px 18px rgba(163, 91, 26, 0.28);
  --btn-shadow-hover: 0 8px 26px rgba(163, 91, 26, 0.35);
  --hero-text: #3b2f1e;
  --hero-text-muted: #6b5638;
  --hero-image-opacity: 0.35;
  --hero-badge-bg: rgba(92, 64, 32, 0.06);
  --hero-badge-border: rgba(92, 64, 32, 0.16);
  --hero-stat-bg: rgba(250, 244, 230, 0.8);
  --hero-stat-border: rgba(92, 64, 32, 0.16);
  --hero-stat-value: #a35b1a;
  --hero-stat-label: #6b5638;
  --hero-ghost-border: rgba(92, 64, 32, 0.24);
  --hero-ghost-hover-bg: rgba(92, 64, 32, 0.08);
  --hero-grid-line: rgba(92, 64, 32, 0.05);
}

html[data-theme="nord"] {
  --color-bg: #eceff4;
  --color-bg-elevated: #e5e9f0;
  --color-bg-card: rgba(46, 52, 64, 0.05);
  --color-border: rgba(76, 86, 106, 0.18);
  --color-border-hover: rgba(76, 86, 106, 0.3);
  --color-text: #2e3440;
  --color-text-muted: #4c566a;
  --color-primary: #5e81ac;
  --color-primary-light: #81a1c1;
  --color-primary-dark: #4c6a8f;
  --color-accent: #88c0d0;
  --color-gradient-start: #5e81ac;
  --color-gradient-end: #88c0d0;
  --color-on-primary: #eceff4;
  --color-link: #4c6a8f;
  --color-link-hover: #2e3440;
  --color-hover-bg: rgba(46, 52, 64, 0.06);
  --color-header-bg: rgba(236, 239, 244, 0.92);
  --color-header-bg-scrolled: rgba(229, 233, 240, 0.97);
  --color-tag-bg: rgba(94, 129, 172, 0.14);
  --color-icon-bg: rgba(94, 129, 172, 0.14);
  --shadow-glow: 0 0 40px rgba(94, 129, 172, 0.15);
  --btn-shadow: 0 4px 18px rgba(94, 129, 172, 0.28);
  --btn-shadow-hover: 0 8px 26px rgba(94, 129, 172, 0.35);
  --hero-text: #2e3440;
  --hero-text-muted: #4c566a;
  --hero-image-opacity: 0.35;
  --hero-badge-bg: rgba(46, 52, 64, 0.05);
  --hero-badge-border: rgba(76, 86, 106, 0.18);
  --hero-stat-bg: rgba(229, 233, 240, 0.85);
  --hero-stat-border: rgba(76, 86, 106, 0.18);
  --hero-stat-value: #5e81ac;
  --hero-stat-label: #4c566a;
  --hero-ghost-border: rgba(76, 86, 106, 0.28);
  --hero-ghost-hover-bg: rgba(46, 52, 64, 0.06);
  --hero-grid-line: rgba(46, 52, 64, 0.05);
}

html[data-theme="cyberpunk"] {
  --color-bg: #0a0014;
  --color-bg-elevated: #140022;
  --color-bg-card: rgba(255, 0, 170, 0.06);
  --color-border: rgba(0, 255, 247, 0.18);
  --color-border-hover: rgba(0, 255, 247, 0.35);
  --color-text: #f5f0ff;
  --color-text-muted: #c4b5e0;
  --color-primary: #ff2bd6;
  --color-primary-light: #00fff7;
  --color-primary-dark: #c4009a;
  --color-accent: #7c3aed;
  --color-gradient-start: #ff2bd6;
  --color-gradient-end: #00fff7;
  --color-on-primary: #0a0014;
  --color-link: #00fff7;
  --color-link-hover: #ffffff;
  --color-hover-bg: rgba(0, 255, 247, 0.08);
  --color-header-bg: rgba(10, 0, 20, 0.88);
  --color-header-bg-scrolled: rgba(10, 0, 20, 0.96);
  --color-tag-bg: rgba(255, 43, 214, 0.14);
  --color-icon-bg: rgba(0, 255, 247, 0.1);
  --color-star: #ffe566;
  --shadow-glow: 0 0 50px rgba(255, 43, 214, 0.2);
  --btn-shadow: 0 4px 22px rgba(255, 43, 214, 0.35);
  --btn-shadow-hover: 0 8px 30px rgba(0, 255, 247, 0.3);
  --hero-image-opacity: 0.55;
}

/* System → light / dark via OS */
@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    --color-bg: #e8ecf2;
    --color-bg-elevated: #f0f3f7;
    --color-bg-card: rgba(15, 23, 42, 0.06);
    --color-border: rgba(15, 23, 42, 0.14);
    --color-border-hover: rgba(15, 23, 42, 0.24);
    --color-text: #0c1222;
    --color-text-muted: #3d4a5c;
    --color-primary: #005bbf;
    --color-primary-light: #0066d6;
    --color-primary-dark: #00408a;
    --color-accent: #4338ca;
    --color-gradient-start: #005bbf;
    --color-gradient-end: #4338ca;
    --color-on-primary: #f8fafc;
    --color-link: #0052ad;
    --color-link-hover: #003d82;
    --color-hover-bg: rgba(15, 23, 42, 0.07);
    --color-header-bg: rgba(232, 236, 242, 0.92);
    --color-header-bg-scrolled: rgba(240, 243, 247, 0.97);
    --color-tag-bg: rgba(0, 91, 191, 0.12);
    --color-icon-bg: rgba(0, 91, 191, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 91, 191, 0.1);
    --btn-shadow: 0 4px 18px rgba(0, 91, 191, 0.26);
    --btn-shadow-hover: 0 8px 26px rgba(0, 91, 191, 0.32);
    --hero-text: #0c1222;
    --hero-text-muted: #3d4a5c;
    --hero-image-opacity: 0.35;
    --hero-badge-bg: rgba(15, 23, 42, 0.06);
    --hero-badge-border: rgba(15, 23, 42, 0.14);
    --hero-stat-bg: rgba(255, 255, 255, 0.72);
    --hero-stat-border: rgba(15, 23, 42, 0.14);
    --hero-stat-value: #005bbf;
    --hero-stat-label: #3d4a5c;
    --hero-ghost-border: rgba(15, 23, 42, 0.22);
    --hero-ghost-hover-bg: rgba(15, 23, 42, 0.07);
    --hero-grid-line: rgba(15, 23, 42, 0.04);
  }
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card: rgba(255, 255, 255, 0.04);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.18);
    --color-text: #e8e8ed;
    --color-text-muted: #9a9aaf;
    --color-primary: #0079ef;
    --color-primary-light: #3d9bff;
    --color-primary-dark: #015fbd;
    --color-accent: #6366f1;
    --color-gradient-start: #0079ef;
    --color-gradient-end: #6366f1;
    --color-on-primary: #ffffff;
    --color-link: #3d9bff;
    --color-link-hover: #ffffff;
    --color-hover-bg: rgba(255, 255, 255, 0.06);
    --color-header-bg: rgba(10, 10, 15, 0.82);
    --color-header-bg-scrolled: rgba(10, 10, 15, 0.95);
    --color-tag-bg: rgba(0, 121, 239, 0.14);
    --color-icon-bg: rgba(0, 121, 239, 0.12);
    --shadow-glow: 0 0 60px rgba(0, 121, 239, 0.15);
    --btn-shadow: 0 4px 20px rgba(0, 121, 239, 0.35);
    --btn-shadow-hover: 0 8px 30px rgba(0, 121, 239, 0.45);
    --hero-text: #f4f6fb;
    --hero-text-muted: rgba(244, 246, 251, 0.8);
    --hero-image-opacity: 0.5;
    --hero-badge-bg: rgba(255, 255, 255, 0.08);
    --hero-badge-border: rgba(255, 255, 255, 0.16);
    --hero-stat-bg: rgba(8, 12, 24, 0.72);
    --hero-stat-border: rgba(255, 255, 255, 0.22);
    --hero-stat-value: #9ec9ff;
    --hero-stat-label: #f2f5fa;
    --hero-ghost-border: rgba(255, 255, 255, 0.28);
    --hero-ghost-hover-bg: rgba(255, 255, 255, 0.1);
    --hero-grid-line: rgba(255, 255, 255, 0.02);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-link-hover);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: var(--color-on-primary);
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  color: var(--color-on-primary);
}

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

.btn-ghost:hover {
  background: var(--color-hover-bg);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--color-header-bg-scrolled);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 1rem;
}

.nav-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
  border-radius: 0;
}

/* White lockup on dark themes; invert for light surfaces */
html[data-theme="light"] .logo img,
html[data-theme="sepia"] .logo img {
  filter: invert(1);
}

.logo:hover { color: var(--color-text); }

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--color-text);
}

.nav-desktop a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.header-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile a:hover { background: var(--color-hover-bg); color: var(--color-text); }

/* Theme picker */
.theme-picker {
  position: relative;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.theme-toggle:hover,
.theme-toggle[aria-expanded="true"] {
  border-color: var(--color-border-hover);
  background: var(--color-hover-bg);
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.theme-toggle-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform var(--transition);
}

.theme-toggle[aria-expanded="true"] .theme-toggle-chevron {
  transform: rotate(180deg);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 1100;
}

.theme-menu[hidden] {
  display: none;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.theme-option:hover,
.theme-option:focus-visible {
  background: var(--color-hover-bg);
  outline: none;
}

.theme-option[aria-checked="true"] {
  background: var(--color-tag-bg);
}

.theme-option-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.theme-option-desc {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.theme-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  border: 1px solid var(--color-border);
}

.theme-swatch[data-swatch="light"] { background: #e8ecf2; }
.theme-swatch[data-swatch="dark"] { background: #0a0a0f; }
.theme-swatch[data-swatch="system"] {
  background: linear-gradient(90deg, #f5f7fb 50%, #0a0a0f 50%);
}
.theme-swatch[data-swatch="night"] { background: #0b1220; }
.theme-swatch[data-swatch="sepia"] { background: #f4ecd8; }
.theme-swatch[data-swatch="nord"] { background: #88c0d0; }
.theme-swatch[data-swatch="cyberpunk"] {
  background: linear-gradient(135deg, #ff2bd6, #00fff7);
}

.theme-toggle-label {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.nav-mobile .theme-picker {
  padding: 0.75rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile .theme-toggle {
  width: 100%;
  justify-content: space-between;
}

.nav-mobile .theme-menu {
  position: static;
  margin-top: 0.5rem;
  box-shadow: none;
  min-width: 0;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--hero-image-opacity);
  background:
    url('../images/hero-neoatti.png')
    no-repeat left center / cover;
  filter: grayscale(0.08) saturate(1.05);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 80%);
  mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 80%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 42%, var(--color-bg) 88%),
    linear-gradient(180deg, transparent 55%, var(--color-bg) 100%);
}

.hero-bg::after {
  content: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -10%;
  right: -10%;
  animation: float 8s ease-in-out infinite;
  opacity: 0.2;
  z-index: 1;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  bottom: 10%;
  left: -15%;
  animation: float 10s ease-in-out infinite reverse;
  opacity: 0.15;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  color: var(--hero-text);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hero-text-muted);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  color: var(--hero-text);
}

.hero-title-main {
  display: block;
}

.hero-title-second {
  display: block;
  transform: translateX(-0.65em);
}

.hero-title-third {
  display: block;
  transform: translateX(-0.65em);
}


.hero-subtitle strong {
  color: var(--hero-text);
}

/* Rotating word uses theme gradient (see .word-rotator-word) */
.hero .word-rotator-word {
  color: var(--color-primary-light);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-second .word-rotator-viewport {
  text-align: left;
}

.hero-title-second .word-rotator-word {
  text-align: left;
}

.hero-title-second .word-rotator-word.is-hidden,
.hero-title-second .word-rotator-word.is-enter,
.hero-title-second .word-rotator-word.is-exit {
  left: 0;
  right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rotating hero word – Chrome-safe dual-buffer */
.word-rotator {
  display: inline-block;
  vertical-align: bottom;
  text-align: left;
  margin: 0;
}

.word-rotator-viewport {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15;
  text-align: left;
  position: relative;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
}

.word-rotator-word {
  display: block;
  height: 1.15em;
  line-height: 1.15em;
  white-space: nowrap;
  text-align: left;
  width: 100%;
  color: var(--color-primary-light);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.65s ease;
}

.word-rotator-word.is-visible {
  position: relative;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.word-rotator-word.is-hidden {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  pointer-events: none;
}

.word-rotator-word.is-enter {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
}

.word-rotator-word.is-exit {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(0, -110%, 0);
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--hero-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--hero-stat-bg);
  border: 1px solid var(--hero-stat-border);
  border-radius: var(--radius-lg);
  min-width: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hero-stat-value);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--hero-stat-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-actions .btn-ghost {
  color: var(--hero-text);
  border-color: var(--hero-ghost-border);
}

.hero-actions .btn-ghost:hover {
  background: var(--hero-ghost-hover-bg);
  color: var(--hero-text);
  border-color: var(--hero-ghost-border);
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-tag-bg);
  color: var(--color-primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-glow);
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.about-text strong { color: var(--color-text); }
.about-hint { font-size: 0.9375rem; margin-top: 1.5rem !important; }

/* GEO definition block */
.geo {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.geo-definition {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.geo-definition h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.75rem 0 1rem;
}

.geo-definition > p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.geo-definition strong {
  color: var(--color-text);
}

.geo-facts {
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.geo-facts li {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-primary);
}

/* Steps */
.steps {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.step-card:hover {
  border-color: var(--color-border-hover);
  transform: translateX(4px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1;
}

.step-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-body p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.steps-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-icon-bg);
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Testimonials */
.testimonials {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin: 0;
}

.stars {
  color: var(--color-star);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary-light);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-bg-card);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover { background: var(--color-hover-bg); }

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Newsletter */
.newsletter {
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('../images/hero-neoatti.png')
    no-repeat center center / cover;
  opacity: 0.12;
  pointer-events: none;
}

.newsletter .container {
  position: relative;
  z-index: 1;
}

.newsletter-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--color-tag-bg), var(--color-icon-bg));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 640px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.newsletter-icon {
  color: var(--color-primary-light);
  margin-bottom: 1rem;
}

.newsletter-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.newsletter-card > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.newsletter-privacy {
  margin-top: 1rem !important;
  font-size: 0.8125rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-col > p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.footer-email {
  display: inline-block;
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

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

.footer-nav a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: all var(--transition);
  z-index: 900;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--color-primary-dark);
}

.scroll-top[hidden] { display: none; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
  .theme-toggle-label { display: inline; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .about-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

@media (max-width: 767px) {
  .nav-desktop { display: none; }
}

html {
  color-scheme: dark;
}

html[data-theme="light"],
html[data-theme="sepia"],
html[data-theme="nord"] {
  color-scheme: light;
}

html[data-theme="cyberpunk"],
html[data-theme="night"],
html[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] { color-scheme: light; }
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] { color-scheme: dark; }
}

/* Blog */
.blog-hero {
  padding-top: calc(var(--header-height) + 3rem);
}

.blog-list {
  display: grid;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-card {
  padding: 0;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-elevated, var(--color-bg));
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.blog-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--color-text);
}

.blog-card-title a:hover {
  color: var(--color-link);
}

.blog-excerpt {
  color: var(--color-text-muted);
  font-size: 0.975rem;
  margin-bottom: 1rem;
}

.blog-read {
  font-weight: 600;
  font-size: 0.875rem;
}

.post {
  padding-top: calc(var(--header-height) + 2.5rem);
}

.post-container {
  max-width: 740px;
}

.post-back {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}

.post-cover {
  margin: 0 0 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.post-cover img {
  width: 100%;
  max-height: min(28rem, 70vh);
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-body {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.post-body figure,
.post-figure {
  margin: 1.75rem 0;
}

.post-body img,
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border);
}

.post-body figcaption,
.post-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

.post-body h2 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.post-body p,
.post-body ul {
  margin-bottom: 1.1rem;
}

.post-body ul {
  padding-left: 1.25rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body strong {
  color: var(--color-text);
}

.post-note {
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.post-cta {
  margin-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .word-rotator-word { transition: none !important; }
}
