:root {
  --background: #0a0806;
  --foreground: #f0e6d6;
  --surface: #131008;
  --card: #1a140d;
  --card-elevated: #221b12;
  --accent-primary: #d4925a;
  --accent-primary-hover: #e8b07a;
  --accent-secondary: #a88958;
  --accent-tertiary: #d9b878;
  --text-primary: #f0e6d6;
  --text-secondary: #c9b9a3;
  --text-muted: #8e7d6a;
  --border-medium: #3d332a;
  --border-strong: #52453a;
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.65);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  --glow-accent: 0 0 22px rgba(212, 146, 90, 0.45);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(212, 146, 90, 0.15), transparent 55%),
              radial-gradient(circle at 12% 18%, rgba(73, 59, 46, 0.35), transparent 60%),
              var(--background);
  color: var(--foreground);
  font-family: "Cinzel", "Cormorant Garamond", "Georgia", serif;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"%3E%3Cpath fill="none" stroke="rgba(143,118,83,0.06)" stroke-width="1" d="M150,0 L150,300 M0,150 L300,150 M0,0 L300,300 M0,300 L300,0"/%3E%3C/svg%3E');
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.wrapper {
  position: relative;
  width: min(1200px, 100%);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px);
  background: linear-gradient(145deg, rgba(34, 27, 18, 0.8), rgba(19, 16, 8, 0.92));
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.wrapper::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 26px;
  background: radial-gradient(circle at top left, rgba(212, 146, 90, 0.07), transparent 65%),
              radial-gradient(circle at bottom right, rgba(217, 184, 120, 0.06), transparent 55%);
  pointer-events: none;
}

header {
  position: relative;
  margin-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

.crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(84px, 10vw, 104px);
  height: clamp(84px, 10vw, 104px);
  border-radius: 50%;
  border: 2px solid var(--accent-tertiary);
  background: radial-gradient(circle, rgba(212, 146, 90, 0.35), rgba(26, 20, 13, 0.9));
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.4), var(--glow-accent);
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 42px);
  color: var(--accent-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.subtitle {
  margin: 16px auto 0;
  max-width: 680px;
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.6;
  color: var(--text-secondary);
}

.divider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: clamp(28px, 5vw, 48px) auto;
  padding: 0 24px;
  color: var(--accent-secondary);
  font-size: 18px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1 1 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 184, 120, 0), rgba(217, 184, 120, 0.45));
}

.divider::after {
  background: linear-gradient(90deg, rgba(217, 184, 120, 0.45), rgba(217, 184, 120, 0));
}

.countdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.timer-card {
  position: relative;
  padding: 20px 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(212, 146, 90, 0.25);
  background: linear-gradient(160deg, rgba(34, 27, 17, 0.7), rgba(18, 14, 9, 0.92));
  box-shadow: inset 0 1px 0 rgba(212, 146, 90, 0.08);
  text-align: center;
}

.timer-value {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-tertiary);
}

.timer-label {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

.card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(82, 69, 58, 0.6);
  background: linear-gradient(150deg, rgba(26, 20, 13, 0.78), rgba(18, 14, 9, 0.95));
  box-shadow: inset 0 1px 0 rgba(240, 230, 214, 0.04);
}

.card h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-tertiary);
}

.card p,
.card li {
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.card li::before {
  content: "✦";
  color: var(--accent-primary);
  margin-right: 12px;
  font-size: 14px;
}

.card a {
  color: var(--accent-primary);
  text-decoration: none;
}

.card a:hover {
  color: var(--accent-primary-hover);
}

.cta-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.cta-form label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}

.cta-form input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(212, 146, 90, 0.35);
  background: rgba(10, 8, 6, 0.85);
  color: var(--text-primary);
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(212, 146, 90, 0.15);
}

.cta-form button {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--background);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--glow-accent);
}

.cta-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 146, 90, 0.35);
}

.cta-form button:active {
  transform: translateY(0);
}

.cta-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  padding: 12px 18px;
  border-radius: 12px;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  font-size: 14px;
  text-align: center;
}

.form-message.success {
  background: rgba(168, 137, 88, 0.2);
  border: 1px solid rgba(168, 137, 88, 0.4);
  color: var(--accent-tertiary);
}

.form-message.error {
  background: rgba(180, 80, 60, 0.2);
  border: 1px solid rgba(180, 80, 60, 0.4);
  color: #f0a090;
}

.cta {
  margin-top: clamp(32px, 6vw, 56px);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.cta p {
  margin: 0;
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
}

.cta button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 16px 42px;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--background);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--glow-accent);
}

.cta button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(212, 146, 90, 0.35);
}

.cta button:active {
  transform: translateY(-1px);
}

footer {
  margin-top: clamp(36px, 5vw, 56px);
  font-size: 13px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.sig {
  margin-top: 2px;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: rgba(240, 230, 214, 0.45);
}

@media (max-width: 640px) {
  .cta button {
    width: 100%;
  }
}

.delay-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 480px;
  width: 90%;
  padding: 32px;
  background: linear-gradient(160deg, var(--card), var(--card-elevated));
  border: 1px solid rgba(212, 146, 90, 0.4);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: var(--text-primary);
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}

.delay-popup h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--accent-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delay-popup p {
  margin: 14px 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.delay-popup button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--background);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--glow-accent);
}

.delay-popup button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 146, 90, 0.35);
}

.delay-popup.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to { opacity: 0; transform: translate(-50%, -52%); }
}

