/* Uptiko — Dark theme marketing site */

:root {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-card: #1E293B;
  --bg-card-hover: #334155;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #334155;
  --green: #22C55E;
  --yellow: #EAB308;
  --red: #EF4444;
  --pro-badge: #8B5CF6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-pricing:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 3px;
}

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

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

/* ── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* ── Hamburger button (hidden on desktop) ─────────────────────────────── */

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s, transform 0.1s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}


/* ── Section shared ───────────────────────────────────────────────────── */

section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

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

.section-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 48px;
}

.section-center {
  text-align: center;
}

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

/* ── Pain points ──────────────────────────────────────────────────────── */

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

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.pain-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pain-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ── Features ─────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-badge {
  display: inline-block;
  background: var(--pro-badge);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── How it works ─────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px;
  text-align: center;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 14px;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ── Privacy section ──────────────────────────────────────────────────── */

.privacy-section {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  border: 1px solid var(--border);
}

.privacy-section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.privacy-section p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.privacy-points {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.privacy-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.privacy-point .check {
  color: var(--green);
  font-size: 20px;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-card.featured::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .price {
  font-size: 40px;
  font-weight: 800;
  margin: 16px 0 4px;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card .price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
}

.btn-pricing {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-pricing-primary {
  background: var(--accent);
  color: #fff;
}

.btn-pricing-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-pricing-secondary {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-pricing-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

.pricing-options {
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-option {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-option span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
}

.addon-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.addon-note strong {
  color: var(--text-primary);
}


/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

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

/* ── 404 ──────────────────────────────────────────────────────────────── */

.error-page {
  min-height: calc(100vh - 64px - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-page h1 {
  font-size: 120px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ── Privacy policy page ──────────────────────────────────────────────── */

.legal {
  padding: 120px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal strong {
  color: var(--text-primary);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

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

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }

  .nav-links.open {
    display: flex;
  }

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

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 8px;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    padding: 110px 0 60px;
  }

  section {
    padding: 60px 0;
  }

  .privacy-section {
    padding: 48px 24px;
  }

  .privacy-points {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }


}

/* ── Print ────────────────────────────────────────────────────────────── */

@media print {
  *, *::before, *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #ccc !important;
  }

  body { font-size: 12pt; line-height: 1.5; }

  .nav, .footer, .nav-hamburger { display: none !important; }

  .legal { padding-top: 0; }

  a { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555 !important; }
  a[href^="#"]::after, a[href^="mailto:"]::after { content: ""; }
}
