/* =========================================================
   Discover Awesome Digicams — clean static stylesheet
   Frutiger Aero / Y2K design system
   ========================================================= */

:root {
  --aqua:        oklch(0.82 0.13 210);
  --aqua-deep:   oklch(0.55 0.18 230);
  --lime:        oklch(0.88 0.18 130);
  --bubble:      oklch(0.78 0.16 320);
  --sky:         oklch(0.93 0.06 220);
  --glass:       oklch(0.98 0.01 220);

  --background:  oklch(0.96 0.03 220);
  --foreground:  oklch(0.22 0.05 240);
  --muted:       oklch(0.45 0.05 230);
  --border:      oklch(0.85 0.05 220);

  --radius: 1rem;

  --font-display: "Chillax", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-serif:   "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "Courier New", monospace;
}

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

body {
  min-height: 100vh;
  color: var(--foreground);
  font-family: var(--font-serif);
  background:
    radial-gradient(ellipse at 15%   0%, oklch(0.92 0.12 200 / 0.9), transparent 55%),
    radial-gradient(ellipse at 85%  10%, oklch(0.92 0.16 130 / 0.7), transparent 50%),
    radial-gradient(ellipse at 50% 100%, oklch(0.85 0.16 320 / 0.55), transparent 60%),
    linear-gradient(180deg,
      oklch(0.96 0.05 220) 0%,
      oklch(0.92 0.07 200) 50%,
      oklch(0.95 0.06 200) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }

/* ---------- Layout ---------- */
.container { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem; }
.site-header { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.5rem 0; }
.header-row {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
@media (min-width: 640px) {
  .header-row { flex-direction: row; justify-content: space-between; }
}
.hero { text-align: center; padding: 1rem 0 0.5rem; }

.display    { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.95; }
.display-md { font-family: var(--font-display); font-size: 1.5rem; }
.tagline    { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0.5rem; }
.lead       { margin-top: 0.75rem; font-family: "Times New Roman", serif; color: var(--muted); font-size: 0.95rem; }

.gradient-text {
  background: linear-gradient(180deg, oklch(0.55 0.18 230), oklch(0.35 0.18 245));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 oklch(1 0 0 / 0.8));
}

.micro {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.muted { color: var(--muted); }
.muted-text { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.kbd {
  font-family: var(--font-mono); text-transform: uppercase;
  background: rgba(255,255,255,0.6); padding: 0 0.35rem; border-radius: 4px;
}

/* ---------- CTA ---------- */
.cta-stack { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.aqua-button {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid oklch(0.55 0.15 235);
  border-radius: 999px;
  padding: 1.5rem 3.5rem;
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.05em;
  color: white;
  background: linear-gradient(180deg,
    oklch(0.94 0.10 210) 0%,
    oklch(0.78 0.18 220) 45%,
    oklch(0.55 0.20 235) 55%,
    oklch(0.70 0.19 230) 100%);
  text-shadow: 0 1px 2px oklch(0.3 0.1 240 / 0.6);
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.9) inset,
    0 -8px 12px -6px oklch(0.3 0.15 240 / 0.4) inset,
    0 12px 28px -10px oklch(0.4 0.2 240 / 0.5),
    0 4px 8px -4px oklch(0.35 0.15 240 / 0.4);
  transition: transform 120ms ease;
}
.aqua-button::before {
  content: ""; position: absolute; inset: 2px 2px 50% 2px; border-radius: inherit;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.85), oklch(1 0 0 / 0.05));
  pointer-events: none;
}
.aqua-button:hover  { transform: translateY(-2px) scale(1.02); }
.aqua-button:active { transform: translateY(2px) scale(1); }
.aqua-button:disabled { opacity: 0.8; cursor: not-allowed; }

.lime-button {
  position: relative; overflow: hidden; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.75rem;
  border: 1px solid oklch(0.55 0.18 135);
  border-radius: 999px;
  padding: 1rem 2.5rem;
  font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: oklch(0.2 0.1 140);
  background: linear-gradient(180deg,
    oklch(0.96 0.12 130) 0%,
    oklch(0.85 0.20 130) 45%,
    oklch(0.65 0.22 135) 55%,
    oklch(0.78 0.20 130) 100%);
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.9) inset,
    0 -8px 12px -6px oklch(0.3 0.15 140 / 0.35) inset,
    0 12px 28px -10px oklch(0.5 0.2 140 / 0.5),
    0 4px 8px -4px oklch(0.4 0.15 140 / 0.35);
  text-decoration: none;
  transition: transform 120ms ease;
}
.lime-button::before {
  content: ""; position: absolute; inset: 2px 2px 50% 2px; border-radius: inherit;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.8), oklch(1 0 0 / 0.05));
  pointer-events: none;
}
.lime-button:hover  { transform: translateY(-2px) scale(1.02); }
.lime-button:active { transform: translateY(2px) scale(1); }

/* ---------- Glass surfaces ---------- */
.glass {
  background: linear-gradient(180deg, oklch(1 0 0 / 0.7) 0%, oklch(1 0 0 / 0.45) 100%);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid oklch(1 0 0 / 0.6);
  border-radius: 1.5rem;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.9) inset,
    0 20px 40px -20px oklch(0.4 0.1 230 / 0.35),
    0 8px 24px -8px oklch(0.5 0.1 230 / 0.25);
}

