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

:root {
  --bg:      #0d1117;
  --surface: #161b22;
  --border:  #30363d;
  --text:    #e6edf3;
  --muted:   #8b949e;
  --accent:  #58a6ff;
  --radius:  6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.25; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }

/* ── Buttons ─────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #79b8ff; color: #fff; }

/* ── Nav ─────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo-img { height: 22px; display: block; filter: brightness(0) invert(1); }

/* ── Hero ────────────────────────────────────── */

.hero {
  padding: 150px 0 80px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-screenshot {
  flex: 1;
  min-width: 0;
}
.hero-screenshot img {
  width: 100%;
}

/* ── Problems ────────────────────────────────── */

.problems {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.problems h2 {
  font-size: 1.5rem;
  margin-bottom: 40px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.problem-q {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.problem-a {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── What it does ────────────────────────────── */

.what {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.what h2 {
  font-size: 1.5rem;
  margin-bottom: 40px;
}
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.what-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.what-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Built for events ────────────────────────── */

.built-for {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.built-for h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.built-for-body {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── CTA ─────────────────────────────────────── */

.cta {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.cta p {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 28px;
  font-size: 1rem;
}

/* ── Footer ──────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { height: 16px; filter: brightness(0) invert(0.55); }
.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* ── Nav links ───────────────────────────────── */

.nav-links { display: flex; align-items: center; gap: 12px; }

/* ── Login dialog ────────────────────────────── */

.login-dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 48px);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.login-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.login-form {
  padding: 32px;
}
.login-form h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.login-form > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.login-input-row {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  margin-bottom: 24px;
  transition: border-color 0.15s;
}
.login-input-row:focus-within {
  border-color: var(--accent);
}
.login-input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 0;
  min-width: 0;
}
.login-input-row input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}
.login-domain {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  user-select: none;
}
.login-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 40px; }
  .problem-grid { grid-template-columns: 1fr; }
  .what-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .hero { padding: 110px 0 60px; }
}
