:root{
  /* Light, modern base */
  --bg0:#F7F9FF;
  --bg1:#EEF3FF;
  --card:rgba(255,255,255,.72);
  --card2:rgba(255,255,255,.86);
  --stroke:rgba(15,23,42,.10);
  --text:rgba(15,23,42,.94);
  --muted:rgba(15,23,42,.72);
  --muted2:rgba(15,23,42,.56);
  --brand1:#7C5CFF;
  --brand2:#00D3FF;
  --brand3:#19FF9C;
  --danger:#FF4D6D;
  --ok:#19FF9C;
  --shadow: 0 18px 60px rgba(15,23,42,.16);
  --radius: 18px;
  --radius2: 26px;
  --max: 1140px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 10% 5%, rgba(124,92,255,.20), transparent 58%),
    radial-gradient(900px 700px at 85% 15%, rgba(0,211,255,.16), transparent 56%),
    radial-gradient(900px 700px at 70% 90%, rgba(25,255,156,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Gradient title (like Color Duell Arena title vibe) */
.title-gradient{
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(0,211,255,1), rgba(25,255,156,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Editions (CDA‑Basic / CDA‑Premium) */
.edition{
  font-weight: 900;
  letter-spacing: .2px;
}
.edition--basic{
  color: #2F6BFF; /* blue */
}
.edition--premium{
  color: #C9A227; /* gold */
}

/* Header / Nav */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
  gap: 18px; /* keep brand away from first nav item */
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:750; letter-spacing:.2px;
  margin-right: 10px; /* prevents touching "Start" */
}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(0,211,255,.8), rgba(25,255,156,.7));
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.brand span{font-size:16px}

.nav{
  display:flex; align-items:center; gap:14px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.nav a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:600;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.nav a[aria-current="page"]{
  background:rgba(124,92,255,.10);
  color:var(--text);
  border:1px solid rgba(124,92,255,.16);
}

.nav-cta{
  display:flex; align-items:center; gap:10px;
  flex: 0 0 auto;
}

/* Language popup (top bar + mobile panel) */
.lang-pop{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-pop-btn{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.60);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.lang-pop-btn:hover{
  background: rgba(255,255,255,.85);
  border-color: rgba(124,92,255,.22);
}
.lang-pop-btn .pill{
  margin-left: 8px;
}
.lang-pop-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  display: none;
}
.lang-pop.open .lang-pop-menu{display:block}
.lang-pop-menu button{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(15,23,42,.92);
  font-weight: 800;
  cursor: pointer;
}
.lang-pop-menu button .code{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(15,23,42,.62);
}
.lang-pop-menu button:hover{
  background: rgba(124,92,255,.10);
  border-color: rgba(124,92,255,.18);
}
.lang-pop-menu button[aria-current="true"]{
  background: rgba(124,92,255,.14);
  border-color: rgba(124,92,255,.22);
}

/* Legacy link switcher (legal pages) – hide (JS replaces it) */
.lang-switch{display:none}

/* Mobile panel version */
.mobile-panel .lang-pop{
  display: block;
  padding: 0 2px;
}
.mobile-panel .lang-pop-btn{
  width: 100%;
  justify-content: space-between;
}
.mobile-panel .lang-pop-menu{
  position: static;
  margin-top: 10px;
  min-width: 0;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.60);
  color:var(--text);
  font-weight:700;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn.btn-sm{
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 13px;
}

/* Make "Details" buttons on CDA cards clearer */
.app-card--media .app-title--withbtn .btn.btn-sm{
  min-width: 92px;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.80); border-color: rgba(124,92,255,.22)}
.btn.primary{
  border:none;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(0,211,255,.65));
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.btn.primary:hover{filter:saturate(1.1) brightness(1.02)}

/* Button gradient like "Color Duell Arena" title */
.btn.rainbow{
  border: none;
  color: rgba(15,23,42,.92);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,211,255,.78), rgba(25,255,156,.72));
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.btn.rainbow:hover{
  filter: saturate(1.08) brightness(1.03);
}
.btn .pill{
  font-family:var(--mono);
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.10);
  color:rgba(15,23,42,.72);
}

.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}
.hamburger:active{transform:scale(.98)}
.hamburger-lines{display:grid; gap:5px; padding:12px}
.hamburger-lines span{
  height:2px; border-radius:2px;
  background:rgba(255,255,255,.85);
}

