/*
 * IF Co-Pilot landing page styles.
 * The page uses external CSS only so the CSP can block inline styling.
 */

:root {
  --bg: #070b18;
  --bg-2: #0c1220;
  --bg-3: #111827;
  --surface: #0f1726;
  --border: #1c2840;
  --border-2: #2a3a5e;
  --amber: #e8a020;
  --amber-strong: #f4b030;
  --amber-soft: rgba(232, 160, 32, 0.12);
  --ice: #7bbfea;
  --ice-soft: rgba(123, 191, 234, 0.1);
  --green: #3dbd7a;
  --green-soft: rgba(61, 189, 122, 0.12);
  --text: #f0f2f7;
  --muted: #9aa8c1;
  --faint: #5d6a80;
  --display: "Bebas Neue", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 4%, rgba(123, 191, 234, 0.08), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(232, 160, 32, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #08101a 48%, #070b18 100%);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  left: 10%;
  top: 12%;
  border-radius: 50%;
  background: #fff;
  opacity: 0.42;
  animation: twinkle 4s ease-in-out infinite;
  box-shadow:
    8vw 12vh #fff,
    19vw 44vh #fff,
    28vw 18vh #fff,
    35vw 72vh #fff,
    46vw 28vh #fff,
    53vw 58vh #fff,
    64vw 20vh #fff,
    72vw 78vh #fff,
    84vw 34vh #fff,
    91vw 66vh #fff,
    4vw 82vh #fff,
    23vw 88vh #fff,
    42vw 92vh #fff,
    61vw 86vh #fff,
    79vw 8vh #fff;
}

.stars::after {
  left: 3%;
  top: 30%;
  width: 2px;
  height: 2px;
  opacity: 0.22;
  animation-duration: 6s;
  animation-delay: 1.5s;
  box-shadow:
    12vw 9vh #fff,
    24vw 38vh #fff,
    39vw 14vh #fff,
    51vw 62vh #fff,
    68vw 42vh #fff,
    87vw 18vh #fff,
    95vw 74vh #fff,
    16vw 68vh #fff,
    33vw 84vh #fff,
    57vw 8vh #fff,
    74vw 92vh #fff,
    89vw 54vh #fff;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.08;
  }
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 24, 0.88);
  backdrop-filter: blur(12px);
}

.nav-logo,
.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--amber);
  color: #050505;
  font-size: 13px;
  font-weight: 900;
}

.nav-icon.small {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.nav-name,
.footer-name {
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.nav-links .nav-cta {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--amber);
  color: #050505;
  font-size: 13px;
  font-weight: 800;
}

main,
footer,
section {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 124px 24px 72px;
  overflow: hidden;
  text-align: center;
}

.hero-inner {
  width: min(1120px, 100%);
}

.hero-glow,
.cta-glow {
  position: absolute;
  pointer-events: none;
}

.hero-glow {
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.07), transparent 66%);
  transform: translate(-50%, -56%);
}

.hero-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-badge {
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid rgba(232, 160, 32, 0.25);
  border-radius: 999px;
  background: var(--amber-soft);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.4);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 0 4px rgba(232, 160, 32, 0);
    opacity: 0.7;
  }
}

.hero-title,
.section-title {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  letter-spacing: 1.5px;
}

.hero-title {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.94;
}

.amber {
  color: var(--amber);
}

.ice {
  color: var(--ice);
}

.hero-sub,
.section-subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-sub {
  max-width: 720px;
  margin: 26px auto 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 68px;
}

.hero-actions.tight {
  margin-bottom: 0;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: #050505;
}

.btn-primary:hover {
  background: var(--amber-strong);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  color: var(--muted);
}

.full-width {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  color: var(--amber);
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 1px;
  line-height: 1;
}

.hero-stat-label {
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.platform,
.features,
.pricing,
.cta-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.workflow {
  padding: 112px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.78);
}

.workflow-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered,
.cta-section {
  text-align: center;
}

