:root {
  --bg-dark: #090d16;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent-primary: #38bdf8;
  --accent-secondary: #818cf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background-color: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-corner {
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-heading);
  background-color: var(--bg-dark);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
}

.app-container {
  position: relative;
  z-index: 1;
  width: 94vw;
  max-width: 1600px;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.app-header {
  text-align: center;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.date-line {
  display: inline-block;
  white-space: nowrap;
}

.subtitle {
  color: var(--text-muted);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.countdown-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 4rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(7, auto);
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.unit-value {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.unit-label {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 600;
}

.timer-separator {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 2rem;
}

.progress-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.progress-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.progress-label {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-percent {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 12vw, 9.5rem);
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.progress-bar-track {
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.target-info strong {
  color: var(--text-main);
}

.domain-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.domain-link:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--text-main);
  transform: translateY(-2px);
}

@media (max-height: 700px) {
  .app-container {
    gap: 1rem;
    padding: 1rem;
  }
  .countdown-card {
    padding: 2rem;
  }
  .progress-bar-track {
    height: 40px;
  }
}
