/*
  Multilingual — Golden gradient theme inspired by Firebase Studio
  Typeface stack is system-ui for performance. Minimal utility-like classes.
*/

:root {
  --bg: #0b0b0b;
  --text: #f6f3ea;
  --muted: #cfc8b6;
  --card: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --accent-1: #ffd36a; /* soft gold */
  --accent-2: #f0b645; /* amber */
  --accent-3: #e69a28; /* deep amber */
  --shadow: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background layers */
.background { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-gradient {
  position: absolute; inset: -20% -10% 0 -10%;
  background: linear-gradient(120deg, #0b0b0b 10%, #14110a 35%, #19140a 60%, #0b0b0b 95%);
}
.bg-radial { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .35; will-change: transform; }
.bg-radial-1 { width: 60vw; height: 60vw; left: -10vw; top: -10vw; background: radial-gradient(closest-side, #f0b645, transparent 70%); }
.bg-radial-2 { width: 70vw; height: 70vw; right: -15vw; bottom: -15vw; background: radial-gradient(closest-side, #e69a28, transparent 70%); }
.noise { position: absolute; inset: 0; opacity:.08; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.45"/></svg>'); mix-blend-mode: overlay; }

/* Layout */
.container { width: min(1120px, 92%); margin: 0 auto; }
.container-wide { width: min(1680px, 94%); }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(10px); background: linear-gradient(180deg, rgba(10,10,10,.7), rgba(10,10,10,.25) 70%, transparent); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand-text { font-size: 16px; }
.primary-nav { display: none; gap: 18px; }
.primary-nav a, .footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.primary-nav a:hover, .footer-nav a:hover { color: var(--text); }
.actions { display: none; gap: 12px; }

@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .actions { display: flex; }
}

.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; background: #000; color: #fff; padding: 8px 10px; border-radius: 4px; }
/* Focus styles */
:where(a, button, .btn, .switch .slider):focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; border-radius: 8px; }

.site-main { padding-bottom: 80px; }
.section { padding: 64px 0; }
.hero { padding: 56px 0 28px; }
.hero-centered .grid-hero { display: grid; justify-items: center; text-align: center; }
.hero-centered .hero-copy { max-width: 980px; }
.hero-centered .badges { justify-content: center; }
.hero-centered .panel-group { margin-top: 16px; }
.brand-hero-title { display: inline-flex; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: clamp(56px, 7vw, 120px); line-height: 1; }
.brand-hero-mark { filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35)); height: 1em; width: auto; }
.brand-hero-text { font-size: inherit; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-hero-image { width: min(680px, 60%); height: auto; display: block; margin: 6px auto 6px; image-rendering: -webkit-optimize-contrast; }
.display { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); margin: 0 0 20px; }
.cta-row { display: flex; gap: 12px; margin: 12px 0 18px; flex-wrap: wrap; justify-content: center; }
.badges { display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; flex-wrap: wrap; }
.badge { background: rgba(255, 211, 106, 0.12); border: 1px solid rgba(255, 211, 106, 0.35); color: var(--text); font-size: 12px; padding: 6px 10px; border-radius: 999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; font-weight: 600; color: var(--text); box-shadow: 0 8px 24px -12px var(--shadow); }
.btn-lg { padding: 12px 18px; font-size: 16px; border-radius: 12px; }
.btn-xl { padding: 18px 28px; font-size: 20px; border-radius: 14px; }
.btn-icon { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); }
.btn-icon svg { fill: var(--muted); }
.btn-icon:hover svg { fill: var(--text); }
.btn-primary { background: linear-gradient(90deg, var(--accent-2), var(--accent-1)); color: #1b1407; border-color: rgba(255, 211, 106, 0.55); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.18); }
.btn-text { background: transparent; border-color: transparent; color: var(--muted); }
.btn:hover { transform: translateY(-1px); transition: transform .2s ease; }
.btn:active { transform: translateY(0); }

.grid-hero { display: grid; gap: 28px; align-items: center; justify-items: center; }
.hero-copy { text-align: center; padding-inline: 16px; }
.hero-visual { width: min(880px, 100%); }

@media (min-width: 960px) {
  .grid-hero { grid-template-columns: 1fr; }
}

/* Panels */
.panel-group { display: grid; gap: 14px; }
.panel { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 8px 40px -12px var(--shadow); }
.glass { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); backdrop-filter: blur(8px) saturate(130%); }
.panel-header { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.panel-header .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); display: inline-block; }
.panel-header .pill { font-size: 12px; background: rgba(255, 211, 106, 0.16); border: 1px solid rgba(255, 211, 106, 0.35); color: var(--text); padding: 4px 8px; border-radius: 999px; }
/* Reusable pill */
.pill { font-size: 12px; background: rgba(255, 211, 106, 0.16); border: 1px solid rgba(255, 211, 106, 0.35); color: var(--text); padding: 4px 8px; border-radius: 999px; display: inline-block; }
.code { font-size: 13px; line-height: 1.6; padding: 14px; color: #f6f3ea; overflow: auto; }
.preview-columns { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 12px; }
@media (min-width: 560px) { .preview-columns { grid-template-columns: 1fr 1fr; } }
.card { background: rgba(0,0,0,0.24); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 12px; }
.card.small .label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.card.emphasis { border-color: rgba(255, 211, 106, 0.45); background: linear-gradient(180deg, rgba(255, 211, 106, 0.14), rgba(0,0,0,0.18)); }

/* Features */
.section-title { font-size: clamp(24px, 3.5vw, 36px); margin: 0 0 18px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 10px; padding-left: 18px; }
.step { padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); }

/* Demo */
.demo-hero { text-align: center; margin-bottom: 22px; }
.demo-hero .display { margin-top: 10px; margin-bottom: 8px; }
.triptych { display: grid; grid-template-columns: 1fr; gap: 22px; transform-style: preserve-3d; }
@media (min-width: 720px) { .triptych { grid-template-columns: repeat(2, 1fr); } }
.mini-card { border: 1px solid rgba(255, 211, 106, 0.35); border-radius: 18px; padding: 14px; background: linear-gradient(180deg, rgba(255, 211, 106, 0.08), rgba(0,0,0,0.18)); transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .6s ease; opacity: .28; }
.triptych .mini-card:nth-child(1) { transform: perspective(900px) rotateY(-16deg) rotateZ(-4deg) translateX(-24px) translateY(12px) scale(.96); transition-delay: 80ms; }
.triptych .mini-card:nth-child(2) { transform: perspective(900px) rotateX(-10deg) translateY(14px) scale(.94); transition-delay: 140ms; }
.triptych .mini-card:nth-child(3) { transform: perspective(900px) rotateY(14deg) rotateZ(3deg) translateX(24px) translateY(8px) scale(.96); transition-delay: 200ms; }
#demo.in-view .mini-card { transform: none; opacity: 1; }
#demo:not(.in-view) .mini-card { opacity: .28; }
#demo { min-height: 1px; }
.mini-card img, .mini-card video { display: block; width: 100%; height: auto; border-radius: 14px; background: #0f0f0f; aspect-ratio: 4/3; }
.band-glow { position: relative; height: 80px; margin-top: 22px; }
.band-glow::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%) translateY(40px) scale(.9); bottom: -60px; width: min(960px, 100%); height: 200px; filter: blur(36px); opacity: .38; background: radial-gradient(60% 70% at 50% 50%, rgba(255, 211, 106, 0.55), rgba(230, 154, 40, 0.35) 45%, rgba(0,0,0,0) 70%); pointer-events: none; transition: transform .8s ease, opacity .8s ease; }
#demo.in-view .band-glow::before { transform: translateX(-50%) translateY(0) scale(1); opacity: .6; animation: glowDrift 4s ease-out 1 both; }
@keyframes glowDrift { from { transform: translateX(-52%) translateY(10px) scale(.98); } to { transform: translateX(-48%) translateY(0) scale(1); } }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.slider { width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.25); position: relative; transition: background .2s ease, border-color .2s ease; }
.slider::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; left: 3px; top: 50%; transform: translateY(-50%); box-shadow: 0 6px 16px rgba(0,0,0,0.35); transition: left .2s ease; }
.switch input:checked + .slider { background: linear-gradient(90deg, var(--accent-2), var(--accent-1)); border-color: rgba(255, 211, 106, 0.7); }
.switch input:checked + .slider::after { left: 23px; }
.switch-label { font-size: 13px; color: var(--muted); }

