/* RailingLab landing page */

:root {
  --bg-dark: #0b0c0e;
  --bg-dark-2: #131519;
  --line-dark: #262a31;
  --text-on-dark: #ffffff;
  --muted-on-dark: #a3aab8;

  --bg-light: #ffffff;
  --bg-soft: #f4f6f9;
  --line-light: #e3e7ee;
  --text: #0e1116;
  --muted: #5a6273;

  --blue: #1f6bff;
  --blue-hover: #0f57e6;

  --radius: 14px;
  --radius-pill: 999px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--bg-dark); }
.btn-outline-dark { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline-dark:hover { background: var(--text); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 3px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.nav-menu { display: flex; align-items: center; flex: 1; justify-content: space-between; margin-left: 48px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-login { text-decoration: none; font-size: 15px; font-weight: 500; color: #e6e9ef; }
.nav-links a:hover, .nav-login:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav-actions { display: flex; align-items: center; gap: 24px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--bg-dark); color: var(--text-on-dark); padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.eyebrow { color: #7aa7ff; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; margin-bottom: 22px; }
.hero .lead { color: var(--muted-on-dark); font-size: 18px; max-width: 480px; margin-bottom: 32px; }
.hero-visual img { width: 100%; }

.workflow-strip {
  list-style: none; margin: 56px 0 0; padding: 28px 0 0;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px;
}
.workflow-strip li { color: #8a909c; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 24px; }
.workflow-strip li:not(:last-child)::after { content: "→"; color: #3d4350; font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 auto 48px; max-width: 640px; }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; }

.card, .case, .plan {
  background: var(--bg-light); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 28px;
}
.card h3, .case h3, .plan h3 { font-size: 20px; }
.card p, .case p, .plan p { color: var(--muted); font-size: 15.5px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; background: #eaf1ff; color: var(--blue);
}
.card-icon svg { width: 26px; height: 26px; }

/* Steps */
.steps-section { background: var(--bg-soft); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-top: 0; padding-bottom: 0; }
.steps li { position: relative; }
.step-no {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-dark); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Use cases */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* Pricing */
.pricing { background: var(--bg-soft); }
.plan { display: flex; flex-direction: column; }
.plan p:last-of-type { flex: 1; }
.plan .plan-price { font-size: 36px; font-weight: 800; color: var(--text) !important; margin-bottom: 12px; letter-spacing: -0.02em; }
.plan-featured { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
.plan-featured p { color: var(--muted-on-dark); }
.plan-featured .plan-price { color: #fff !important; }

/* Final CTA */
.final-cta { background: var(--bg-dark); color: #fff; padding: 96px 0; }
.final-cta h2 { font-size: clamp(30px, 4vw, 46px); }
.final-cta .lead { color: var(--muted-on-dark); font-size: 18px; margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--bg-dark-2); color: var(--muted-on-dark); padding: 32px 0; border-top: 1px solid var(--line-dark); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.site-footer .brand { color: #fff; font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.copyright { margin: 0; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg-dark); border-bottom: 1px solid var(--line-dark); padding: 12px 24px 24px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 8px; }
  .nav-login { padding: 12px 0; font-size: 17px; }
  .nav-actions .btn { min-height: 48px; }

  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .workflow-strip { justify-content: flex-start; }
  .workflow-strip li { font-size: 18px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section, .final-cta { padding: 64px 0; }
  .cards-4, .steps { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero .lead, .section-lead { font-size: 17px; }
  .workflow-strip li { font-size: 16px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
