/* =========================================
   Emiso • Global Styles (master)
   ========================================= */

:root {
  --bg: #050509;
  --bg-soft: #070814;
  --bg-softer: #0b0c1a;

  --text: #f9fafb;
  --text-muted: #9ca3af;

  --gold: #ffd37f;
  --gold-soft: rgba(255, 211, 127, 0.20);

  --accent: #7dd3fc;

  /* Borders (clean + consistent) */
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.42);

  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.70);
  --shadow-subtle: 0 16px 40px rgba(15, 23, 42, 0.80);

  --header-height: 72px;
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;

  /* One background source for all pages */
  background: radial-gradient(circle at top, #0b1224 0%, #020617 55%, #020617 100%);
  color: var(--text);
}

/* =========================================
   LANGUAGE TOGGLE
   ========================================= */

.lang { display: inline; }

html[data-lang="de"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-de { display: none !important; }

/* =========================================
   PAGE LAYOUT
   ========================================= */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* =========================================
   HEADER
   ========================================= */

.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;

  backdrop-filter: blur(22px);
  background:
    radial-gradient(circle at top left, rgba(255, 211, 127, 0.06) 0, transparent 38%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12) 0, transparent 40%),
    rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.90);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.60);
}

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

.logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-center {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.92rem;
}

.header-center a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.header-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  transition: width 0.18s ease-out;
}

.header-center a:hover { color: var(--text); }
.header-center a:hover::after { width: 100%; }

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

.lang-select {
  background: transparent;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  outline: none;
}

.lang-select option {
  background: #020617;
  color: #f9fafb;
}

.btn-login {
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.3rem;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* =========================================
   MOBILE MENU
   ========================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 30;
}

.mobile-menu-inner {
  width: 260px;
  max-width: 82%;
  background: rgba(10, 14, 27, 0.98);
  border-left: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.85);
  padding: 1.5rem 1.25rem 1.75rem;
  transform: translateX(100%);
  transition: transform 0.18s ease-out;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.show { pointer-events: auto; }
.mobile-menu.show .mobile-menu-inner { transform: translateX(0%); }

.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
}

.mobile-auth-button {
  width: 100%;
  text-align: center;
}

/* =========================================
   MAIN
   ========================================= */

.main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

.main-home {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-home { min-height: 44vh; }

.hero-text h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0 0 0.9rem;
}

.hero-text p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Pill */
.hero-pill {
  display: flex;
  justify-content: flex-end;
}

.hero-pill-inner {
  background: radial-gradient(circle at top, rgba(255, 211, 127, 0.25) 0, rgba(15, 23, 42, 0.95) 45%, #020617 100%);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.9rem;
  max-width: 360px;
  width: 100%;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
}

.pill-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.pill-text {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: #e5e7eb;
}

/* =========================================
   SECTION INTRO + GRID
   ========================================= */

.section-intro {
  margin-top: 3.2rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-intro h2 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
}

.section-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.section-grid {
  margin-top: 2.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.feature-grid { margin-bottom: 0.5rem; }

/* Cards */
.card {
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.12) 0, rgba(15, 23, 42, 0.96) 40%, #020617 100%);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(31, 41, 55, 0.90);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  border-color: rgba(148, 163, 184, 0.65);
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   BUTTONS
   ========================================= */

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-primary {
  background: radial-gradient(circle at top left, #fbbf24 0, #eab308 30%, #f97316 100%);
  color: #0b0b10;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(251, 191, 36, 0.48);
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary {
  background: rgba(15, 23, 42, 0.90);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover { border-color: rgba(249, 250, 251, 0.85); }

/* =========================================
   FOOTER
   ========================================= */

.footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0.9rem 1.25rem 1.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  padding-top: 0.8rem;
}

.footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
}

.footer-dot { opacity: 0.5; }

/* =========================================
   AUTH MODAL
   ========================================= */

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 9, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.auth-modal-backdrop.open { display: flex; }

.auth-modal {
  background: var(--bg-soft);
  border-radius: 1rem;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  max-width: 420px;
  width: 90%;
  padding: 1.75rem 1.6rem 1.8rem;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.auth-modal h2 {
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.auth-modal-sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-tab-active {
  border-color: var(--gold);
  color: var(--gold);
  background: radial-gradient(circle at top, #fff2cc 0, rgba(255, 211, 127, 0.12) 40%, transparent 100%);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form-active { display: flex; }

.auth-form label span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.auth-form input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-softer);
  color: var(--text);
  font-size: 0.9rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 211, 127, 0.5);
}

.auth-submit { margin-top: 0.4rem; }

.auth-divider {
  margin: 1rem 0 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-social-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-softer);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-social-btn.auth-google {
  background: #ffffff;
  color: #111827;
}

.auth-social-btn.auth-apple {
  background: #0f172a;
  color: #f9fafb;
}

.has-auth-open .emie-widget {
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   EMIE FLOATING WIDGET
   ========================================= */

.emie-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 35;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 127, 0.50);
  background: radial-gradient(circle at top left, rgba(255, 211, 127, 0.18) 0, rgba(15, 23, 42, 0.98) 45%, #020617 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  cursor: pointer;
}

.emie-widget-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #facc15 0, #f97316 45%, #111827 100%);
  overflow: hidden;
}

.emie-widget-inner {
  width: 18px;
  height: 18px;
  border-radius: 40%;
  border: 1px solid rgba(15, 23, 42, 0.90);
  background: rgba(15, 23, 42, 0.40);
}

.emie-widget-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.20);
  animation: emie-pulse 1.8s ease-out infinite;
}

@keyframes emie-pulse {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.15); }
}