.chip {
  display: inline-block;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.95), oklch(0.93 0.04 220 / 0.85));
  border: 1px solid oklch(1 0 0 / 0.9);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.9) inset,
    0 4px 12px -4px oklch(0.4 0.1 230 / 0.25);
}

/* ---------- Bubbles ---------- */
.bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; display: block; border-radius: 999px;
  background: radial-gradient(circle at 30% 25%,
    oklch(1 0 0 / 0.95) 0%,
    oklch(0.9 0.1 210 / 0.4) 30%,
    oklch(0.7 0.15 220 / 0.15) 60%,
    transparent 80%);
  border: 1px solid oklch(1 0 0 / 0.4);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(6px, -12px); }
}
.float      { animation: float  8s ease-in-out infinite; }
.float-slow { animation: float 14s ease-in-out infinite; }

/* ---------- Flash overlay ---------- */
.flash {
  position: fixed; inset: 0; background: white; z-index: 50; pointer-events: none;
  animation: flash 0.4s ease-out;
}
@keyframes flash { 0%,100% {opacity:0;} 20% {opacity:.9;} }

/* ---------- Empty state ---------- */
.empty {
  max-width: 36rem; margin: 3rem auto 0; padding: 4rem 2rem; text-align: center;
}
.empty-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 999px;
  background: linear-gradient(180deg, white, oklch(0.85 0.12 210));
  border: 1px solid oklch(1 0 0 / 0.8);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}
.empty-bubble .display { font-size: 2rem; color: oklch(0.4 0.18 240); }

/* ---------- Roulette ---------- */
.roulette {
  max-width: 40rem; margin: 3rem auto 0; padding: 2.5rem 1.5rem; text-align: center;
}
.roulette-label {
  margin-top: 1rem; font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.progress-track {
  margin: 2rem auto 0; height: 0.75rem; max-width: 28rem;
  background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg,
    oklch(0.85 0.18 130), oklch(0.7 0.2 200), oklch(0.55 0.2 280));
  animation: roulette 1400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes roulette { from { width: 0; } to { width: 100%; } }

/* ---------- Camera card ---------- */
.card {
  max-width: 48rem; margin: 3rem auto 0; overflow: hidden;
  animation: wiggle 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wiggle {
  0%   { transform: scale(0.96) rotate(-1deg); opacity: 0; }
  60%  { transform: scale(1.02) rotate(0.5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.card-ribbon {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.3);
}

.card-figure { background: rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.4); margin: 0; }
.card-figure-inner {
  max-width: 36rem; margin: 0 auto; padding: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.card-figure img {
  display: block; max-height: 20rem; width: auto;
  border-radius: 0.75rem; object-fit: contain;
}
.card-caption {
  border-top: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1.5rem; text-align: center;
}

.card-no-image {
  border-bottom: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  padding: 1rem 1.5rem; text-align: center;
}

.card-body { padding: 2rem 1.5rem; }
@media (min-width: 640px) { .card-body { padding: 2.5rem; } }

.card-brand {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.3em; color: oklch(0.5 0.18 230);
  font-size: 1.25rem; text-align: center;
}
.card-model {
  margin-top: 0.5rem; text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05;
}
.card-type {
  margin-top: 0.75rem; text-align: center; font-style: italic;
  color: var(--muted); font-family: "Times New Roman", serif;
}

.divider {
  display: flex; align-items: center; gap: 0.75rem; margin: 2rem 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
}
.divider::after { background: linear-gradient(-90deg, transparent, rgba(255,255,255,0.8)); }

.specs { display: grid; grid-template-columns: 1fr; gap: 0.75rem; padding: 0; margin: 0; }
@media (min-width: 640px) { .specs { grid-template-columns: 1fr 1fr; } }

.spec {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 0.75rem;
}
.spec dt { margin: 0; font-family: var(--font-mono); font-size: 0.65rem;
           text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.spec dd { margin: 0; text-align: right; font-size: 0.9rem; }

.feature-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature-list li { padding: 0.25rem 0.75rem; }

.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.fact { display: flex; gap: 0.75rem; line-height: 1.6; }
.fact-num {
  flex-shrink: 0; width: 1.5rem; height: 1.5rem; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, white, oklch(0.85 0.12 210));
  border: 1px solid rgba(255,255,255,0.8);
  font-family: var(--font-mono); font-size: 0.7rem; color: oklch(0.4 0.18 240);
}

.cta-row {
  margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.cta-row .secondary {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.chip-button {
  cursor: pointer; border: 0; padding: 0.5rem 1rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700;
  color: var(--foreground);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: 72rem; margin: 3rem auto 0; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  text-align: center; font-family: var(--font-mono);
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--muted);
}
@media (min-width: 640px) {
  .site-footer { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Web fonts */
@font-face {
  font-family: "Inter";
  src: url("https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("https://fonts.gstatic.com/s/jetbrainsmono/v20/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjPVmUsaaDhw.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
