/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #e8e4f0;
  background-color: #150e22;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

p {
  margin: 0;
}

code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 12px 0 0 0;
  font-size: 13px;
  line-height: 1.6;
}

pre code {
  background: transparent;
  padding: 0;
  color: #d8d0e8;
}

/* ---------- Background ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(124, 77, 255, 0.35), transparent 60%),
    radial-gradient(50% 50% at 10% 30%, rgba(38, 132, 255, 0.28), transparent 60%),
    radial-gradient(70% 50% at 50% 100%, rgba(255, 110, 199, 0.18), transparent 60%),
    linear-gradient(180deg, #1a1230 0%, #0f0a1c 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(21, 14, 34, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.nav-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.nav-links a:hover {
  color: #ffffff;
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 24px 40px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 200, 245, 0.85);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #c9bce6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(232, 228, 240, 0.78);
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(124, 77, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(124, 77, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Browser preview ---------- */
.preview-wrap {
  margin: 64px auto 0;
  max-width: 1000px;
  perspective: 1600px;
}

.browser-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0818;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotateX(2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #1c1530;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.address {
  margin-left: 16px;
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, #4a3b6b 0%, #2c1f4a 60%, #1a1230 100%);
}

.preview-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(255, 200, 130, 0.45), transparent 65%),
    radial-gradient(50% 50% at 20% 70%, rgba(110, 80, 200, 0.55), transparent 70%),
    linear-gradient(180deg, #5a4080 0%, #221540 100%);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(41, 30, 56, 0.35);
}

.preview-welcome {
  position: absolute;
  top: 20px;
  left: 22px;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.preview-brand {
  position: absolute;
  bottom: 20px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 13px;
}

.preview-brand img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.preview-panels {
  position: absolute;
  inset: auto 22px 60px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: rgba(20, 14, 34, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.panel-dot.jira     { background: #2684ff; }
.panel-dot.calendar { background: #4285f4; }

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(232, 228, 240, 0.9);
}

.tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  background: rgba(38, 132, 255, 0.15);
  color: #6ea8ff;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  width: 38px;
}

.ticket-title {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Sections ---------- */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.features,
.stack,
.install {
  padding: 96px 0;
}

.features h2,
.stack h2,
.install h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.15;
}

/* ---------- Features grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.25) 0%, rgba(109, 40, 217, 0.15) 100%);
  color: #c4b5fd;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14.5px;
  color: rgba(232, 228, 240, 0.7);
  line-height: 1.6;
}

/* ---------- Stack ---------- */
.stack {
  padding-top: 0;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Install ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.steps li {
  position: relative;
  padding: 24px 26px 24px 70px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 15px;
  color: rgba(232, 228, 240, 0.85);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
}

.steps strong {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}

.steps a {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.install-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(232, 228, 240, 0.55);
}

.dot-sep {
  opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav {
    padding: 14px 20px;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    padding: 56px 18px 24px;
  }

  .preview-wrap {
    margin-top: 44px;
  }

  .browser-frame {
    transform: none;
    border-radius: 12px;
  }

  .preview-welcome {
    font-size: 15px;
    top: 14px;
    left: 14px;
  }

  .preview-brand {
    font-size: 11px;
    right: 14px;
    bottom: 14px;
  }

  .preview-panels {
    grid-template-columns: 1fr;
    inset: auto 14px 44px 14px;
    gap: 10px;
  }

  .panel {
    padding: 10px 12px;
  }

  .panel-list li:nth-child(3) {
    display: none;
  }

  .features,
  .stack,
  .install {
    padding: 64px 0;
  }

  .feature {
    padding: 22px;
  }

  .steps li {
    padding: 22px 22px 22px 62px;
  }

  .steps li::before {
    left: 18px;
    top: 22px;
  }
}

@media (max-width: 460px) {
  .preview-panels .panel-list li:nth-child(2) {
    display: none;
  }
}
