:root {
  --primary: #FF7938; /* ZenOrange */
  --primary-hover: #E65C19;
  --primary-light: rgba(255, 121, 56, 0.08);
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-low: #EFF1F3;
  --text-primary: #2C2F31;
  --text-secondary: #595C5E;
  --outline: #DADDE0;
  --shadow: rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ───────────────────────────────────
   Navbar
   ─────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px max(24px, 10vw);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.brand-logo {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.btn-gopro {
  background: var(--text-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 700 !important;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-gopro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ───────────────────────────────────
   Hero
   ─────────────────────────────────── */
.hero {
  margin-top: 170px;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 32px;
}

/* CTA with glow pulse */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 28px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px -5px rgba(255, 121, 56, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  position: relative;
  animation: glowPulse 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px -5px rgba(255, 121, 56, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--outline);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 121, 56, 0.03);
}

/* ───────────────────────────────────
   App Mockup Preview
   ─────────────────────────────────── */
.mockup-container {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.app-mockup {
  width: 320px;
  height: 640px;
  background: var(--surface);
  border-radius: 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.08);
  border: 8px solid #F0F2F4;
  overflow: hidden;
  transform: rotateX(15deg) rotateY(-5deg) translateY(0px);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  animation: zenFloat 6s ease-in-out infinite;
}

.app-mockup:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-10px);
  animation-play-state: paused;
}

.mockup-top {
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mockup-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.02);
  margin: 12px 16px;
  box-shadow: 0 4px 12px var(--shadow);
}

/* ───────────────────────────────────
   Features Section
   ─────────────────────────────────── */
.features-section {
  padding: 100px 24px 80px;
  background: var(--surface);
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.features-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.features-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.feature-card {
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--bg);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Zen ripple on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 121, 56, 0.04);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.feature-card:hover::after {
  width: 400px;
  height: 400px;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(255, 121, 56, 0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  animation: zenBreathe 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ───────────────────────────────────
   Zen Keyframe Animations
   ─────────────────────────────────── */

/* Soft breathing scale — for icons and accents */
@keyframes zenBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Gentle vertical float — for the mockup */
@keyframes zenFloat {
  0%, 100% { transform: rotateX(15deg) rotateY(-5deg) translateY(0px); }
  50% { transform: rotateX(15deg) rotateY(-5deg) translateY(-12px); }
}

/* Glow pulse for CTA */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 10px 25px -5px rgba(255, 121, 56, 0.3); }
  50% { box-shadow: 0 10px 35px -3px rgba(255, 121, 56, 0.5); }
}

/* Fade in up — for initial hero */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

/* ───────────────────────────────────
   Scroll Reveal System
   ─────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.scroll-reveal:nth-child(1) { transition-delay: 0.00s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.07s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.14s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.21s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.28s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(7) { transition-delay: 0.42s; }
.scroll-reveal:nth-child(8) { transition-delay: 0.49s; }

/* ───────────────────────────────────
   Help Section
   ─────────────────────────────────── */
.help-section {
    max-width: fit-content;
    margin: 60px auto;
    padding: 16px 40px;
    background: var(--surface);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255,121,56,0.04);
}

.help-section p { color: var(--text-primary); margin-bottom: 0; font-size: 0.95rem; }
.help-section .email-link {
    color: var(--primary) !important;
    font-weight: 700;
    text-decoration: underline;
    background: none !important;
    padding: 0 !important;
    display: inline !important;
}

/* ───────────────────────────────────
   Footer
   ─────────────────────────────────── */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--outline);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ───────────────────────────────────
   Responsive
   ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .features-header h2 { font-size: 1.8rem; }
  .features-section { padding: 60px 20px; }
  .features-grid { gap: 16px; }
  .feature-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.85rem; }
  .hero { margin-top: 120px; }
  .hero h1 { font-size: 2rem; }
}
