:root {
  --color-mist-darkest: #0A0D12;
  --color-mist-darker: #141820;
  --color-mist-dark: #1E2530;
  --color-mist-medium: #2A3342;
  --color-mist-light: #3A4556;
  --color-fog: #B8C5D6;
  --color-text-primary: #E8EDF4;
  --color-text-secondary: #B8C5D6;
  --color-sea-teal: #4A8B8C;
  --color-sea-teal-bright: #5FA9AA;
  --color-coral: #D98977;
  --color-coral-muted: #B87665;
  
  --font-display: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  --shadow-sm: 0 2px 8px rgba(10, 13, 18, 0.15);
  --shadow-md: 0 4px 16px rgba(10, 13, 18, 0.2);
  --shadow-lg: 0 8px 32px rgba(10, 13, 18, 0.3);
  
  --transition-fast: 200ms ease;
  --transition-medium: 350ms ease;
  --transition-slow: 500ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-mist-darkest);
  overflow-x: hidden;
}

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

a {
  color: var(--color-sea-teal-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-coral);
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 197, 214, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.header-nav {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-sea-teal-bright);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--color-sea-teal);
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--color-sea-teal-bright);
  box-shadow: 0 0 20px rgba(74, 139, 140, 0.4);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(64px + var(--space-2xl)) var(--space-md) var(--space-2xl);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

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

.hero-icon-well {
  margin: 0 auto var(--space-md);
  width: 96px;
  height: 96px;
  padding: 12px;
  background: linear-gradient(135deg, var(--color-mist-dark) 0%, var(--color-mist-medium) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184, 197, 214, 0.15);
}

.hero-icon {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.4;
  color: var(--color-sea-teal-bright);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.hero-description {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
  margin: 0 auto;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--color-sea-teal) 0%, var(--color-sea-teal-bright) 100%);
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 12px rgba(74, 139, 140, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 56px;
}

.btn-download:hover,
.btn-download:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(74, 139, 140, 0.5), 0 8px 20px rgba(74, 139, 140, 0.4);
}

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

.btn-google {
  background: linear-gradient(135deg, var(--color-sea-teal) 0%, var(--color-sea-teal-bright) 100%);
}

.btn-apple {
  background: #2a2a2a;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-apple:hover,
.btn-apple:focus {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  text-align: left;
}

.btn-label {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-store {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.coming-soon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-coral);
  color: var(--color-mist-darkest);
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(217, 137, 119, 0.4);
}

.hero-visual {
  width: 100%;
}

.mystery-frame {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-mist-dark) 0%, var(--color-mist-medium) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184, 197, 214, 0.15);
}

.hero-banner {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.frame-accent {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-sea-teal);
  opacity: 0.6;
}

.frame-accent-tl {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.frame-accent-tr {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
}

.frame-accent-bl {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
}

.frame-accent-br {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.mist-layer {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 13, 18, 0.3) 100%);
  pointer-events: none;
}

.mist-layer-1 {
  top: -25%;
  left: -25%;
  opacity: 0.6;
}

.mist-layer-2 {
  bottom: -25%;
  right: -25%;
  opacity: 0.4;
}

.features {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-mist-darker);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-xl);
}

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

.feature-card {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-mist-dark) 0%, var(--color-mist-medium) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 197, 214, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover,
.feature-card:focus-within {
  border-color: var(--color-sea-teal);
  box-shadow: 0 0 24px rgba(74, 139, 140, 0.25), var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon-well {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 139, 140, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--color-sea-teal-bright);
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.feature-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.download-cta {
  padding: var(--space-2xl) var(--space-md);
  background: linear-gradient(135deg, var(--color-mist-dark) 0%, var(--color-mist-medium) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-sea-teal), transparent);
  opacity: 0.5;
}

.download-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.download-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.download-buttons-large {
  max-width: 500px;
}

.about {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-mist-darkest);
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-content {
  margin-top: var(--space-xl);
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.contact-link {
  color: var(--color-sea-teal-bright);
  text-decoration: underline;
  text-decoration-color: rgba(74, 139, 140, 0.3);
  transition: all var(--transition-fast);
}

.contact-link:hover,
.contact-link:focus {
  color: var(--color-coral);
  text-decoration-color: var(--color-coral);
}

.footer {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-mist-darker);
  border-top: 1px solid rgba(184, 197, 214, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.footer-contact,
.footer-legal {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--color-sea-teal-bright);
}

.footer-divider {
  opacity: 0.5;
}

.footer-copyright {
  font-size: 14px;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: rgba(10, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(184, 197, 214, 0.1);
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

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

.sticky-cta-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--color-sea-teal) 0%, var(--color-sea-teal-bright) 100%);
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(74, 139, 140, 0.4);
}

.sticky-cta-btn:hover,
.sticky-cta-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(74, 139, 140, 0.6);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .hero-content {
    flex: 1;
    text-align: left;
  }

  .hero-icon-well {
    margin: 0 0 var(--space-md) 0;
  }

  .hero-description {
    margin: 0 0 var(--space-xl) 0;
  }

  .download-buttons {
    flex-direction: row;
    margin: 0;
  }

  .hero-visual {
    flex: 1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-buttons-large {
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .feature-card {
    opacity: 1;
    transform: none;
  }
}