.section-header.centered .section-subtitle,
.cta-section .section-subtitle {
  margin-right: auto;
  margin-left: auto;
}

.section-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.centered-eyebrow {
  justify-content: center;
}

.section-title {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.section-subtitle {
  max-width: 620px;
  margin: 0;
}

.platform-grid,
.features-grid,
.workflow-steps,
.pricing-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.platform-panel,
.feature-card,
.workflow-step,
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 38, 0.86);
}

.platform-panel,
.feature-card {
  padding: 28px;
}

.platform-panel {
  min-height: 220px;
}

.platform-panel h3,
.workflow-step h3,
.feature-name {
  margin: 10px 0 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.8px;
}

.platform-panel p,
.workflow-step p,
.feature-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.panel-kicker,
.feature-cmd,
.workflow-tag,
.pricing-label {
  display: inline-flex;
  color: var(--amber);
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card.featured {
  border-color: rgba(232, 160, 32, 0.35);
  background: linear-gradient(145deg, rgba(232, 160, 32, 0.05), rgba(15, 23, 38, 0.95));
}

.feature-card.blue {
  border-color: rgba(123, 191, 234, 0.2);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(232, 160, 32, 0.18);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 900;
}

.feature-card.blue .feature-icon {
  border-color: rgba(123, 191, 234, 0.2);
  background: var(--ice-soft);
  color: var(--ice);
}

.feature-cmd {
  padding: 4px 8px;
  border: 1px solid rgba(232, 160, 32, 0.16);
  border-radius: 6px;
  background: rgba(232, 160, 32, 0.08);
}

.workflow-step {
  padding: 0 28px 28px;
  text-align: center;
}

.workflow-step-num {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: -31px auto 22px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  background: var(--bg);
  color: var(--amber);
  font-family: var(--display);
  font-size: 28px;
}

.workflow-tag {
  margin-top: 18px;
  padding: 5px 11px;
  border: 1px solid rgba(232, 160, 32, 0.16);
  border-radius: 6px;
  background: rgba(232, 160, 32, 0.08);
}

.pricing-card {
  padding: 36px;
}

.pricing-card.pro {
  border-color: rgba(232, 160, 32, 0.45);
  background: linear-gradient(160deg, rgba(232, 160, 32, 0.06), rgba(15, 23, 38, 0.96) 58%);
}

.pricing-price {
  color: var(--text);
  font-family: var(--display);
  font-size: 52px;
  letter-spacing: 1px;
  line-height: 1;
}

.pricing-card.pro .pricing-price {
  color: var(--amber);
}

.pricing-period {
  margin-top: 6px;
  color: var(--faint);
  font-size: 13px;
}

.pricing-divider {
  height: 1px;
  margin: 26px 0 22px;
  background: var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 246px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.check,
.cross {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.check {
  border: 1px solid rgba(61, 189, 122, 0.2);
  background: var(--green-soft);
  color: var(--green);
}

.cross {
  border: 1px solid rgba(93, 106, 128, 0.3);
  background: rgba(93, 106, 128, 0.18);
  color: var(--faint);
}

.cta-section {
  overflow: hidden;
}

.cta-glow {
  top: 50%;
  left: 50%;
  width: 620px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 160, 32, 0.08), transparent 70%);
  transform: translate(-50%, -50%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-note {
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}

.footer-name {
  color: var(--muted);
  font-size: 18px;
}

.footer-right {
  color: var(--faint);
  font-size: 12px;
}

.footer-right a {
  color: var(--amber);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .platform,
  .features,
  .pricing,
  .cta-section {
    width: min(100% - 32px, 1200px);
    padding: 82px 0;
  }

  .platform-grid,
  .features-grid,
  .workflow-steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-divider {
    display: none;
  }

  .pricing-features {
    min-height: 0;
  }

  footer {
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero {
    align-items: flex-start;
    min-height: auto;
    padding-top: 112px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }
}