.mobile-panel{
  display:none;
  border-top:1px solid rgba(255,255,255,.08);
  padding:10px 0 18px;
}
.mobile-panel a{
  display:block;
  padding:12px 14px;
  margin:6px 0;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-weight:700;
}
.mobile-panel a:hover{background:rgba(255,255,255,.07); color:var(--text)}

/* Hero */
.hero{
  padding:64px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}
.hero h1{
  margin:0;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height:1.02;
  letter-spacing:-.6px;
}
.hero p{
  margin:16px 0 0;
  color:var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height:1.55;
}
.hero-actions{
  margin-top:22px;
  display:flex; gap:12px; flex-wrap:wrap;
}
.hero-actions .btn{padding:12px 16px}
.subnote{
  margin-top:14px;
  color:var(--muted2);
  font-size:13px;
}
.hero-card{
  border-radius:var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(380px 260px at 15% 15%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(340px 250px at 80% 25%, rgba(0,211,255,.24), transparent 60%),
    radial-gradient(420px 320px at 60% 90%, rgba(25,255,156,.18), transparent 65%);
  filter: blur(0px);
  pointer-events:none;
}
.hero-card > *{position:relative}
.hero-card-title{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.86);
  font-weight:700;
  font-size:13px;
}
.chip-dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
}
.stat-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.stat{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
}
.stat strong{
  font-size:18px;
  letter-spacing:-.2px;
}
.stat span{display:block; color:var(--muted2); font-size:12px; margin-top:6px}

/* Sections */
.section{padding:26px 0 60px}
.section h2{
  margin:0 0 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing:-.3px;
}
.section p.lead{margin:0 0 18px; color:var(--muted); max-width:78ch; line-height:1.55}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 4;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.card:hover{transform: translateY(-2px); background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.16)}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted); line-height:1.55; font-size:14px}
.card .meta{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}
.feature-link{
  min-height: 230px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 36px rgba(0,0,0,.24);
  transition: transform .16s ease, border-color .16s ease, filter .16s ease;
}
.feature-link:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.24);
  filter: brightness(1.05);
}
.feature-link::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(420px 180px at 15% 20%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(380px 180px at 80% 82%, rgba(255,255,255,.22), transparent 62%),
    linear-gradient(145deg, rgba(10,18,40,.85), rgba(22,42,86,.78));
}
.feature-link--shop::before{
  background:
    radial-gradient(420px 180px at 15% 20%, rgba(255,209,102,.40), transparent 60%),
    radial-gradient(380px 180px at 80% 82%, rgba(255,130,92,.30), transparent 62%),
    linear-gradient(145deg, rgba(57,32,14,.90), rgba(116,63,30,.80));
}
.feature-link--apps::before{
  background:
    radial-gradient(420px 180px at 15% 20%, rgba(124,92,255,.42), transparent 60%),
    radial-gradient(380px 180px at 80% 82%, rgba(0,211,255,.28), transparent 62%),
    linear-gradient(145deg, rgba(24,20,70,.92), rgba(22,60,116,.80));
}
.feature-link--legal::before{
  background:
    radial-gradient(420px 180px at 15% 20%, rgba(25,255,156,.32), transparent 60%),
    radial-gradient(380px 180px at 80% 82%, rgba(124,92,255,.28), transparent 62%),
    linear-gradient(145deg, rgba(18,34,44,.92), rgba(32,63,84,.80));
}
.feature-icon,.feature-label{
  position:relative;
  z-index:1;
}
.feature-icon{
  font-size: 56px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.35));
}
.feature-label{
  position:absolute;
  bottom:14px;
  left:14px;
  right:14px;
  text-align:center;
  color: rgba(255,255,255,.96);
  font-weight: 800;
  letter-spacing: .2px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 10px;
}
.tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background: rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.78);
  font-weight:700;
  font-size:12px;
}
.tag.tag--basic{
  background: rgba(47,107,255,.10);
  border-color: rgba(47,107,255,.22);
  color: rgba(20,65,200,.95);
}
.tag.tag--premium{
  background: rgba(201,162,39,.14);
  border-color: rgba(201,162,39,.26);
  color: rgba(138,99,0,.92);
}

/* Page header */
.pagehead{
  padding:42px 0 16px;
}
.pagehead h1{margin:0; font-size: clamp(30px, 3.4vw, 44px); letter-spacing:-.5px}
.pagehead p{margin:10px 0 0; color:var(--muted); max-width:78ch; line-height:1.55}

