@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* -----------------------------------------------
   Fledgestack Design Tokens
   Palette: slate bg / indigo-violet accent / warm white type
   Deliberately distinct from TFS navy/teal/gold
----------------------------------------------- */
:root {
  /* Backgrounds */
  --bg:           #0d1117;
  --bg-card:      rgba(22, 27, 38, 0.75);
  --bg-card-alt:  rgba(15, 20, 30, 0.85);
  --bg-section:   rgba(18, 24, 36, 0.6);

  /* Brand accent -- indigo to violet */
  --accent-1:     #6366f1;   /* indigo-500 */
  --accent-2:     #8b5cf6;   /* violet-500 */
  --accent-mid:   linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent-glow:  rgba(99, 102, 241, 0.25);
  --accent-border: rgba(99, 102, 241, 0.35);

  /* Highlight colours for skill icons */
  --sky:    #38bdf8;
  --teal:   #2dd4bf;
  --blue:   #60a5fa;
  --indigo: #818cf8;
  --violet: #a78bfa;

  /* Type */
  --text-primary:   #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-code:      #c4b5fd;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(99, 102, 241, 0.4);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

  /* Transitions */
  --t-fast:   0.18s cubic-bezier(0.4,0,0.2,1);
  --t-normal: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* -----------------------------------------------
   Reset & Base
----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent-2); }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-code);
  background: rgba(99,102,241,0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* -----------------------------------------------
   Ambient background blobs
----------------------------------------------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: blobFloat 30s infinite alternate ease-in-out;
}

.blob-1 {
  top: -15%;
  left: -5%;
  width: 55vw;
  height: 55vw;
  background: #6366f1;
  animation-duration: 38s;
}

.blob-2 {
  bottom: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: #8b5cf6;
  animation-duration: 32s;
  animation-delay: -8s;
}

.blob-3 {
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 35vw;
  height: 35vw;
  background: #312e81;
  opacity: 0.18;
  animation-duration: 24s;
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, 8%) scale(1.08); }
  100% { transform: translate(-4%, -4%) scale(0.94); }
}

/* -----------------------------------------------
   Page shell
----------------------------------------------- */
.app-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* -----------------------------------------------
   Header / Nav
----------------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  /* pull out of container padding so it spans full width sticky */
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  background: var(--accent-mid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(99,102,241,0.5);
}

.logo-svg-mark {
  width: 1.25rem;
  height: auto;
}

.logo-text {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo-name-bold {
  font-weight: 900;
  color: #e8f0fe;
}

.logo-name-light {
  font-weight: 400;
  color: var(--text-secondary);
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

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

.nav-cta {
  background: var(--accent-mid);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.875rem;
  transition: opacity var(--t-fast), transform var(--t-fast) !important;
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* -----------------------------------------------
   Hero
----------------------------------------------- */
.hero {
  text-align: center;
  max-width: 760px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--accent-mid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

.hero-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-top: -0.75rem;
}

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

/* -----------------------------------------------
   Buttons
----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  border: none;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-mid);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(99,102,241,0.55);
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

/* -----------------------------------------------
   Section shared styles
----------------------------------------------- */
.section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 680px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

/* -----------------------------------------------
   Offering Cards
----------------------------------------------- */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.offer-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
}

.offer-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.offer-featured {
  border-color: rgba(99,102,241,0.45);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.2), var(--shadow-md);
}

.featured-ribbon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--accent-mid);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.offer-tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  width: fit-content;
}

.tier-free  { background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.tier-paid  { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.tier-playbook { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }

.offer-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent-1);
}

.offer-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.offer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.offer-what {
  flex: 1;
}

.offer-what-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.6rem;
}

.offer-what ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.offer-what li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.offer-what li::before {
  content: '--';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 700;
}

.offer-also {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.offer-cta {
  margin-top: auto;
  padding-top: 0.5rem;
}

.coming-soon-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

/* -----------------------------------------------
   Skills Grid
----------------------------------------------- */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(16px);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.skill-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(30, 35, 55, 0.8);
}

.skill-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon svg { width: 1.25rem; height: 1.25rem; }

.skill-icon-blue   { background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.25); color: var(--blue); }
.skill-icon-indigo { background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.25); color: var(--indigo); }
.skill-icon-violet { background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.25); color: var(--violet); }
.skill-icon-sky    { background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.25); color: var(--sky); }
.skill-icon-teal   { background: rgba(45,212,191,0.12); border: 1px solid rgba(45,212,191,0.25); color: var(--teal); }

.skill-info { flex: 1; min-width: 0; }

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* -----------------------------------------------
   Playbook section
----------------------------------------------- */
.section-dark {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
}

.playbook-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.playbook-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.playbook-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.playbook-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.playbook-checklist li svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #4ade80;
  margin-top: 0.15rem;
}

.playbook-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

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

/* Org chart visual */
.playbook-visual {
  min-width: 220px;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.org-node {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.org-ceo {
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
}

.org-row {
  display: flex;
  gap: 0.5rem;
}

.org-chief {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
}

.org-worker {
  background: rgba(30,35,55,0.8);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* -----------------------------------------------
   Waitlist CTA section
----------------------------------------------- */
.section-cta {
  background: var(--accent-mid);
  border-radius: 24px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
}

.cta-logo {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  opacity: 0.08;
  pointer-events: none;
}

.cta-logo-svg {
  width: 100%;
  height: auto;
}

.cta-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 500px;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 460px;
  line-height: 1.65;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 440px;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.waitlist-input::placeholder { color: rgba(255,255,255,0.5); }

.waitlist-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}

.waitlist-form .btn-primary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.waitlist-form .btn-primary:hover {
  background: rgba(255,255,255,0.25);
  box-shadow: none;
}

.waitlist-feedback {
  min-height: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.waitlist-feedback.success { color: #86efac; }
.waitlist-feedback.error   { color: #fca5a5; }

.cta-social { margin-top: 0.5rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--t-fast);
}

.social-link:hover { color: rgba(255,255,255,0.95); }

.social-link svg {
  width: 1rem;
  height: 1rem;
}

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

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

.footer-brand {
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

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

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-legal a {
  color: var(--text-secondary);
}

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

/* -----------------------------------------------
   Responsive
----------------------------------------------- */
@media (max-width: 960px) {
  .offerings-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .playbook-inner {
    grid-template-columns: 1fr;
  }

  .playbook-visual {
    display: none;
  }
}

@media (max-width: 680px) {
  .app-container {
    gap: 4rem;
    padding: 1.5rem 1rem;
  }

  header {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .section-dark {
    padding: 2rem 1.5rem;
  }

  .hero-heading {
    font-size: 2.25rem;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
