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

html, body {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --fg: #111111;
  --accent: #2f6feb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e6e6e6;
    --accent: #79b8ff;
  }
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: transparent;
  color: var(--fg);
}

/* Background image layer */
.bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(15,17,21,0.35), rgba(15,17,21,0.55)), url('background picture.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1;
  transition: opacity 160ms ease-out;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: #fff; text-decoration: none; opacity: .98; padding: 6px 2px; border-bottom: 2px solid transparent; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.nav-link:hover { border-bottom-color: rgba(255,255,255,.8); }
.nav-cta { text-decoration: none; padding: 8px 12px; border-radius: 10px; background: linear-gradient(135deg, #10b981, #34d399); color: #0b1320; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 6px 16px rgba(16,185,129,.22); }
.nav-cta:hover { filter: brightness(0.95); box-shadow: 0 6px 18px rgba(16,185,129,.28); }

/* Hero */
.hero { min-height: clamp(520px, 75vh, 760px); display: grid; place-items: center; padding: 48px 24px; }
.hero-inner { max-width: 920px; margin: 0 auto; text-align: center; color: #fff; }
.hero-title { font-size: clamp(32px, 6vw, 64px); line-height: 1.05; margin: 0 0 12px; text-transform: none; }
.hero-sub { max-width: 760px; margin: 0 auto 12px; font-size: clamp(16px, 2.5vw, 20px); opacity: .92; }
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.55); color: #0f1115; text-decoration: none; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); }
.btn:hover { background: #ffffff; border-color: rgba(255,255,255,.8); }
.btn-primary { background: linear-gradient(135deg, #10b981, #34d399); border-color: transparent; color: #0b1320; box-shadow: 0 8px 20px rgba(16,185,129,.25); }
.btn-primary:hover { filter: brightness(0.95); box-shadow: 0 8px 22px rgba(16,185,129,.32); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding: 24px; max-width: 1100px; margin: 0 auto; }
.feature { background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); border-radius: 14px; padding: 20px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; opacity: .9; }

@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* Survey CTA */
.survey-cta { padding: 48px 24px; }
.survey-cta .container { max-width: 1000px; margin: 0 auto; background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); border-radius: 16px; padding: 28px; }
.survey-cta .survey-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.survey-cta .survey-copy { text-align: left; }
.survey-cta .survey-copy h2 { margin: 0 0 8px; }
.survey-cta .survey-copy p { margin: 0 0 12px; }
.survey-cta .qr { margin-top: 16px; display: grid; place-items: center; gap: 6px; }
.survey-cta .qr img { width: 220px; height: 220px; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); background: #fff; }
@media (max-width: 800px) {
  .survey-cta .survey-grid { grid-template-columns: 1fr; text-align: center; }
  .survey-cta .survey-copy { text-align: center; }
}

/* Signup */
.signup { padding: 48px 24px; }
.signup .container { max-width: 800px; margin: 0 auto; text-align: center; }
.waitlist { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.waitlist input[type="email"] { padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--fg); min-width: 220px; }
.form-message { margin-top: 10px; min-height: 22px; }

/* Footer */
.site-footer { padding: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; }
.footer-link { color: inherit; text-decoration: none; opacity: .9; }

/* Dev-only warning shown when opened via file:// */
.dev-warning { display: none; position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: #fffbeb; color: #92400e; border: 1px solid #f59e0b; box-shadow: 0 6px 16px rgba(0,0,0,.08); font-size: 14px; }

.container {
  max-width: 720px;
  padding: 24px;
  margin: 0 auto;
}

header, footer {
  padding: 16px 24px;
}

button {
  padding: 8px 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--fg);
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