/* App cards */
.app-grid{display:grid; grid-template-columns: repeat(12,1fr); gap:14px}
.app-card{
  grid-column: span 6;
  border-radius: var(--radius2);
  background: var(--card);
  border:1px solid var(--stroke);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.app-card.app-card--center{
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0 auto;
}
.app-card.app-card--media{
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.app-card:hover{transform: translateY(-2px); background: var(--card2); border-color: rgba(124,92,255,.18)}
.app-card .banner{
  height: 200px;
  background:
    radial-gradient(600px 220px at 20% 20%, rgba(124,92,255,.40), transparent 60%),
    radial-gradient(520px 230px at 80% 30%, rgba(0,211,255,.28), transparent 62%),
    radial-gradient(560px 260px at 55% 90%, rgba(25,255,156,.20), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  position:relative;
}
.app-card .banner.banner-imagebg{
  /* Make the main app image brighter and clearer */
  background-color: rgba(255,255,255,.68) !important;
  filter: brightness(1.12) contrast(1.06) saturate(1.10);
}
.app-card .banner.banner-imagebg:after{
  display:none;
}
.app-card .banner.banner-square{
  height: auto;
  aspect-ratio: 1 / 1;
}
.app-card .banner.banner-image{
  height: auto;
  padding: 8px;
  background: rgba(255,255,255,.55);
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.app-card .banner.banner-image:after{
  display:none;
}
.app-card .banner.banner-image img{
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 42px rgba(0,0,0,.32);
}
.app-card .banner.banner-image .banner-caption{
  margin-top: 8px;
  text-align: center;
  color: rgba(15,23,42,.88);
  font-weight: 750;
  letter-spacing: .1px;
  font-size: 12.5px;
}
.app-card .banner.banner-image .banner-caption span{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.12);
}
.app-card .banner:after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent, rgba(7,10,18,.72));
}
.app-card .content{padding:12px}
.app-title{display:flex; align-items:baseline; justify-content:space-between; gap:10px}
.app-title.app-title--withbtn{align-items:center}
.app-title h3{margin:0; font-size:17px}
.app-title .small{color:var(--muted2); font-family:var(--mono); font-size:12px}
.app-card p{margin:10px 0 0; color:var(--muted); line-height:1.42; font-size:13px}
.app-links{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap}
.app-actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}
.mobile-only{display:none}

