/* ═══════════════════════════════════════════════════════════
   GeneratorImp — Design System & Global Styles
   Premium dark theme · Swiss digital studio
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Brand colors */
  --cyan: #00f5ff;
  --purple: #a855f7;
  --blue: #3b82f6;
  --rose: #f472b6;
  --orange: #f97316;
  --magenta: #ec4899;
  
  /* Product accents */
  --moments-accent: #f472b6;
  --sites-accent: #00f5ff;
  --assist-accent: #a855f7;
  --studio-accent: #f97316;
  
  /* Surfaces */
  --bg: #050810;
  --bg-alt: #080c16;
  --card: #0d1117;
  --card-hover: #111827;
  --border: #1e2535;
  --border-light: #2a3548;
  
  /* Text */
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--cyan), var(--purple));
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(0,245,255,0.08) 0%, transparent 60%);
  
  /* Spacing */
  --section-y: clamp(80px, 10vw, 140px);
  --container-x: clamp(20px, 5vw, 80px);
  --max-w: 1200px;
  --max-w-narrow: 800px;
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  
  /* Radii */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* Selection */
::selection { background: rgba(0,245,255,0.2); color: var(--text); }

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-x);
}

.container--narrow { max-width: var(--max-w-narrow); }

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--alt { background: var(--bg-alt); }

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

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.eyebrow--product { padding: 6px 16px; border-radius: 100px; background: rgba(0,245,255,0.08); border: 1px solid rgba(0,245,255,0.15); }

h1, .h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; line-height: 1.25; }
h4, .h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

.hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #000;
  box-shadow: 0 0 30px rgba(0,245,255,0.15);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,245,255,0.25);
}

.btn--outline {
  border: 1px solid var(--border-light);
  color: var(--text);
  background: rgba(13,17,23,0.5);
}
.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,245,255,0.05);
}

.btn--ghost {
  color: var(--cyan);
  padding: 10px 0;
}
.btn--ghost::after {
  content: '→';
  transition: transform var(--duration) var(--ease);
}
.btn--ghost:hover::after { transform: translateX(4px); }

.btn-group { display: flex; flex-wrap: wrap; gap: 16px; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card--clickable { cursor: pointer; display: block; }
.card--clickable:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Product card glow on hover */
.card[data-product="moments"]:hover { border-color: rgba(244,114,182,0.3); box-shadow: 0 20px 60px rgba(244,114,182,0.05); }
.card[data-product="sites"]:hover { border-color: rgba(0,245,255,0.3); box-shadow: 0 20px 60px rgba(0,245,255,0.05); }
.card[data-product="assist"]:hover { border-color: rgba(168,85,247,0.3); box-shadow: 0 20px 60px rgba(168,85,247,0.05); }
.card[data-product="studio"]:hover { border-color: rgba(249,115,22,0.3); box-shadow: 0 20px 60px rgba(249,115,22,0.05); }

/* ── Status Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.badge--coming-soon {
  background: rgba(0,245,255,0.08);
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.2);
}

.badge--preview {
  background: rgba(168,85,247,0.08);
  color: var(--purple);
  border: 1px solid rgba(168,85,247,0.2);
}

/* ── Product Icon ── */
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.product-icon--moments { background: rgba(244,114,182,0.1); color: var(--moments-accent); border: 1px solid rgba(244,114,182,0.2); }
.product-icon--sites { background: rgba(0,245,255,0.1); color: var(--sites-accent); border: 1px solid rgba(0,245,255,0.2); }
.product-icon--assist { background: rgba(168,85,247,0.1); color: var(--assist-accent); border: 1px solid rgba(168,85,247,0.2); }
.product-icon--studio { background: rgba(249,115,22,0.1); color: var(--studio-accent); border: 1px solid rgba(249,115,22,0.2); }

/* ── Feature Tags ── */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(13,17,23,0.5);
}

/* ── Feature List (for product pages) ── */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.feature-list__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.feature-list__text h4 { margin-bottom: 4px; }
.feature-list__text p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ── Flow Steps ── */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.flow-step {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  counter-increment: step;
  position: relative;
}

