/* =========================================
   Daytitude Static Web Styles
   ========================================= */

:root {
  /* Default: Light Theme (Matches iOS Light Appearance) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #404c66;
  
  --action-primary: #4f46e5;
  --action-primary-hover: #4338ca;
  --action-danger: #e11d48;
  --action-success: #059669;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  --transition-normal: 0.3s ease;
  --transition-fast: 0.15s ease-out;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-primary: #020617;
  --bg-secondary: #1a1e33;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --action-primary: #6366f1;
  --action-primary-hover: #818cf8;
  --action-danger: #f43f5e;
  --action-success: #10b981;

  --glass-bg: rgba(26, 30, 51, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glass Header */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  color: var(--action-primary);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  min-height: 80vh;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--action-primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--action-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out;
}

[data-theme="dark"] .hero-title {
  background: linear-gradient(135deg, #ffffff 0%, var(--action-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
  animation: fadeInUp 1s ease-out;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--action-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 8px 20px -6px var(--action-primary);
  animation: fadeInUp 1.2s ease-out;
}

.hero-cta:hover {
  background-color: var(--action-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px var(--action-primary);
}

/* Visual Placeholder for App Mockup */
.hero-mockup-wrapper {
  margin-top: 60px;
  perspective: 1000px;
  animation: fadeIn 1.5s ease-out;
}

.mockup-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
  transform: rotateX(5deg) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mockup-card:hover {
  transform: rotateX(0deg) scale(1);
}

.mockup-placeholder {
  height: 300px;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(79,70,229,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
}

.footer-text {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.125rem;
  }
  .mockup-placeholder {
    height: 200px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
