:root {
  --blue:    #0052cc;
  --blue-dk: #003d99;
  --blue-lt: #e6f0ff;
  --dark:    #091e42;
  --gray-9:  #172b4d;
  --gray-7:  #42526e;
  --gray-5:  #6b778c;
  --gray-3:  #dfe1e6;
  --gray-1:  #f4f5f7;
  --white:   #ffffff;
  --red:     #de350b;
  --green:   #00875a;
  --orange:  #ff991f;
  --radius:  8px;
  --shadow:  0 2px 12px rgba(9,30,66,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-9);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: opacity .15s, transform .1s;
  text-decoration: none !important;
  &:hover { opacity: .9; transform: translateY(-1px); }
  &:active { transform: translateY(0); }
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-white  { background: var(--white); color: var(--blue); }
.btn-lg     { padding: 15px 32px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; color: var(--dark);
  text-decoration: none !important;
}
.nav-logo-icon { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--gray-7); font-weight: 500; }
.nav-links a:hover { color: var(--dark); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 60%);
  padding: 90px 0 80px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block; background: var(--blue-lt); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px); font-weight: 800;
  color: var(--dark); line-height: 1.1; max-width: 780px;
  margin: 0 auto 20px;
}
.hero h1 span { color: var(--blue); }
.hero-sub {
  font-size: 19px; color: var(--gray-7); max-width: 560px;
  margin: 0 auto 36px; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-proof {
  margin-top: 48px; font-size: 13px; color: var(--gray-5);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hero-proof-dots { display: flex; gap: -4px; }
.hero-proof-dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid white; background: var(--blue-lt);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; margin-left: -6px;
}

/* Screenshot */
.screenshot-section { padding: 0 0 80px; }
.screenshot-wrap {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(9,30,66,.18);
  border: 1px solid var(--gray-3);
  background: var(--gray-1);
}
.screenshot-bar {
  background: #e8e9eb; padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
}
.screenshot-dot { width: 11px; height: 11px; border-radius: 50%; }
.screenshot-url {
  flex: 1; background: white; border-radius: 4px;
  font-size: 11px; color: var(--gray-5); padding: 3px 10px;
  margin: 0 8px; text-align: center;
}
.screenshot-placeholder {
  height: 420px; background: linear-gradient(180deg, #1a2744 0%, #0d1b38 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.screenshot-ui {
  width: 90%; max-width: 860px;
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
  height: 320px;
}
.ui-sidebar { background: #0a1628; padding: 16px 0; }
.ui-sidebar-item {
  padding: 9px 16px; font-size: 12px; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 8px;
  &.active { color: white; background: rgba(255,255,255,.1); }
}
.ui-main { background: #f4f5f7; padding: 16px; overflow: hidden; }
.ui-header {
  background: white; border-radius: 6px; padding: 12px 14px;
  margin-bottom: 12px; display: flex; justify-content: space-between;
  align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ui-title { font-size: 13px; font-weight: 700; color: #091e42; }
.ui-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
  &.green { background: #e3fcef; color: #00875a; }
  &.blue  { background: #e6f0ff; color: #0052cc; }
  &.red   { background: #ffebe6; color: #de350b; }
}
.ui-rows { display: flex; flex-direction: column; gap: 6px; }
.ui-row {
  background: white; border-radius: 4px; padding: 9px 12px;
  display: flex; align-items: center; gap: 10px; font-size: 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.ui-row-name { flex: 1; font-weight: 500; color: #091e42; }
.ui-row-meta { color: #6b778c; font-size: 10px; }

/* Problem section */
.problem { padding: 80px 0; background: var(--dark); color: var(--white); }
.problem h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.problem-sub { font-size: 17px; color: rgba(255,255,255,.7); max-width: 580px; margin-bottom: 48px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
  background: rgba(255,255,255,.06); border-radius: var(--radius);
  padding: 24px; border: 1px solid rgba(255,255,255,.1);
}
.problem-icon { font-size: 28px; margin-bottom: 12px; }
.problem-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* Features */
.features { padding: 90px 0; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 800;
  color: var(--dark); margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--gray-7); max-width: 520px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
.feature-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--gray-3); background: var(--white);
  transition: box-shadow .2s, transform .2s;
  &:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-lt); 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: 8px; color: var(--dark); }
.feature-card p { font-size: 14px; color: var(--gray-7); line-height: 1.6; }

/* How it works */
.how { padding: 90px 0; background: var(--gray-1); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.step { text-align: center; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: white; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-7); }

/* Pricing */
.pricing { padding: 90px 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 56px; align-items: start;
}
.pricing-card {
  border-radius: var(--radius); border: 1px solid var(--gray-3);
  padding: 28px 24px; position: relative;
  &.featured {
    border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow);
  }
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.pricing-name { font-size: 14px; font-weight: 700; color: var(--gray-7); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 800; color: var(--dark); line-height: 1; }
.pricing-price sup { font-size: 18px; vertical-align: super; }
.pricing-period { font-size: 13px; color: var(--gray-5); margin-bottom: 20px; }
.pricing-desc { font-size: 13px; color: var(--gray-7); margin-bottom: 20px; line-height: 1.5; }
.pricing-divider { border: none; border-top: 1px solid var(--gray-3); margin: 20px 0; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-features li {
  font-size: 13px; color: var(--gray-7);
  display: flex; align-items: flex-start; gap: 8px;
  &::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
}
.pricing-cta { width: 100%; text-align: center; padding: 10px 16px; font-size: 14px; }

/* FAQ */
.faq { padding: 80px 0; background: var(--gray-1); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.faq-item { background: white; border-radius: var(--radius); padding: 24px; border: 1px solid var(--gray-3); }
.faq-item h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.faq-item p { font-size: 14px; color: var(--gray-7); line-height: 1.6; }

/* CTA band */
.cta-band {
  padding: 80px 0; background: var(--blue); color: white; text-align: center;
}
.cta-band h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 18px; opacity: .85; margin-bottom: 36px; }

/* Footer */
.footer {
  background: var(--dark); color: rgba(255,255,255,.6);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { font-size: 20px; font-weight: 800; color: white; margin-bottom: 10px; }
.footer-tagline { font-size: 13px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: white; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-col ul a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* Changelog page */
.changelog-hero { padding: 64px 0 48px; }
.changelog-entry {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 32px; padding: 40px 0;
  border-top: 1px solid var(--gray-3);
  &:first-of-type { border-top: none; }
}
.changelog-date { font-size: 13px; color: var(--gray-5); padding-top: 4px; }
.changelog-version {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; margin-bottom: 6px;
  &.major { background: var(--blue-lt); color: var(--blue); }
  &.minor { background: #e3fcef; color: var(--green); }
  &.patch { background: var(--gray-1); color: var(--gray-7); }
}
.changelog-title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.changelog-body { font-size: 14px; color: var(--gray-7); line-height: 1.7; }
.changelog-body ul { margin: 10px 0 10px 18px; display: flex; flex-direction: column; gap: 6px; }
.changelog-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 4px; font-weight: 600; margin-right: 4px;
  &.new     { background: #e3fcef; color: var(--green); }
  &.improved { background: var(--blue-lt); color: var(--blue); }
  &.fixed   { background: #fff8e1; color: #b97700; }
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid, .problem-grid, .pricing-grid, .steps {
    grid-template-columns: 1fr;
  }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .changelog-entry { grid-template-columns: 1fr; gap: 8px; }
}