/* OSS */
.grid-oss { display: grid; gap: 14px; align-items: start; }
@media (min-width: 860px) { .grid-oss { grid-template-columns: 1.2fr 1fr; } }
.oss-card { padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 22px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-1); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0 34px; background: linear-gradient(180deg, rgba(0,0,0,0.2), transparent); }
.footer-inner { display: grid; gap: 12px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto auto; } }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.footer-nav { display: flex; gap: 14px; justify-content: center; }
.copyright { margin: 0; color: var(--muted); text-align: right; }

.noscript { margin: 16px; padding: 12px; border-radius: 8px; background: #241e12; color: var(--text); border: 1px solid rgba(255, 211, 106, 0.35); }

/* Instructions card */
.instructions { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 860px) { .instructions { grid-template-columns: 1.1fr 1fr; } }
.inst-highlights { display: grid; gap: 10px; }
.inst-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.22); }
.inst-row .muted { color: var(--muted); font-size: 13px; }
.dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; background: #3a3a3a; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.dot-on { background: radial-gradient(circle at 30% 30%, #3cff7a, #0f5); box-shadow: 0 0 12px rgba(0,255,140,.45), inset 0 0 0 2px rgba(0,0,0,0.35); }
.inst-steps { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: rgba(0,0,0,0.24); padding: 14px; }
.inst-steps ol { margin: 10px 0 0; padding-left: 18px; }
.steps-title { font-weight: 700; letter-spacing: .2px; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.inst-gif { margin: 0; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.24); grid-column: 1 / -1; justify-self: center; width: min(720px, 100%); }
.inst-gif img, .inst-gif video { display: block; width: 100%; height: auto; }
.inst-gif figcaption { padding: 6px 10px; font-size: 12px; text-align: center; }

/* Modal */
.modal[aria-hidden="true"] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; z-index: 1; width: min(720px, 92%); border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.modal-header h3 { margin: 0; }
.icon-close { background: transparent; border: 1px solid rgba(255,255,255,0.18); color: var(--text); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.modal-body { padding: 16px; display: grid; gap: 14px; }
.modal-footer { padding: 14px 16px 18px; display: flex; justify-content: flex-end; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto !important; }
  .triptych .mini-card, #demo.in-view .mini-card { transform: none !important; opacity: 1 !important; }
  .band-glow::before { transform: translateX(-50%) !important; opacity: .55 !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


