:root {
  --bg: #0c0c0e;
  --panel: #16161a;
  --fg: #f4f1ea;
  --muted: #9a958c;
  --accent: #5b8def;
  --accent-hover: #7ea3f2;
  --border: #232329;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Bitter", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.cta,
.status {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Topbar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 1.25rem 1.25rem;
}

.brand {
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.subhead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  max-width: 42ch;
  margin: 0 0 2rem;
}

.hero-photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  justify-self: center;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    align-items: center;
  }
  .subhead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-photo {
    order: -1;
    max-width: 380px;
  }
}

/* ---- Buttons ---- */
.cta {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #0b1220;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.cta:hover { background: var(--accent-hover); }
.cta:active { transform: translateY(1px); }

/* ---- Features ---- */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---- Screenshots ---- */
.screenshots {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  text-align: center;
}

.screenshots h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.screenshot-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.screenshot-placeholder figcaption {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- Footer CTA ---- */
.footer-cta {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(3.5rem, 8vw, 5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-cta p {
  font-size: 1.1rem;
  color: var(--fg);
}

/* ---- Dialog ---- */
.contact {
  margin: auto;
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(420px, 92vw);
  background: var(--panel);
  color: var(--fg);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.85);
}

.contact::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-head h2 {
  font-size: 1.35rem;
  font-weight: 600;
}

.close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.close:hover { color: var(--fg); }

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
}

input[type="email"],
textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: #0e0e11;
  border: 1px solid #2a2a30;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.submit {
  font: inherit;
  font-weight: 600;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #0b1220;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.submit:hover { background: var(--accent-hover); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: 0.6; cursor: default; }

.status {
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
}
.status.ok { color: #6fcf97; }
.status.err { color: #eb5757; }

/* ---- Site footer ---- */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.site-footer a:hover { color: var(--fg); }