.flow-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.875rem;
  background: var(--gradient-brand);
  color: #000;
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Principles ── */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.principle {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.principle h3 { margin-bottom: 12px; }
.principle p { color: var(--text-secondary); font-size: 0.95rem; }

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-x);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.header__logo-icon { font-size: 1.4rem; }
.header__logo-accent { color: var(--cyan); }

.header__nav { display: flex; align-items: center; gap: 8px; }

.header__nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--duration) var(--ease);
}
.header__nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* Products dropdown */
.header__dropdown {
  position: relative;
}

.header__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--duration) var(--ease);
}
.header__dropdown-toggle:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.header__dropdown-toggle svg {
  width: 14px; height: 14px;
  transition: transform var(--duration) var(--ease);
}

.header__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.header__dropdown:hover .header__dropdown-menu,
.header__dropdown:focus-within .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__dropdown:hover .header__dropdown-toggle svg { transform: rotate(180deg); }

.header__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.header__dropdown-menu a:hover { background: rgba(255,255,255,0.04); color: var(--text); }

.header__dropdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Language selector */
.lang-selector {
  position: relative;
  margin-left: 8px;
}

.lang-selector__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13,17,23,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lang-selector__btn:hover { border-color: var(--border-light); color: var(--text); }

.lang-selector__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 10;
}

.lang-selector.open .lang-selector__menu { opacity: 1; visibility: visible; }

.lang-selector__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  color: var(--text-secondary);
}
.lang-selector__menu button:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.lang-selector__menu button.active { color: var(--cyan); }

/* Mobile menu */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.header__mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 32px var(--container-x);
  z-index: 999;
  overflow-y: auto;
}
.header__mobile-menu.open { display: block; }

.header__mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.header__mobile-menu a:hover { color: var(--text); }

.header__mobile-products {
  padding-left: 20px;
}
.header__mobile-products a {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  padding: calc(72px + var(--section-y)) 0 var(--section-y);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,245,255,0.06) 0%, rgba(168,85,247,0.03) 40%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 24px; }
.hero .hero-desc { margin: 0 auto 40px; text-align: center; }
.hero .btn-group { justify-content: center; }

/* Product hero (left-aligned) */
.hero--product {
  text-align: left;
}
.hero--product .hero-desc { margin: 0 0 40px; }
.hero--product .btn-group { justify-content: flex-start; }

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

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}
.footer__col a:hover { color: var(--cyan); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   FORM
   ══════════════════════════════════════ */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group label .required { color: var(--cyan); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.1);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-select { appearance: none; cursor: pointer; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.form-success {
  text-align: center;
  padding: 48px 32px;
  background: var(--card);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: var(--radius-lg);
}

.form-success h3 { color: var(--cyan); margin-bottom: 12px; }
.form-success p { color: var(--text-secondary); }

/* ══════════════════════════════════════
   SECTION TEXT PAGES (Privacy, Terms, Impressum)
   ══════════════════════════════════════ */
.text-page {
  padding: calc(72px + 60px) 0 var(--section-y);
}

.text-page h1 { margin-bottom: 40px; }
.text-page h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.text-page h3 { margin: 28px 0 12px; font-size: 1.2rem; }
.text-page p { color: var(--text-secondary); margin-bottom: 16px; max-width: 720px; }
.text-page ul { padding-left: 24px; margin-bottom: 16px; }
.text-page ul li { color: var(--text-secondary); margin-bottom: 6px; position: relative; padding-left: 16px; }
.text-page ul li::before { content: '—'; position: absolute; left: 0; color: var(--cyan); }

/* ══════════════════════════════════════
   LIVE IMP (Assist page only)
   ══════════════════════════════════════ */
.live-imp-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-in-delay-1 { transition-delay: 0.1s; }
  .fade-in-delay-2 { transition-delay: 0.2s; }
  .fade-in-delay-3 { transition-delay: 0.3s; }
  .fade-in-delay-4 { transition-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .lang-selector { display: none; }
  .header__burger { display: flex; }
  
  .header__mobile-menu .lang-selector--mobile { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--border); }
  .header__mobile-menu .lang-selector--mobile button { padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border); color: var(--text-secondary); }
  .header__mobile-menu .lang-selector--mobile button.active { border-color: var(--cyan); color: var(--cyan); }
  
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; justify-content: center; }
}
