/* ============================================================
   Orbit - SaaS startup landing page
   Example project by Zenbyte
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-dark: #0f1020;
  --ink: #14152b;
  --slate: #4b4d6b;
  --muted: #7c7f9e;
  --line: #e7e8f2;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --violet: #8b5cf6;
  --grad: linear-gradient(120deg, #6366f1, #8b5cf6 55%, #d946ef);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 4px 16px -6px rgba(20, 21, 43, 0.12);
  --shadow: 0 30px 70px -30px rgba(79, 70, 229, 0.4);
}

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

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

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(99, 102, 241, 0.7);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-soft {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line);
}
.btn-soft:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover {
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 16px;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
}
.brand-name {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: 18px;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.link-muted {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
}
.link-muted:hover {
  color: var(--ink);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 720px;
  background: radial-gradient(
      60% 60% at 50% 0%,
      rgba(139, 92, 246, 0.18),
      transparent 70%
    ),
    radial-gradient(40% 50% at 80% 10%, rgba(217, 70, 239, 0.12), transparent 70%),
    radial-gradient(40% 50% at 15% 15%, rgba(99, 102, 241, 0.14), transparent 70%);
  z-index: -1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}
.hero-title {
  margin-top: 26px;
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
}
.hero-text {
  margin-top: 22px;
  max-width: 600px;
  color: var(--slate);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Mock app window */
.app-mock {
  margin-top: 56px;
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.app-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f57;
}
.dot.y {
  background: #febc2e;
}
.dot.g {
  background: #28c840;
}
.app-url {
  margin-left: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 12px;
}
.app-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 360px;
}
.app-side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fcfcff;
}
.side-item {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
}
.side-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-dark);
}
.app-main {
  padding: 20px;
  overflow: hidden;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.kanban h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.kanban h5 em {
  font-style: normal;
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 0 7px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.card.done {
  opacity: 0.55;
  text-decoration: line-through;
}
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-blue {
  background: #e0ecff;
  color: #2563eb;
}
.tag-violet {
  background: #ede0ff;
  color: #7c3aed;
}
.tag-amber {
  background: #fff0d6;
  color: #c2740a;
}
.tag-green {
  background: #d9f7e3;
  color: #18794e;
}
.bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--grad);
}

/* ===== Logos ===== */
.logos {
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
}
.logos-label {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 6vw, 64px);
}
.logos-row span {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: -0.02em;
  transition: opacity 0.25s var(--ease);
}
.logos-row span:hover {
  opacity: 1;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
  background: #fff;
}
.feat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* ===== How it works ===== */
.how {
  background: var(--bg-soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-no {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 {
  font-size: 1.25rem;
  margin: 10px 0 10px;
}
.step p {
  color: var(--slate);
  font-size: 0.96rem;
}

/* ===== Stats ===== */
.stats {
  background: var(--bg-dark);
  color: #fff;
  padding-block: clamp(48px, 6vw, 76px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(120deg, #a5b4fc, #d8b4fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  font-size: 0.9rem;
  color: #b9bad4;
}

/* ===== Pricing ===== */
.billing-toggle {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.bt-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}
.bt-label.active {
  color: var(--ink);
}
.bt-label em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
}
.switch {
  width: 50px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: var(--line);
  cursor: pointer;
  position: relative;
  transition: background 0.3s var(--ease);
}
.switch.on {
  background: var(--primary);
}
.knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.switch.on .knob {
  transform: translateX(22px);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.price-card.popular {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 1.3rem;
}
.price-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 20px;
  min-height: 2.6em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
}
.price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price .amount::before {
  content: "$";
  font-size: 1.3rem;
  vertical-align: super;
  margin-right: 1px;
}
.price .per {
  color: var(--muted);
  font-size: 0.9rem;
}
.price-feats {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.price-feats li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--slate);
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===== Testimonials ===== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote-grid blockquote {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.quote-grid p {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 22px;
}
.quote-grid footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
}
.quote-grid footer strong {
  display: block;
  font-size: 0.95rem;
}
.quote-grid footer em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq-inner {
  max-width: 760px;
}
.accordion details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.chev {
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.accordion details[open] .chev {
  transform: rotate(-135deg);
}
.accordion details p {
  padding: 0 22px 20px;
  color: var(--slate);
}

/* ===== CTA band ===== */
.cta-band {
  padding-block: clamp(56px, 8vw, 100px);
  background: var(--grad);
  color: #fff;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}
.cta-inner p {
  margin: 16px 0 28px;
  font-size: 1.1rem;
  opacity: 0.92;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: #b9bad4;
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 42px;
}
.footer-brand .brand {
  color: #fff;
}
.footer-tag {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 240px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 9px;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom strong {
  color: #c4b5fd;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 40px;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(20, 21, 43, 0.4);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: flex;
    z-index: 110;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .feature-grid,
  .steps,
  .price-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .price-card.popular {
    transform: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-side {
    display: none;
  }
  .kanban {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
