/* CompanyScout — marketing one-pager
   Palette, type and copy are pulled straight from the desktop app
   itself (core/config.py's APP_NAME / TAGLINE / SUBTAGLINE / brand
   red #ff1b2d) rather than invented for the website. */

:root {
  --red: #ff1b2d;
  --red-dark: #e01525;
  --red-deep: #8a0c18;
  --red-soft: #ffd4d8;
  --navy: #12142a;
  --navy-soft: #1a1f3a;
  --ink: #171a2e;
  --slate: #5b6472;
  --slate-light: #8991a1;
  --paper: #fbfbfc;
  --line: #e7e8ee;
  --green: #16a34a;

  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Work Sans', 'Segoe UI', sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ff5b66 0%, var(--red) 45%, var(--red-deep) 100%);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.logo-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 10px;
  padding: 0 18px;
  height: 42px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4553 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(255, 27, 45, 0.8);
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  height: 40px;
}
.btn-ghost:hover { border-color: var(--slate-light); }

.btn-small {
  height: 36px;
  font-size: 13px;
  padding: 0 14px;
}

/* ---------------- Tagline band ----------------
   One bold red line, comma-separated, with a gradient underline and
   "free" as a small red chip so the offer lands last. */
.tagline {
  margin: 0 0 26px;
}

.tagline-line {
  display: inline-block;
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--red);
  text-wrap: balance;
}

.tagline-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,
      #ffc2c8 0%,
      var(--red) 44%,
      var(--red-deep) 100%);
  box-shadow: 0 6px 18px -8px rgba(255, 27, 45, 0.8);
}

.tagline-free {
  color: #fff;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  padding: 1px 9px 2px;
  border-radius: 6px;
  white-space: nowrap;
}

.tagline-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 26px 0 48px;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 44px;
}

.hero-visual {
  flex: 0 1 74%;
  min-width: 0;
}

.hero-copy {
  flex: 0 1 26%;
  min-width: 250px;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: 33px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 700;
}

.hero-copy p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 36ch;
}

.hero-copy em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, #ffe0e3 62%);
  padding: 0 1px;
}

.hero-copy .btn-primary { width: 100%; justify-content: center; }

.hero-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--slate-light);
}

/* ---------------- Carousel ---------------- */
.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1f3a 0%, #0e1022 100%);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(18, 20, 42, 0.35);
  aspect-ratio: 16 / 10;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.is-active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #c7cbe0;
  text-align: center;
  padding: 32px;
}

.carousel-empty .big {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.carousel-empty code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.is-active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 11, 26, 0.45);
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: rgba(10, 11, 26, 0.7); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

/* ---------------- Gradient rule ---------------- */
.rule-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.rule {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
      rgba(255, 27, 45, 0) 0%,
      #ffb3ba 16%,
      var(--red) 48%,
      var(--red-deep) 82%,
      rgba(138, 12, 24, 0) 100%);
  opacity: 0.85;
}

/* ---------------- Section scaffolding ---------------- */
section { padding: 60px 0; }

.section-head {
  max-width: 580px;
  margin: 0 0 30px;
}

.section-head .eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.section-head p {
  color: var(--slate);
  font-size: 15px;
  margin: 0;
}

/* ---------------- How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  background: #fff;
  padding: 26px 24px;
}

.step-num {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.step p {
  color: var(--slate);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.6;
}

/* ---------------- Features ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}

.feature-main {
  grid-row: span 2;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 27, 45, 0.28), transparent 46%),
    linear-gradient(160deg, #1a1f3a 0%, #0e1022 100%);
  color: #fff;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.feature-main::after {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-soft), var(--red), var(--red-deep));
  opacity: 0.9;
}

.feature-main .feature-kicker {
  position: relative;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8d96;
  margin-bottom: 12px;
}

.feature-main h3 {
  position: relative;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
}

.feature-main p {
  position: relative;
  color: #c7cbe0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 44ch;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--red-soft);
  box-shadow: 0 16px 34px -24px rgba(255, 27, 45, 0.55);
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature-card p {
  color: var(--slate);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.6;
}

/* ---------------- Privacy band ---------------- */
.privacy {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 27, 45, 0.18), transparent 45%),
    var(--navy);
  color: #fff;
  border-radius: 20px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.privacy-stat {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  flex: none;
  line-height: 1;
}

.privacy-stat span {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: #8891b5;
  margin-top: 10px;
}

.privacy-text h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 8px;
}

.privacy-text p {
  color: #b7bdd6;
  font-size: 14px;
  margin: 0;
  max-width: 58ch;
  line-height: 1.6;
}

/* ---------------- Download ---------------- */
.download {
  text-align: center;
  padding-bottom: 72px;
}

.download h2 {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.download p {
  color: var(--slate);
  font-size: 15px;
  margin: 0 auto 26px;
  max-width: 46ch;
}

.download .btn-primary {
  height: 52px;
  padding: 0 32px;
  font-size: 15px;
  border-radius: 12px;
}

.platforms {
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate-light);
}

/* ---------------- Footer ---------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-light);
  font-size: 13px;
}

footer .logo-mark { width: 22px; height: 22px; font-size: 11px; }
footer .nav-spacer { flex: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { flex-direction: column-reverse; }
  .hero-visual, .hero-copy { flex: 1 1 auto; width: 100%; }
  .hero-copy p { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-main { grid-row: auto; min-height: 280px; }
  .privacy { flex-direction: column; text-align: center; padding: 34px 28px; }
  .tagline-line { font-size: 19px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .rule-wrap { padding: 0 20px; }
  .hero-copy h1 { font-size: 27px; }
  section { padding: 48px 0; }
  .hero { padding: 20px 0 36px; }
  .tagline-line { font-size: 16px; letter-spacing: -0.005em; }
  .tagline { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-slide { transition: none; }
}

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