:root {
  --color-primary: #006c75;
  --color-primary-dark: #005058;
  --color-primary-light: #338990;
  --color-accent-cyan: #00E5FF;
  --color-ink: #1A1A1A;
  --color-secondary-text: #64748B;
  --color-grey: #9E9E9E;
  --color-bg: #F9FAFB;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-success: #00C853;
  --color-error: #FF3D00;

  --rounded-sm: 4px;
  --rounded-md: 10px;
  --rounded-lg: 16px;
  --rounded-xl: 24px;
  --rounded-pill: 28px;

  --shadow-card: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 4px 20px rgba(0, 0, 0, 0.06);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-section: 80px;

  --font-stack: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
}

.nav-brand svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary-text);
  transition: color 150ms ease;
}

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

/* ---- Hero ---- */
.hero {
  padding-top: 128px;
  padding-bottom: var(--space-section);
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--color-primary);
  text-wrap: balance;
  margin-bottom: var(--space-xl);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-ink);
  text-wrap: balance;
  margin-bottom: var(--space-lg);
}

.hero .subtitle {
  font-size: 1.125rem;
  color: var(--color-secondary-text);
  max-width: 600px;
  margin: 0 auto var(--space-xxl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-xxl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--rounded-pill);
  font-family: var(--font-stack);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-surface);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

.hero-mockup {
  max-width: 290px;
  margin: 0 auto;
  aspect-ratio: 9 / 20;
  background: #111;
  border-radius: 24px;
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(255,255,255,0.08);
  padding: 8px;
  position: relative;
}

.hero-mockup-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #F9FAFB;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mockup-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #1a1a2e;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.mockup-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 2px;
  font-size: 11px;
  font-weight: 600;
  color: #1A1A1A;
}

.mockup-statusbar > span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mockup-time {
  margin-left: 40px;
}

.mockup-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 4px 16px 0;
}

.mockup-header-titles h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.0;
  color: #006c75;
}

.mockup-header-titles span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #64748B;
  margin-top: 2px;
}

.mockup-header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,108,117,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #006c75;
  flex-shrink: 0;
}

.mockup-header-btn svg {
  width: 18px;
  height: 18px;
}

.mockup-search {
  margin: 10px 16px 6px;
  padding: 0 14px;
  height: 38px;
  background: #FFFFFF;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  color: #9E9E9E;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.mockup-search svg {
  width: 16px;
  height: 16px;
  color: #006c75;
  flex-shrink: 0;
}

.mockup-section-label {
  padding: 8px 16px 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #64748B;
  text-transform: uppercase;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 16px;
  flex: 1;
  overflow: hidden;
}

.mockup-grid-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-grid-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.mockup-grid-card strong {
  font-size: 11px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
}

.mockup-grid-card .mockup-card-code {
  font-size: 10px;
  font-weight: 700;
  color: #006c75;
  font-family: 'Courier New', monospace;
}

.mockup-suggest {
  margin: 6px 16px;
}

.mockup-suggest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
  border: 1.5px solid #006c75;
  color: #006c75;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
}

.mockup-suggest-btn svg {
  width: 14px;
  height: 14px;
}

.mockup-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 6px 12px 10px;
  padding: 6px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}

.mockup-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #9E9E9E;
  font-size: 8px;
  width: 44px;
  padding: 4px 0;
}

.mockup-nav-item.active {
  color: #006c75;
}

.mockup-nav-item svg {
  width: 18px;
  height: 18px;
}

.mockup-nav-item.active svg {
  fill: #006c75;
  stroke: #006c75;
}

.mockup-sb {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1A1A1A;
}

.mockup-sb svg {
  width: 14px;
  height: 10px;
}

/* ---- Section styling ---- */
.section {
  padding: var(--space-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: var(--space-lg);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-secondary-text);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--rounded-xl);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow 200ms ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-elevated);
}

.feature-card:nth-child(4),
.feature-card:nth-child(5),
.feature-card:nth-child(6) {
  background: var(--color-bg);
  border-color: transparent;
  box-shadow: none;
}

.feature-card:nth-child(4):hover,
.feature-card:nth-child(5):hover,
.feature-card:nth-child(6):hover {
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-lg);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-secondary-text);
  line-height: 1.6;
}

/* ---- How It Works ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 680px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.step-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--color-secondary-text);
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 24px;
  background: var(--color-border);
  margin-left: 19px;
}

/* ---- Download CTA ---- */
.cta-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 64px 32px;
  border-radius: var(--rounded-xl);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}

.cta-icon svg {
  width: 56px;
  height: 56px;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: var(--space-lg);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--color-secondary-text);
  max-width: 480px;
  margin: 0 auto var(--space-xxl);
}

.cta-box .btn-primary {
  font-size: 1.05rem;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
  border: none;
  box-shadow: 0 6px 24px rgba(0, 108, 117, 0.3);
  font-weight: 800;
  transition: all 0.25s ease;
}

.cta-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 108, 117, 0.4);
}

.dl-link {
  text-decoration: none;
}

/* ---- Footer ---- */
.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-grey);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  font-weight: 700;
  color: var(--color-secondary-text);
  transition: color 150ms ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .section {
    padding: 48px 0;
  }

  :root {
    --space-section: 48px;
  }

  .nav-links {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

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

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
