:root {
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eef2ff;
  --text: #172033;
  --text-muted: #5c6575;
  --border: #dfe4ec;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #e0e7ff;
  --focus: #f59e0b;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);

  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow-content {
  width: min(680px, 100%);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #ffffff;
  background: var(--primary);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.header-content,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--primary);
}

.hero {
  padding: 6.5rem 0 5.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 10%, rgba(129, 140, 248, 0.65), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.35), transparent 40%),
    #1e1b4b;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c7d2fe;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 1.75rem;
  color: #dbeafe;
  font-size: 1.1rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 5.5rem 0;
}

.section-muted {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.countdown-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.card {
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-group {
  margin-top: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #bbc3d0;
  border-radius: 0.65rem;
  outline: none;
  color: var(--text);
  background: #ffffff;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

.field-hint {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  border-radius: 0.65rem;
  font-weight: 750;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  color: #ffffff;
  background: var(--primary);
}

.primary-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.secondary-button {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.text-button {
  padding: 0.35rem 0;
  color: var(--primary);
  background: transparent;
}

.text-button:hover {
  color: var(--primary-hover);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.countdown-card {
  display: flex;
  flex-direction: column;
}

.target-description {
  min-height: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.time-unit {
  min-width: 0;
  padding: 1rem 0.5rem;
  border-radius: 0.85rem;
  text-align: center;
  background: #f5f7ff;
}

.time-value {
  display: block;
  overflow: hidden;
  color: var(--primary);
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
}

.time-label {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.copy-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-muted p:not(.eyebrow) {
  max-width: 650px;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  background: #ffffff;
}

.footer-content p {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    padding: 4.5rem 0 4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .countdown-layout {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 0.5rem;
  }

  .time-unit {
    padding: 0.85rem 0.25rem;
  }

  .header-content,
  .footer-content {
    min-height: 4rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }
}

@media (max-width: 400px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}