/* Rail Intel landing – dark, professional */

:root {
  --bg: #0c0f14;
  --bg-elevated: #141922;
  --text: #e6e9ef;
  --text-muted: #8b92a0;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../images/background.png") no-repeat center 45% / cover;
  background-attachment: fixed;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.logo:hover {
  color: var(--accent-hover);
}

.logo:hover .logo-img {
  color: var(--accent-hover);
}

.logo-img {
  flex-shrink: 0;
  height: 4rem;
  width: auto;
  max-height: 80px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  display: block;
}

.logo-text {
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0c0f14;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(245, 158, 11, 0.06), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Features */
.features {
  padding: 5rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

/* How it works */
.how-it-works {
  padding: 5rem 0;
}

.how-it-works .section-desc {
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Screenshots / product showcase */
.screenshots {
  padding: 5rem 0;
  background: var(--bg-elevated);
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.browser-mockup {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.browser-mockup--primary {
  border-radius: 12px;
}

.browser-mockup--small {
  margin-bottom: 1rem;
}

.browser-mockup--small:last-child {
  margin-bottom: 0;
}

.browser-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.browser-mockup__dots {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.6);
  box-shadow: 18px 0 0 0 rgba(255, 255, 255, 0.12), 36px 0 0 0 rgba(255, 255, 255, 0.12);
}

.browser-mockup__url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.browser-mockup--small .browser-mockup__url {
  display: none;
}

.browser-mockup__content {
  min-height: 200px;
  position: relative;
}

.screenshot-placeholder {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.screenshot-placeholder--dashboard {
  min-height: 280px;
  padding: 1.5rem;
}

.screenshot-placeholder--list,
.screenshot-placeholder--report {
  min-height: 160px;
  padding: 1rem;
}

.screenshot-placeholder__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ph-line {
  height: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-radius: 4px;
  width: 100%;
}

.ph-title {
  width: 40%;
  height: 14px;
}

.ph-wide {
  width: 85%;
}

.ph-short {
  width: 60%;
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.25rem 0;
}

.ph-card {
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.ph-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ph-row {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  width: 100%;
}

.ph-chart {
  height: 80px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, transparent 100%);
  border-radius: 6px;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .screenshot-showcase {
    grid-template-columns: 1fr;
  }

  .screenshot-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .browser-mockup--small {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .screenshot-stack {
    grid-template-columns: 1fr;
  }

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

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
}

.feature-icon svg {
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* CTA */
.cta {
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.cta-desc {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .nav .nav-link {
    display: none;
  }

  .hero {
    padding: 5rem 0 3rem;
  }

  .hero .container {
    padding-top: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
