/* Vespera Splash Stylesheet */

:root {
  --primary: #3DD9D9;
  --primary-hover: #2cbdbd;
  --secondary: #3B82F6;
  --secondary-hover: #2563EB;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748B;
  
  --category-light: #FEF3C7;
  --category-light-text: #D97706;
  --category-hydration: #DBEAFE;
  --category-hydration-text: #2563EB;
  --category-metabolic: #D1FAE5;
  --category-metabolic-text: #059669;
  --category-nutrition: #F3E8FF;
  --category-nutrition-text: #7C3AED;
  --category-rest: #E0F2FE;
  --category-rest-text: #0284C7;
  
  --font-family: 'Lexend', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  opacity: 0.4;
  z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #000000;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 217, 217, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--border);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Header */
.header {
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(61, 217, 217, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background-color: #0f172a;
  border: 12px solid #334155;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 24px;
  background-color: #334155;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--background);
  padding: 36px 20px 20px;
  display: flex;
  flex-direction: column;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.battery {
  width: 20px;
  height: 10px;
  border: 1px solid var(--text-muted);
  border-radius: 3px;
  position: relative;
}

.battery::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 1px;
}

.card-today {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-badge {
  display: inline-block;
  background-color: rgba(61, 217, 217, 0.15);
  color: #0b8080;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.timer-dial {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 6px solid var(--border);
  border-top-color: var(--primary);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.timer-unit {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.sos-coach-preview {
  margin-top: auto;
  background-color: #0f172a;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.coach-avatar {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #000;
}

.coach-text {
  font-size: 11px;
  color: #f1f5f9;
  line-height: 1.4;
}

/* Features */
.features {
  padding: 100px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  border-radius: 20px;
  background-color: var(--background);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(61, 217, 217, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #0b8080;
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Simulator Section */
.simulator {
  padding: 100px 0;
  background-color: var(--background);
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background-color: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.sim-box-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.sim-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  font-family: var(--font-family);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(61, 217, 217, 0.15);
}

.timeline-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 24px;
  font-size: 14px;
}

.timeline-flow {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border);
  border: 2px solid var(--surface);
  transition: var(--transition);
}

.timeline-item.active .timeline-dot {
  background-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(61, 217, 217, 0.25);
}

.timeline-content {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
}

.timeline-category {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Category Colors */
.category-light { background-color: var(--category-light); color: var(--category-light-text); }
.category-hydration { background-color: var(--category-hydration); color: var(--category-hydration-text); }
.category-metabolic { background-color: var(--category-metabolic); color: var(--category-metabolic-text); }
.category-nutrition { background-color: var(--category-nutrition); color: var(--category-nutrition-text); }
.category-rest { background-color: var(--category-rest); color: var(--category-rest-text); }

.hidden {
  display: none !important;
}

/* Architecture Section */
.architecture {
  padding: 100px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.arch-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.arch-card:hover {
  border-color: var(--secondary);
}

.arch-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.arch-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 80px 0 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo-text {
  color: #ffffff;
}

.footer-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 40px;
  text-align: center;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid, .arch-grid {
    grid-template-columns: 1fr;
  }
  
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
  }
}
