:root {
  --bg-1: #fefefe;
  --bg-2: #f8f9fa;
  --card: rgba(0, 0, 0, 0.04);
  --glass: rgba(0, 0, 0, 0.02);
  --accent: #7c3aed;
  --muted: #6b7280;
  --radius: 14px;
  --max-width: 920px;
  --glass-border: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg-1);
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

/* Layout card */
.container {
  width: 100%;
  max-width: var(--max-width);
}
.card {
  background: transparent;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: none;
  backdrop-filter: none;
}

/* Brand */
.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.logo {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.logo .accent {
  color: var(--accent);
}

/* Hero area */
.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 6px 0;
  text-align: center;
}

/* Video container */
.video-container {
  width: 70%;
  max-width: 425px;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.1),
    rgba(124, 58, 237, 0.05)
  );
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto 10px auto;
}

.video-container::before {
  content: "🎬";
  font-size: 48px;
  opacity: 0.3;
}

h1 {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 36px);
  line-height: 1.04;
  font-weight: 600;
}
.subtitle {
  margin: 0 auto;
  color: var(--muted);
  max-width: 60ch;
  font-size: 15px;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 20px;
  margin: 60px auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.time {
  background: transparent;
  padding: 20px 20px 20px 20px;
  border-radius: 12px;
  min-width: 90px;
  text-align: center;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 150px;
}
.time span {
  display: block;
  font-weight: 400;
  font-size: 48px;
  color: #1f2937;
  line-height: 0.6;
  /* Add vertical stretch for height effect */
  transform: scaleY(2.5);
  display: inline-block;
  margin-bottom: 50px;
  font-family: "Times New Roman", Times, serif;
  /* Enhanced text rendering for clarity */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Create stretch effect without blurriness */
  letter-spacing: 2px;
  font-stretch: expanded;
  /* Transform origin for better scaling */
  transform-origin: center bottom;
}
.time small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: auto;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* Subscribe form */
.subscribe {
  margin: 20px auto 14px auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
}

.subscribe input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.subscribe input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.subscribe input[type="email"].error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.subscribe input[type="email"].success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.subscribe input::placeholder {
  color: rgba(107, 114, 128, 0.7);
}

.btn {
  background: linear-gradient(90deg, #1f2937, #111827);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Form message styles */
.form-message {
  margin: 8px auto 0 auto;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  max-width: 400px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  display: block;
}

.form-message:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.form-message.error {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid #dc2626;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px auto 0 auto;
  opacity: 1 !important;
  transform: translateY(0) !important;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  display: block !important;
}

.form-message.success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  margin: 15px auto 0 auto;
  opacity: 1;
  transform: translateY(0);
  font-weight: 500;
}

/* Footer & misc */
.note {
  display: none;
  margin: 8px auto 0 auto;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: underline;
}
.social {
  display: none;
  gap: 10px;
  margin: 16px auto 10px auto;
  justify-content: center;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  color: #6b7280;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.icon svg {
  width: 18px;
  height: 18px;
}

.foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Accessibility helper */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 560px) {
  .countdown {
    gap: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    max-width: 240px;
    margin: 60px auto;
    height: 180px;
  }

  /* Days and Hours on first row */
  .countdown .time:nth-child(1) {
    /* Days */
    grid-column: 1;
    grid-row: 1;
  }

  .countdown .time:nth-child(2) {
    /* Hours */
    grid-column: 2;
    grid-row: 1;
  }

  /* Mins and Secs on second row */
  .countdown .time:nth-child(3) {
    /* Mins */
    grid-column: 1;
    grid-row: 2;
  }

  .countdown .time:nth-child(4) {
    /* Secs */
    grid-column: 2;
    grid-row: 2;
  }

  .time {
    min-width: 70px;
    padding: 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .time span {
    font-size: 24px;
    transform: scale(1.15, 2.5);
    margin: 0;
  }
  .time small {
    font-size: 12px;
    margin-top: 20px !important;
  }

  .card {
    padding: 20px;
  }
  .video-container {
    height: 150px;
    width: 70%;
  }
  .video-container::before {
    font-size: 24px;
  }
  .subscribe {
    width: 200px;
  }
}
