:root {
  /* Fonts */
  --font-brand: 'Syne', system-ui, sans-serif;
  --font-syne: 'Outfit', system-ui, sans-serif;
  --font-dm-sans: 'DM Sans', system-ui, sans-serif;
  
  /* Colors from Omnus-core */
  --page-bg: #1d1f24;
  --surface-card: rgba(39, 42, 50, 0.88);
  --surface-soft: #2a2e37;
  --line-soft: rgba(139, 92, 246, 0.28);
  --oi-header-plum: #4a168a;
  --ink-strong: #f1f1f5;
  --ink-muted: #c0bdd4;
  --ink-subtle: #8f8aa8;
  
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-light: rgba(139, 92, 246, 0.18);
  
  --gradient-bg: radial-gradient(circle at top left, rgba(139,92,246,0.12), transparent 30%),
                 radial-gradient(circle at bottom right, rgba(124,58,237,0.1), transparent 30%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-dm-sans);
  background-color: var(--page-bg);
  background-image: var(--gradient-bg);
  color: var(--ink-strong);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Orbs */
.hero-glow-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  animation: hero-glow-drift 12s ease-in-out infinite alternate;
}
.orb-1 {
  top: -50px;
  right: 10%;
}
.orb-2 {
  bottom: 10%;
  left: 5%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}

@keyframes hero-glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-syne);
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9891bb;
  font-family: var(--font-dm-sans);
  margin-bottom: 12px;
}

/* Base Layout Container */
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 38px;
  height: 38px;
}

.logo-text {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.footer-network {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-network a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-network a:hover {
  color: var(--primary);
}

.footer-network a[aria-current="page"],
.footer-network [aria-current="page"] {
  color: var(--ink-strong);
  font-weight: 500;
}

.footer-network-sep {
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
}

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

.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ink-strong);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Card Style (from App.css) */
.card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.62);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.52);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 0;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  flex: 1;
  position: relative;
}

/* Mockup Window */
.mockup-window {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(26,28,34,0.96);
  border-radius: 24px;
}

.mockup-header {
  height: 40px;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-header.win-header {
  justify-content: space-between;
  padding: 0 0 0 16px;
}

.win-title {
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-dm-sans);
  letter-spacing: 0.05em;
}

.win-controls {
  display: flex;
  height: 100%;
}

.win-ctrl {
  width: 46px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s;
  cursor: default;
}

.win-ctrl:hover {
  background: rgba(255,255,255,0.1);
}

.win-ctrl.close:hover {
  background: #e81123;
}

.win-ctrl.minimize::after {
  content: '';
  width: 10px;
  height: 1px;
  background: var(--ink-muted);
}

.win-ctrl.maximize::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink-muted);
}

.win-ctrl.close::before, .win-ctrl.close::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 1px;
  background: var(--ink-muted);
}

.win-ctrl.close::before {
  transform: rotate(45deg);
}

.win-ctrl.close::after {
  transform: rotate(-45deg);
}

.win-ctrl:hover::after, .win-ctrl:hover::before {
  background: #fff;
}
.win-ctrl.maximize:hover::after {
  border-color: #fff;
  background: transparent;
}

.mockup-body {
  display: flex;
  flex: 1;
  padding: 16px;
  gap: 16px;
}

.mockup-sidebar {
  width: 25%;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-nav-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.mockup-nav-item.active {
  background: var(--primary-light);
  color: var(--ink-strong);
}

.mockup-content {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skeleton-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.sk-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
}

.w-1-2 { width: 50%; }
.w-3-4 { width: 75%; }
.w-5-6 { width: 83%; }
.w-full { width: 100%; }
.mt-2 { margin-top: 12px; }

.skeleton-title {
  width: 30%;
  height: 16px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skeleton-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  height: 80px;
}

/* Features */
.features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
}

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

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
}
.bg-purple { filter: none; }                                                                        /* purple - original */
.bg-green  { filter: grayscale(100%) sepia(100%) hue-rotate(20deg) saturate(6) brightness(1.8); }   /* yellow-green */
.bg-blue   { filter: hue-rotate(-50deg) saturate(1.0) brightness(0.95); }                          /* blue */
.bg-orange { filter: hue-rotate(90deg) saturate(1.1) brightness(0.65); }                           /* soft dark red */
.bg-teal   { filter: hue-rotate(-80deg) saturate(1.3) brightness(1.2); }                           /* cyan */
.bg-rose   { filter: hue-rotate(-150deg) saturate(1.0) brightness(0.72); }                         /* dark green */

.feature-card h3 {
  font-size: 22px;
}

.feature-card p {
  color: var(--ink-muted);
  font-size: 15px;
}

/* CTA */
.cta-section {
  margin: 100px 0;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: linear-gradient(180deg, var(--surface-card) 0%, rgba(39, 42, 50, 0.4) 100%);
}

.cta-section h2 {
  font-size: 36px;
}

.cta-section p {
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 600px;
}

.cta-note {
  font-size: 13px !important;
  color: var(--ink-subtle) !important;
  margin-top: 8px;
}

.cta-note a {
  color: var(--primary);
  text-decoration: none;
}

.cta-note a:hover {
  text-decoration: underline;
}

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

/* GitHub star button */
.github-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-strong);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-dm-sans);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.github-star-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.github-star-btn-lg {
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 12px;
}

.github-icon {
  flex-shrink: 0;
}

.github-star-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #c4b5fd;
}

.github-star-btn-lg .github-star-count {
  font-size: 13px;
  padding: 3px 10px;
}

/* Language switcher — same soft pill form as .btn-sm */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.lang-switch::before {
  content: '';
  position: absolute;
  box-sizing: border-box;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 4px);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.45);
  transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.lang-switch[data-active="de"]::before {
  left: calc(50% + 1px);
}

.lang-option {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-subtle);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.lang-option.is-active,
.lang-option[aria-pressed="true"] {
  color: var(--ink-strong);
}

.lang-option:hover {
  color: var(--ink-strong);
}

.lang-option:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.7);
  outline-offset: 2px;
}

body.is-lang-switching .app-main,
body.is-lang-switching .footer-links,
body.is-lang-switching .footer-copy {
  opacity: 0.35;
  transition: opacity 0.16s ease;
}

.app-main,
.footer-links,
.footer-copy {
  transition: opacity 0.22s ease;
}

[data-lang][hidden] {
  display: none !important;
}

html:not([data-lang-ready]) [data-lang] {
  visibility: hidden;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center; /* logo+wordmark centered over the 3 network links */
  justify-self: start;
  gap: 10px;
  width: fit-content;
}

/* Optical: mark/wordmark sits ~1–2px right of the site links */
.footer-brand > .logo {
  transform: translateX(-2px);
}

.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-copy {
  justify-self: end;
  text-align: right;
  color: var(--ink-subtle);
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-self: center;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.reveal-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.reveal-btn:hover {
  color: var(--primary-hover);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .mockup-window {
    width: 100%;
    max-width: 600px;
  }
}
@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .footer-brand,
  .footer-copy,
  .footer-links {
    justify-self: center;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-copy { text-align: center; }
  nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
