:root {
  --blue: #1e88a8;
  --blue-dark: #125c73;
  --white: #ffffff;
  --terracotta: #c87437;
  --terracotta-dark: #a65c28;
  --sand: #f5e9c8;
  --sand-dark: #e0ce9f;
  --text: #333333;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  background: var(--blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  padding-bottom: 120px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  border: 12px solid rgba(255,255,255,0.15);
}

.wave {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
}

/* Forms */
.form-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  color: var(--text);
  margin-top: 32px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-dark);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--sand-dark);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 136, 168, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

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

.error-msg {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.status-message {
  text-align: center;
  padding: 20px 10px;
}

/* Tracker Section */
.tracker-section {
  background: var(--sand);
  padding: 60px 24px 120px;
  position: relative;
}

.tracker-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.calendar-panel {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.calendar-panel h2 {
  color: var(--blue-dark);
  margin-bottom: 8px;
  font-size: 2rem;
}

.calendar-panel p {
  color: #666;
  margin-bottom: 24px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.day-box {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-dark);
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.day-box.entered {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(200, 116, 55, 0.3);
}

.day-box.entered::after {
  content: "✓";
  position: absolute;
  font-size: 1.2rem;
  font-weight: bold;
}

.day-box.entered span {
  opacity: 0;
}

.day-box.today {
  border: 2px solid var(--blue);
  animation: pulse 2s infinite;
}

.day-box.missed {
  opacity: 0.6;
  background: rgba(0,0,0,0.03);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 136, 168, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(30, 136, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 136, 168, 0); }
}

/* Stats */
.stat-card, .share-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  text-align: center;
}

.stat-card h3, .share-card h3 {
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.stat-number {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin: 16px 0;
}

.share-card p {
  font-size: 0.95rem;
  margin: 12px 0;
  color: #666;
}

.share-actions {
  display: flex;
  gap: 8px;
}

.share-actions input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--sand-dark);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fdfbf7;
  color: var(--text);
  min-width: 0;
}

.btn-secondary {
  padding: 0 20px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--blue-dark);
}

/* Prize Section */
.prize-section {
  background: var(--white);
  padding: 80px 24px 100px;
  text-align: center;
}

.prize-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 20px 50px rgba(30, 136, 168, 0.05);
}

.prize-info h2 {
  color: var(--terracotta);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.prize-info h3 {
  font-size: 2.5rem;
  color: var(--blue-dark);
  line-height: 1.2;
}

.prize-features {
  list-style: none;
  margin: 40px 0;
  text-align: left;
  display: inline-block;
}

.prize-features li {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 16px;
}

.prize-features li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
}

.value-tag {
  display: inline-block;
  padding: 12px 24px;
  background: var(--sand);
  color: var(--blue-dark);
  font-weight: 700;
  border-radius: 8px;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-image {
    padding-bottom: 60px;
  }
  .tracker-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .calendar {
    grid-template-columns: repeat(6, 1fr);
  }
  .calendar-panel {
    padding: 24px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .prize-card {
    padding: 30px 20px;
  }
  .prize-info h3 {
    font-size: 2rem;
  }
  .prize-features li {
    font-size: 1rem;
  }
}