/* Dessert:Block Dash Landing Page - Serene Flow × Candy Jewel Tones */

/* ========== CSS Variables ========== */
:root {
  /* Candy Jewel Tone Palette - Rich but calming colors */
  --candy-strawberry: #e85d75;
  --candy-grape: #9b6fd8;
  --candy-mint: #5ec9a7;
  --candy-lemon: #f5c842;
  --candy-blueberry: #6b8dd6;
  --candy-orange: #ff9a56;
  
  /* Neutrals */
  --cream-bg: #fef9f3;
  --cream-light: #fffbf7;
  --text-dark: #2d2822;
  --text-medium: #5a5248;
  --text-light: #8a7f71;
  
  /* Semantic colors */
  --primary: var(--candy-grape);
  --secondary: var(--candy-strawberry);
  --accent: var(--candy-mint);
  --warning: var(--candy-lemon);
  
  /* Gradient backgrounds */
  --gradient-hero: linear-gradient(135deg, #fef9f3 0%, #fff5ed 50%, #f8f4ff 100%);
  --gradient-cta: linear-gradient(135deg, var(--candy-grape) 0%, var(--candy-strawberry) 100%);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  
  /* Sizes */
  --header-height-mobile: 48px;
  --header-height-desktop: 64px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 40, 34, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 40, 34, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 40, 34, 0.16);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-medium);
}

/* Tabular figures for numbers */
.tabular {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ========== Layout Utilities ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height-mobile);
  background: var(--cream-light);
  border-bottom: 1px solid rgba(45, 40, 34, 0.08);
  backdrop-filter: blur(12px);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-nav {
  display: none;
}

.header-nav a {
  margin-left: var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav a:active {
  color: var(--secondary);
}

.header-cta-mobile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta-mobile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.header-cta-mobile:active {
  transform: translateY(0);
}

.header-cta-desktop {
  display: none;
}

/* ========== Hero Section ========== */
.hero {
  background: var(--gradient-hero);
  padding-top: calc(var(--header-height-mobile) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(155, 111, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--candy-grape) 0%, var(--candy-strawberry) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-visual {
  margin-top: var(--space-xl);
}

.hero-visual img {
  width: 100%;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ========== Download Buttons ========== */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-width: 280px;
  min-height: 56px;
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.btn-download-google {
  background: var(--text-dark);
  color: white;
}

.btn-download-google:hover {
  background: #3d3832;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-download-google:active {
  transform: translateY(0);
}

.btn-download-apple {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
  position: relative;
}

.btn-download-apple::after {
  content: 'Coming Soon';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--candy-orange);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-download-icon {
  font-size: 1.5rem;
}

.btn-download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.btn-download-label {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.8;
}

.btn-download-store {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ========== Features Section ========== */
.features {
  background: var(--cream-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.section-description {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--cream-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  border-radius: var(--border-radius-sm);
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.feature-description {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* ========== Download CTA Section ========== */
.download-cta {
  background: var(--gradient-cta);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.download-cta-content {
  position: relative;
  z-index: 2;
}

.download-cta-title {
  font-size: 2rem;
  color: white;
  margin-bottom: var(--space-md);
}

.download-cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.download-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.btn-download-light {
  background: white;
  color: var(--text-dark);
}

.btn-download-light:hover {
  background: var(--cream-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-download-light:active {
  transform: translateY(0);
}

/* ========== Sticky CTA (Mobile only) ========== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--cream-light);
  border-top: 1px solid rgba(45, 40, 34, 0.1);
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 -4px 16px rgba(45, 40, 34, 0.12);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-cta-button {
  width: 100%;
  min-height: 48px;
  background: var(--gradient-cta);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: transform 0.2s ease;
}

.sticky-cta-button:active {
  transform: scale(0.98);
}

/* ========== About Section ========== */
.about {
  background: var(--cream-light);
}

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

.about-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.about-description {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.about-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  background: var(--cream-bg);
  border-radius: var(--border-radius-md);
  transition: all 0.25s ease;
}

.about-contact:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.about-contact:active {
  transform: translateY(0);
}

/* ========== Footer ========== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.footer-contact {
  margin-bottom: var(--space-lg);
}

.footer-email {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: white;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: white;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== Responsive Design ========== */
@media (min-width: 768px) {
  /* Typography scaling */
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  /* Header */
  .header {
    height: var(--header-height-desktop);
  }
  
  .header-nav {
    display: flex;
    align-items: center;
  }
  
  .header-cta-mobile {
    display: none;
  }
  
  .header-cta-desktop {
    display: block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-cta);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .header-cta-desktop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .header-cta-desktop:active {
    transform: translateY(0);
  }
  
  /* Hero - Diagonal split layout */
  .hero {
    padding-top: calc(var(--header-height-desktop) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }
  
  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-icon {
    margin: 0 0 var(--space-md) 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-cta {
    flex-direction: row;
    gap: var(--space-md);
  }
  
  .hero-visual {
    margin-top: 0;
    position: relative;
  }
  
  .hero-visual::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(94, 201, 167, 0.1) 0%, transparent 70%);
    z-index: -1;
  }
  
  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Download CTA */
  .download-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  /* Sticky CTA hidden on desktop */
  .sticky-cta {
    display: none;
  }
  
  /* Footer */
  .footer-legal {
    flex-direction: row;
    gap: var(--space-lg);
  }
  
  .footer-legal::before {
    content: '';
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
  }
}

@media (min-width: 1024px) {
  /* Container wider */
  .container {
    padding: 0 var(--space-xl);
  }
  
  /* Features 3-column grid */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero larger */
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
}

/* ========== Accessibility & Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Ensure touch targets are at least 44x44px */
button, a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Exception for text links in paragraphs */
p a {
  min-width: auto;
  min-height: auto;
  display: inline;
}
