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

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --text-primary: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-card: #ffffff;
  --text-primary: #1f2328;
  --text-muted: #656d76;
  --border: #d0d7de;
  --accent: #0969da;
  --accent-hover: #0550ae;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-hover);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

[data-theme="light"] .nav {
  background-color: rgba(255, 255, 255, 0.85);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
  font-size: 1rem;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: inline;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ===== Sections ===== */
section {
  padding: 96px 24px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  padding-top: 160px;
  padding-bottom: 96px;
  text-align: center;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background-color: var(--bg-secondary);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.hero-cta:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Section Headers ===== */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== Problem Section ===== */
.problem {
  background-color: var(--bg-secondary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.problem-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s ease;
}

.problem-card:hover {
  border-color: var(--text-muted);
}

.problem-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.problem-card-icon svg {
  width: 20px;
  height: 20px;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ===== Solution Section ===== */
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.solution-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.solution-text p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.solution-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.solution-features li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(88, 166, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 1px;
}

.solution-features li .check svg {
  width: 13px;
  height: 13px;
}

.solution-visual {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.solution-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.diagram-box {
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.diagram-box.your-app {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.diagram-box.skipops {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.15), rgba(88, 166, 255, 0.05));
  border: 1px solid var(--accent);
  color: var(--accent);
}

.diagram-box.cloud {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.diagram-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.diagram-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* ===== Protect Section ===== */
.protect {
  background-color: var(--bg-secondary);
}

.protect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.protect-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.protect-card:hover {
  border-color: var(--accent);
}

.protect-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(88, 166, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.protect-card-icon svg {
  width: 22px;
  height: 22px;
}

.protect-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.protect-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Market Section ===== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.market-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s ease;
}

.market-card:hover {
  border-color: var(--text-muted);
}

.market-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.market-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.market-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== CTA / Contact Section ===== */
.cta {
  background-color: var(--bg-secondary);
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08), rgba(88, 166, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.cta-box .section-title {
  margin-bottom: 16px;
}

.cta-box .section-desc {
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-email:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.cta-email svg {
  width: 18px;
  height: 18px;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

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

  .solution-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 20px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .cta-box {
    padding: 40px 24px;
  }
}
