/* Moventa - Apple-inspired redesign with animations */
:root {
  color-scheme: dark;
  
  /* Dark mode with blue accents */
  --bg: #000000;
  --bg-secondary: #0a0e1a;
  --bg-gradient-start: #001a33;
  --bg-gradient-end: #000814;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-glow: rgba(10, 132, 255, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(13, 17, 28, 0.8);
  --card-border: rgba(10, 132, 255, 0.2);
  --shadow: 0 4px 24px rgba(10, 132, 255, 0.15);
  --shadow-hover: 0 12px 48px rgba(10, 132, 255, 0.25);
  
  --max-width: 1140px;
  font-size: 17px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(ellipse at top, var(--bg-gradient-start), var(--bg-gradient-end) 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(10, 132, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(10, 132, 255, 0.1) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes backgroundFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(5%, 5%);
  }
  50% {
    transform: translate(-3%, 3%);
  }
  75% {
    transform: translate(3%, -5%);
  }
}

.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.009em;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
}

.noscript-note {
  background: var(--bg-secondary);
  color: var(--text);
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  padding: 0 22px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus {
  color: var(--accent-hover);
  opacity: 0.8;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.015em;
  transition: opacity 0.3s ease;
}

.brand:hover,
.brand:focus {
  opacity: 0.7;
}

.brand-name {
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  position: relative;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  opacity: 0.6;
}

.primary-nav a.is-active,
.primary-nav a[aria-current="true"] {
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.3s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  opacity: 0.6;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero {
  padding: clamp(80px, 12vw, 120px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 1068px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-copy h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-block;
  font-size: 19px;
  line-height: 1.21053;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: none;
}

.lead {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
}

@media (max-width: 1068px) {
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 1068px) {
  .hero-actions {
    justify-content: center;
  }
}

.app-store-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1.17648;
  font-weight: 400;
  letter-spacing: -0.022em;
  padding: 12px 24px;
  border-radius: 980px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  min-width: 28px;
  text-align: center;
  white-space: nowrap;
}

.app-store-button {
  background: var(--accent);
  color: #fff;
}

.app-store-button:hover,
.app-store-button:focus {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.ghost-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.ghost-button:hover,
.ghost-button:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.02);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(10, 132, 255, 0.3), 0 0 0 1px rgba(10, 132, 255, 0.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 6s ease-in-out infinite;
}

.hero-photo:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 30px 80px rgba(10, 132, 255, 0.4), 0 0 0 1px rgba(10, 132, 255, 0.2);
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-top: clamp(60px, 8vw, 100px);
}

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding-bottom: clamp(60px, 8vw, 100px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 40px 32px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover::after {
  opacity: 1;
}

.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .icon-chip {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 600;
  letter-spacing: -0.009em;
}

.feature-card p {
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
  margin: 0;
}

/* Showcase Section */
.showcase {
  padding-bottom: clamp(60px, 8vw, 100px);
}

.carousel {
  position: relative;
  padding: 0 22px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 0;
}

.carousel-slide {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.carousel-slide:hover,
.carousel-slide:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-slide figcaption {
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

/* Contact Section */
.contact {
  padding-bottom: clamp(80px, 10vw, 120px);
}

.contact-grid {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.contact-info {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 48px 40px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-info h3 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.14286;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.contact-info p {
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
  margin: 12px 0;
}

.contact-info a {
  color: var(--accent);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: auto;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-footer p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 32px;
}

.site-footer nav a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  transition: color 0.3s ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus {
  color: var(--text);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .primary-nav ul {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: var(--shadow);
  }

  .primary-nav ul.is-collapsed {
    display: none;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--border);
  }

  .primary-nav li:last-child {
    border-bottom: none;
  }

  .primary-nav a {
    display: block;
    padding: 16px 24px;
  }

  .carousel-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .app-store-button,
  .ghost-button {
    width: 100%;
  }
}

/* Reduced 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;
  }
  
  .fade-in-up,
  .fade-in,
  .scale-in {
    opacity: 1;
    transform: none;
  }
  
  .hero-photo {
    animation: none;
  }
}
