:root {
  --bg: #07111d;
  --panel: rgba(5, 16, 32, 0.72);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #ebf3ff;
  --muted: #a8bfdc;
  --accent: #8cc8ff;
  --accent-strong: #6682ff;
  --border: rgba(181, 212, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 10, 20, 0.35), rgba(2, 10, 20, 0.86)),
    url("assets/bg.jpg") center/cover no-repeat,
    radial-gradient(circle at top, #2d4f7d 0%, #0f1d35 45%, #07111d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  background-size: 100% 18px;
  opacity: 0.2;
  pointer-events: none;
}

.layout {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 22px;
}

.hero-frame,
.rain-letter,
.reply-card {
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-frame {
  min-height: 70vh;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.hero-visual {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  filter: grayscale(80%) contrast(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-copy {
  flex: 1;
  min-width: 300px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--muted);
}

.quote,
h1,
h2 {
  font-family: "DM Serif Display", serif;
}

.quote {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(1.3rem, 2.9vw, 2.3rem);
  line-height: 1.3;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
}

.summary {
  max-width: 620px;
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions,
.choice-grid,
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-button,
.solid-button,
.tab-button,
.choice-button {
  border-radius: 999px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.solid-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #041224;
  font-weight: 700;
  border-color: transparent;
}

.rain-letter,
.reply-card {
  padding: 24px;
}

.tab-button.active,
.choice-button.active {
  background: rgba(140, 200, 255, 0.18);
  border-color: rgba(140, 200, 255, 0.45);
}

.tab-panel {
  display: none;
  margin-top: 20px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.tab-panel h2,
.reply-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.tab-panel p,
.reply-form span,
.form-status {
  color: var(--muted);
}

.tab-panel p {
  margin: 0;
  line-height: 1.9;
}

.reply-card {
  display: grid;
  gap: 22px;
}

.reply-form {
  display: grid;
  gap: 16px;
}

.reply-form label {
  display: grid;
  gap: 8px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.form-status {
  min-height: 24px;
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .layout {
    width: min(100% - 18px, 1100px);
    padding: 18px 0 24px;
  }

  .hero-frame,
  .rain-letter,
  .reply-card {
    padding: 20px;
    border-radius: 24px;
  }
}