.emie-widget-text { text-align: left; }

.emie-widget-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.emie-widget-line {
  font-size: 0.78rem;
  color: #e5e7eb;
  max-width: 220px;
}

/* =========================================
   PRODUCTS – badges + actions
   ========================================= */

.product-sub {
  margin: 0.55rem 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
  white-space: nowrap;
}

.status-beta {
  border-color: rgba(255, 211, 127, 0.50);
  background: rgba(255, 211, 127, 0.12);
  color: var(--gold);
}

.status-live {
  border-color: rgba(74, 222, 128, 0.50);
  background: rgba(74, 222, 128, 0.12);
  color: #bbf7d0;
}

.status-planned {
  border-color: rgba(125, 211, 252, 0.50);
  background: rgba(125, 211, 252, 0.12);
  color: #bae6fd;
}

.status-coming {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.10);
  color: #e5e7eb;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* =========================================
   PRODUCT DETAIL (clean, non-bubble layout)
   ========================================= */

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.2rem;
  align-items: start;
  margin-top: 0.4rem;
}

.status-row { margin-bottom: 0.8rem; }

.detail-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
}

.detail-lead {
  margin: 0 0 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
  margin-top: 0.2rem;
  max-width: 520px;
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meta-k {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.70);
}

.meta-v {
  font-size: 0.92rem;
  color: #e5e7eb;
}

.detail-panel {
  background: radial-gradient(circle at top, rgba(255, 211, 127, 0.12) 0, rgba(15, 23, 42, 0.96) 45%, #020617 100%);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
}

.detail-panel-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.detail-panel-text {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.65;
  font-size: 0.92rem;
}

.detail-panel-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.detail-divider {
  margin: 2.3rem 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 211, 127, 0.22),
    rgba(125, 211, 252, 0.18),
    rgba(148, 163, 184, 0.06)
  );
}

.detail-section {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.detail-h2 {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
}

.detail-sub {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 840px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.detail-item {
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.10) 0, rgba(15, 23, 42, 0.94) 45%, #020617 100%);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(31, 41, 55, 0.85);
  box-shadow: var(--shadow-subtle);
}

.detail-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}

.detail-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.detail-actions-inline { margin-top: 0.9rem; }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .header-center { display: none; }
  .btn-login { display: none; }
  .burger { display: flex; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-pill { justify-content: flex-start; margin-top: 1.1rem; }

  .section-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.2rem;
  }

  .detail-hero { grid-template-columns: minmax(0, 1fr); }
  .detail-meta { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }

  .emie-widget { right: 1rem; bottom: 1rem; }
}

@media (max-width: 640px) {
  .main { padding-top: 1.6rem; }

  .hero-text h1 { font-size: 1.8rem; }
  .hero-pill-inner { padding: 1.3rem 1.25rem; }

  .section-intro { margin-top: 2.5rem; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }

  .emie-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    padding-right: 0.8rem;
  }

  .emie-widget-line {
    max-width: 170px;
    font-size: 0.72rem;
  }
}
