/* FluxDeploy marketing site styles */

:root {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --bg-card: #1a2438;
  --bg-tinted: #131c30;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --accent-2: #a78bfa;
  --success: #22c55e;
  --warn: #f59e0b;
  --border: #334155;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(ellipse at top, rgba(6, 182, 212, 0.10), transparent 70%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero .accent {
  color: var(--accent);
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  max-width: 640px;
}

/* Card grids */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1rem 1.1rem 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(6, 182, 212, 0.18);
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

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

/* Comparison section (old way vs FluxDeploy) */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.vs-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.vs-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.vs-col ul {
  list-style: none;
}

.vs-col li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.vs-old {
  border-color: rgba(148, 163, 184, 0.25);
}

.vs-old h3 {
  color: var(--text-muted);
}

.vs-old li {
  color: var(--text-muted);
}

.vs-old li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 0;
  color: #64748b;
  font-weight: 700;
}

.vs-new {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(6, 182, 212, 0.08);
}

.vs-new h3 {
  color: var(--accent);
}

.vs-new li {
  color: var(--text);
}

.vs-new li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Page header (features) */
.page-header {
  padding: 3.5rem 0 1rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(6, 182, 212, 0.08), transparent 70%);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-muted);
  margin: 0.5rem auto 0;
  max-width: 640px;
}

/* Feature list (accordion-style) */
.feature-list-wrap {
  padding: 1.5rem 0 3rem;
}

.list-group {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 1.5rem 0 0.5rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.list-group:first-of-type {
  padding-top: 0.5rem;
}

.feat {
  border-bottom: 1px solid var(--border);
}

.feat summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 0.75rem;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border-radius: 8px;
  transition: background-color 0.15s ease;
  outline: none;
}

.feat summary::-webkit-details-marker {
  display: none;
}

.feat summary:hover {
  background: rgba(6, 182, 212, 0.06);
}

.feat summary:focus-visible {
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.4);
}

.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

.feat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.feat-tag {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: left;
}

.feat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.15s ease;
}

.feat[open] .feat-arrow {
  transform: rotate(45deg);
  background: rgba(6, 182, 212, 0.15);
}

.feat-body {
  padding: 0 0.75rem 1.1rem calc(32px + 0.75rem + 0.85rem);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 760px;
}

/* Animated reveal for the body. Requires the small JS below to set
   --content-height. The page works without JS too, just no animation. */
.feat[open] .feat-body {
  animation: feat-reveal 0.25s ease-out;
}

@keyframes feat-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile tweaks for accordion */
@media (max-width: 600px) {
  .feat summary {
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    padding: 0.85rem 0.5rem;
  }

  .feat-tag {
    display: none;
  }

  .feat-title {
    font-size: 0.95rem;
  }

  .feat-body {
    padding: 0 0.5rem 1rem calc(32px + 0.5rem + 0.65rem);
    font-size: 0.9rem;
  }
}

/* Feature blocks (categorized sections) */
.feature-block {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.feature-block:first-of-type {
  padding-top: 2.5rem;
}

.feature-block:last-of-type {
  border-bottom: none;
  padding-bottom: 3rem;
}

/* Alternate section backgrounds for visual rhythm */
.feature-block:nth-of-type(2) {
  background: var(--bg-tinted);
  border-radius: 12px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

.block-header {
  margin-bottom: 1.5rem;
}

.block-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.block-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.block-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
}

/* Features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.price-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(6, 182, 212, 0.1);
}

.price-badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.price-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.price {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price .period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-features {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.price-cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* Pricing FAQ */
.pricing-faq {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.pricing-faq h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.faq-grid h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.faq-grid p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Hero mockup (browser-frame admin UI illustration) */
.hero-mockup {
  max-width: 620px;
  margin: 2.5rem auto 0;
  text-align: left;
  perspective: 1400px;
}

.window-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(6, 182, 212, 0.08);
  transform: rotateX(2deg);
  transform-origin: center top;
}

.window-bar {
  background: #0b1322;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.window-url {
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.window-body {
  padding: 1rem 1.1rem 1.1rem;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
}

.mockup-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mockup-nav .brand-tag {
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  color: var(--text);
}

.mockup-nav .brand-tag i {
  color: var(--accent);
  font-style: normal;
}

.mockup-pill {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.mockup-pill.active {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  border-color: rgba(6, 182, 212, 0.3);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.stat-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.mockup-feed {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--text);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.feed-row:last-child { border-bottom: none; }

.feed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.feed-icon.ok {
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
}

.feed-icon.working {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warn);
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.feed-text { flex: 1; }

.feed-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* Section background variation */
.vs {
  background: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Closing CTA */
.closing-cta {
  text-align: center;
  padding: 2.5rem 0 2rem;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.08), transparent 70%);
}

.closing-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.closing-cta p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-muted);
  margin: 0 0.75rem;
}

footer a:hover {
  color: var(--accent);
}

footer .copy {
  margin-top: 0.5rem;
}

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-6,
  .steps,
  .feature-grid,
  .pricing-grid,
  .faq-grid,
  .vs-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  section {
    padding: 1.75rem 0;
  }

  .closing-cta {
    padding: 2rem 0 1.5rem;
  }

  .price-card {
    padding: 1.5rem 1.25rem;
  }

  .hero-mockup {
    margin-top: 1.75rem;
  }

  .window-frame {
    transform: none;
  }

  .window-url {
    font-size: 0.65rem;
    padding: 0.15rem 0.55rem;
  }

  .mockup-nav .mockup-pill {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .mockup-stats {
    gap: 0.4rem;
  }

  .stat-num {
    font-size: 1.15rem;
  }

  .stat-tile {
    padding: 0.55rem 0.6rem;
  }

  .feed-row {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}