/* Prose blocks (long descriptions) */
.prose{
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background:
    /* durchgehender Farbtint über die ganze Fläche */
    linear-gradient(135deg, rgba(124,92,255,.14), rgba(0,211,255,.10) 50%, rgba(25,255,156,.08)),
    /* sehr feine Struktur, damit es "glassy" wirkt (optional, sehr subtil) */
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, rgba(255,255,255,.00) 2px 10px),
    radial-gradient(720px 360px at 10% 0%, rgba(124,92,255,.26), transparent 60%),
    radial-gradient(720px 360px at 90% 10%, rgba(0,211,255,.20), transparent 62%),
    radial-gradient(720px 360px at 70% 110%, rgba(25,255,156,.16), transparent 64%),
    rgba(0,0,0,.30); /* ~70% transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  line-height: 1.65;
  font-size: 13.5px;
}
.preline{white-space: pre-line}
.prose.prose--rich{
  padding: 12px;
}

/* Rich prose formatting without separate "fields" */
.prose-h{
  margin: 14px 0 8px;
  font-size: 14.5px;
  font-weight: 950;
  letter-spacing: -.2px;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(0,211,255,1), rgba(25,255,156,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prose-h.prose-h--goal{
  font-size: 17px;
  letter-spacing: -.4px;
  text-transform: uppercase;
}
.prose-h:first-child{margin-top:0}
.prose-p{
  margin: 0 0 10px;
  color: rgba(255,255,255,.86);
}
.prose-p:last-child{margin-bottom:0}
.prose-ul{
  margin: 0 0 10px;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
}
.prose-ul li{
  margin: 6px 0;
}

/* Marketing highlights inside description */
.prose-callout{
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(124,92,255,.22), rgba(0,211,255,.14) 55%, rgba(25,255,156,.12)),
    rgba(0,0,0,.28); /* ~70% transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.prose-callout .prose-h{
  margin-top: 0;
}
.prose-callout .prose-p{
  margin-bottom: 0;
  font-size: 14px;
}
.prose-callout strong{
  color: rgba(255,255,255,.94);
}

/* Screenshot gallery */
.shots{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap:12px;
  margin-top:12px;
}
.shot{
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.shot:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
}
.shot img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.lightbox.open{
  opacity: 1;
  pointer-events: auto;
}
.lightbox-dialog{
  width: 100%;
  max-width: 980px;
}
.lightbox-surface{
  border-radius: 18px;
  background: rgba(10,14,28,.62);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 90px rgba(0,0,0,.55);
  overflow: hidden;
}
.lightbox-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lightbox-title{
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-family: var(--mono);
  padding-left: 6px;
}
.lightbox-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.iconbtn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  font-weight: 900;
}
.iconbtn:active{transform: scale(.98)}
.lightbox-body{
  position: relative;
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.22);
}
.lightbox-img{
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  width: auto;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
}
.lightbox-nav{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events: none;
}
.lightbox-nav .iconbtn{
  pointer-events: auto;
  margin: 0 8px;
  background: rgba(0,0,0,.28);
}
.lightbox-hint{
  margin-top: 10px;
  text-align: center;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
@media (max-width: 640px){
  .lightbox{padding: 12px}
  .lightbox-img{max-height: 74vh}
  .lightbox-hint{display:none}
}

/* Description modal (extra window) */
.desc-modal{
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.desc-modal.open{opacity:1; pointer-events:auto}
.desc-dialog{width:100%; max-width: 980px}
.desc-surface{
  border-radius: 18px;
  background: rgba(10,14,28,.72);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 90px rgba(0,0,0,.55);
  overflow: hidden;
}
.desc-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.desc-head{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.desc-head .title{
  font-weight: 900;
  letter-spacing: -.2px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desc-badge{
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
}
.desc-body{
  max-height: 70vh;
  overflow: auto;
  padding: 14px;
}
.desc-body .prose{
  margin-top: 0;
  /* keep the colorful glass background from `.prose` */
}
.desc-trigger-row{margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap}

/* Legal */
.legal{
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  padding:18px;
  line-height:1.7;
  color: var(--text);
}
.legal a{
  color: rgba(124,92,255,.95);
  text-decoration: underline;
  text-decoration-color: rgba(124,92,255,.35);
  text-underline-offset: 3px;
}
.legal a:hover{color: rgba(88,68,240,.98)}
.legal code{
  font-family:var(--mono);
  font-size: 12px;
  color: rgba(15,23,42,.82);
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
  padding: 2px 6px;
  border-radius: 8px;
}
.legal ul{margin: 8px 0 0; padding-left: 18px}
.legal li{margin: 6px 0; color: var(--muted)}
.legal h2,.legal h3{margin-top:18px}
.legal h2:first-child{margin-top:0}
.legal h2{
  font-size: 18px;
  letter-spacing: -.2px;
}
.legal h3{
  font-size: 15px;
  letter-spacing: -.15px;
  color: rgba(15,23,42,.86);
}

/* Footer */
footer{
  padding:28px 0 40px;
  border-top:1px solid var(--stroke);
  background: rgba(255,255,255,.62);
}
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:14px;
  align-items:start;
}
.footnote{color:var(--muted2); font-size:13px; line-height:1.55}
.footer-links a{display:block; padding:8px 0; color:var(--muted); font-weight:700}
.footer-links a:hover{color:var(--text)}

/* Responsive */
@media (max-width: 920px){
  .hero-grid{grid-template-columns: 1fr; }
  .card{grid-column: span 6}
  .app-card{grid-column: span 12}
  .footer-grid{grid-template-columns: 1fr}
}
@media (max-width: 640px){
  .nav{display:none}
  /* Keep language button visible in topbar on mobile */
  .nav-cta{display:flex}
  .nav-cta > a.btn{display:none}
  .nav-cta .lang-pop{display:inline-flex}
  .nav-cta .lang-pop-btn{padding:10px 12px}
  .hamburger{display:inline-flex; align-items:center; justify-content:center}
  .mobile-panel[aria-hidden="false"]{display:block}
  .card{grid-column: span 12}
  .stat-grid{grid-template-columns: 1fr}
  .mobile-only{display:inline-flex}
  .shots{grid-template-columns: repeat(2, minmax(0, 1fr))}
}

/* Utility */
.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;
}
