:root {
  --green: #2e9e6e;
  --blue: #1e7fa8;
  --slate: #7b7fa0;
  --orange: #d4622a;
  --red: #e03b3b;
  --bg: #0a0f0d;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8edf2;
  --muted: #6b7a8d;
}

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

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

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(
    circle at calc(50% + 200px) calc(22% - 200px),
    rgba(26, 61, 43, 0.85) 0%,
    rgba(10, 15, 13, 0.35) 32%,
    rgba(10, 15, 13, 0.92) 58%,
    #000000 100%
  );
  color: var(--text);
  font-family: system-ui, -apple-system, "SF Pro Text", sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}

/* All page sections: normal flow, block stacking — no absolute/fixed */
.logo-section,
.hero,
.about,
.contact,
.footer {
  display: block;
  width: 100%;
}

main {
  display: block;
  width: 100%;
}

.logo-section {
  text-align: center;
  padding: 48px 20px 0;
}

.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero {
  text-align: center;
  max-width: 600px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.hero h1 {
  display: block;
  margin: 0 0 32px;
  font-family: "Lora", serif;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.app-store-link {
  display: inline-block;
  max-width: 100%;
  margin: 0 auto 16px;
  line-height: 0;
}

.app-store-badge {
  display: block;
  width: auto;
  max-width: 160px;
  height: auto;
  margin: 0 auto;
}

.hero-mockup {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.about {
  margin-top: 0;
  padding: 0 20px;
}

.about p {
  display: block;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.7;
}

.contact {
  margin-top: 32px;
  padding: 0 20px;
}

.contact h2 {
  display: block;
  margin: 0 0 32px;
  text-align: center;
  color: #ffffff;
  font-family: "Lora", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.contact-card {
  display: block;
  margin: 0 auto;
  max-width: 400px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input[type="email"],
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(46, 158, 110, 0.9);
}

button[type="submit"] {
  display: block;
  margin-top: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

button[type="submit"]:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.24);
}

button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.75;
}

.error-message {
  display: block;
  min-height: 1.15em;
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

.success-message {
  display: block;
  text-align: center;
  padding: 8px 0;
}

.success-message[hidden] {
  display: none;
}

.success-title {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.success-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.4;
}

.footer {
  margin-top: 32px;
  padding: 32px 20px 48px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.footer-brand {
  display: block;
  margin: 0;
  font-family: "Lora", serif;
  font-size: 22px;
  color: #ffffff;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-links a {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  display: block;
  margin: 16px 0 0;
  color: rgba(232, 237, 242, 0.42);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .logo-section {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .app-store-link {
    margin-bottom: 16px;
  }

  .hero-mockup {
    max-width: 90%;
  }

  .about {
    margin-top: 0;
    padding: 0 20px;
  }

  .contact {
    margin-top: 32px;
    padding: 0 20px;
  }

  .contact-card {
    padding: 20px;
  }
}
