/* CONNECTION FIBER – TheBestFiber.com
   Ultra-clean neon-fiber theme, Netlify-ready
-------------------------------------------------- */
:root {
  --cf-bg: #020412;
  --cf-bg-alt: #050922;
  --cf-bg-card: #070f2e;
  --cf-primary: #38e8ff;
  --cf-primary-soft: rgba(56, 232, 255, 0.16);
  --cf-secondary: #00ffb3;
  --cf-secondary-soft: rgba(0, 255, 179, 0.18);
  --cf-accent: #7b5cff;
  --cf-text-main: #eff7ff;
  --cf-text-soft: #9bb1d6;
  --cf-text-muted: #6c7898;
  --cf-danger: #ff6d6d;
  --cf-radius-lg: 22px;
  --cf-radius-md: 14px;
  --cf-radius-sm: 10px;
  --cf-shadow-strong: 0 0 32px rgba(56, 232, 255, 0.5);
  --cf-shadow-soft: 0 0 18px rgba(56, 232, 255, 0.32);
  --cf-gradient-bg: radial-gradient(circle at top left, #061433 0, #020412 40%, #000 100%);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Space Grotesk", sans-serif;
  background: var(--cf-gradient-bg);
  color: var(--cf-text-main);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADERS / GLOBAL TYPOGRAPHY */
h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2.2rem, 3vw + 1.5rem, 3.2rem);
}

h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.1rem);
}

p {
  margin: 0 0 10px;
  color: var(--cf-text-soft);
  line-height: 1.6;
}

a {
  color: var(--cf-primary);
  text-decoration: none;
}

a:hover {
  color: var(--cf-secondary);
}

/* HEADER / NAV */
.cf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(2,4,18,0.96), rgba(4,10,40,0.94));
  border-bottom: 1px solid rgba(56, 232, 255, 0.3);
}

.cf-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-logo-orb {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 0, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0,255,200,0.9), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(56,232,255,0.9), transparent 40%);
  box-shadow:
    0 0 24px rgba(56,232,255,0.8),
    0 0 16px rgba(0,255,179,0.65);
}

.cf-brand-text {
  display: flex;
  flex-direction: column;
}

.cf-brand-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
}

.cf-brand-tagline {
  font-size: 11px;
  color: var(--cf-text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cf-nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-nav-links a {
  color: var(--cf-text-soft);
  position: relative;
}

.cf-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cf-primary), var(--cf-secondary));
  box-shadow: 0 0 8px rgba(56,232,255,0.7);
  transition: width 0.2s ease;
}

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

.cf-nav-links a:hover::after {
  width: 100%;
}

.cf-nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56,232,255,0.7);
  box-shadow: 0 0 12px rgba(56,232,255,0.55);
  background: radial-gradient(circle at top left, rgba(56,232,255,0.2), rgba(4,10,40,1));
  color: #031018 !important;
  font-weight: 600;
}

/* SECTIONS */
.cf-section {
  padding: 64px 18px;
}

.cf-section-alt {
  background: radial-gradient(circle at top right, rgba(56,232,255,0.12), rgba(5,8,30,0.9));
}

.cf-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cf-section-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.cf-section-header p {
  margin-top: 8px;
}

/* HERO */
.cf-hero {
  padding-top: 72px;
}

.cf-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.cf-hero-copy h1 .accent {
  background: linear-gradient(90deg, var(--cf-primary), var(--cf-secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.cf-hero-subtitle {
  margin-top: 12px;
}

.cf-hero-bullets {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  color: var(--cf-text-soft);
  font-size: 0.96rem;
}

.cf-hero-bullets li {
  margin-bottom: 6px;
}

.cf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cf-hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--cf-text-muted);
}

.strike {
  text-decoration: line-through;
  opacity: 0.75;
}

/* HERO VISUAL */
.cf-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cf-hero-orbit {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0, rgba(255,255,255,0.6), transparent 60%), radial-gradient(circle at 80% 80%, rgba(0,255,200,0.7), transparent 70%), radial-gradient(circle at 0% 100%, rgba(56,232,255,0.8), transparent 45%);
  box-shadow: 0 0 30px rgba(56,232,255,0.8);
  overflow: hidden;
}

.cf-hero-orbit-ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px dashed rgba(12,23,84,0.7);
}

.cf-hero-orbit-core {
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #b7f6ff, #38e8ff);
}

.cf-hero-orbit-rays {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 0deg, rgba(255,255,255,0.3), transparent 40%, rgba(0,255,200,0.4), transparent 70%, rgba(56,232,255,0.6), transparent 100%);
  mix-blend-mode: screen;
  animation: spin 12s linear infinite;
}

.cf-hero-orbit-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #021017;
}

.cf-hero-orbit-label span {
  background: rgba(1, 11, 25, 0.72);
  border-radius: 999px;
  padding: 4px 8px;
  color: #eff7ff;
  text-align: center;
  box-shadow: 0 0 10px rgba(5,29,68,0.8);
}

.cf-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.metric {
  background: rgba(7,15,46,0.95);
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(56,232,255,0.35);
  box-shadow: 0 0 12px rgba(56,232,255,0.45);
}

.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cf-text-muted);
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  margin-top: 4px;
}

.metric-unit {
  font-size: 0.8rem;
  color: var(--cf-text-soft);
}

.metric-value-bad {
  color: var(--cf-secondary);
}

/* GRID */
.cf-grid {
  display: grid;
  gap: 24px;
}

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

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

.cf-grid-center {
  justify-items: center;
}

/* CARDS */
.cf-card {
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius-lg);
  padding: 22px 20px;
  border: 1px solid var(--cf-primary-soft);
  box-shadow: var(--cf-shadow-soft);
}

.cf-card h3 {
  margin-bottom: 8px;
}

.cf-card-highlight {
  border-color: var(--cf-secondary-soft);
  box-shadow: 0 0 26px rgba(0,255,179,0.45);
}

/* LISTS */
.cf-list {
  padding-left: 18px;
  margin: 6px 0 0;
}

.cf-list li {
  margin-bottom: 6px;
}

.cf-list-check {
  list-style: none;
  padding-left: 0;
}

.cf-list-check li::before {
  content: "✔";
  margin-right: 6px;
  color: var(--cf-secondary);
}

.cf-list-steps {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.cf-list-steps li {
  counter-increment: step-counter;
  margin-bottom: 8px;
}

.cf-list-steps li::before {
  content: counter(step-counter) ". ";
  font-weight: 600;
  color: var(--cf-primary);
}

/* BUTTONS */
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}

.cf-btn-primary {
  background: linear-gradient(90deg, var(--cf-primary), var(--cf-secondary));
  color: #021017;
  box-shadow: 0 0 16px rgba(56,232,255,0.7);
}

.cf-btn-lg {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.cf-btn-ghost {
  background: rgba(3,9,30,0.9);
  border-color: rgba(56,232,255,0.6);
  color: var(--cf-primary);
  box-shadow: 0 0 12px rgba(56,232,255,0.45);
}

.cf-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(56,232,255,0.9);
  filter: brightness(1.08);
}

/* PRICING CARD */
.cf-card-pricing {
  max-width: 420px;
  text-align: left;
}

.cf-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,255,179,0.15);
  border: 1px solid rgba(0,255,179,0.6);
  color: var(--cf-secondary);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cf-pricing-header h3 {
  margin-top: 10px;
}

.cf-pricing-subtitle {
  color: var(--cf-text-soft);
}

.cf-pricing-main {
  margin-top: 12px;
}

.cf-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

.cf-pricing-price {
  font-size: 2.4rem;
  font-weight: 600;
}

.cf-pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--cf-text-soft);
}

.cf-pricing-note {
  margin-top: 6px;
  font-size: 0.9rem;
}

.cf-strike {
  text-decoration: line-through;
  color: var(--cf-text-muted);
}

.cf-pricing-cta {
  margin-top: 16px;
  margin-bottom: 10px;
}

.cf-small {
  font-size: 0.78rem;
  color: var(--cf-text-muted);
}

/* CTA STRIP */
.cf-cta-strip {
  background: radial-gradient(circle at 10% 0, rgba(56,232,255,0.26), rgba(2,4,18,0.96));
  border-top: 1px solid rgba(56,232,255,0.3);
  border-bottom: 1px solid rgba(56,232,255,0.3);
}

.cf-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cf-cta-text p {
  max-width: 520px;
}

.cf-link-underline {
  text-decoration: underline;
  font-size: 0.9rem;
}

/* FOOTER */
.cf-footer {
  margin-top: auto;
  padding: 32px 18px 16px;
  background: #02030c;
  border-top: 1px solid rgba(56,232,255,0.2);
}

.cf-footer-inner {
  max-width: 1200px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.cf-footer-brand {
  max-width: 360px;
}

.cf-footer-links {
  display: flex;
  gap: 40px;
}

.cf-footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.cf-footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--cf-text-soft);
  margin-bottom: 4px;
}

.cf-footer-links a:hover {
  color: var(--cf-primary);
}

.cf-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid rgba(56,232,255,0.2);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--cf-text-muted);
}

.cf-footer-subtext {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* GAME PAGE */
.page-game main,
.page-submit main,
.page-thankyou main {
  padding: 60px 18px 80px;
}

.cf-page-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cf-page-header {
  max-width: 720px;
  margin-bottom: 26px;
}

.cf-page-header h1 {
  margin-bottom: 6px;
}

.cf-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}

.cf-game-card {
  background: radial-gradient(circle at top left, rgba(56,232,255,0.28), rgba(7,15,46,0.98));
  border-radius: var(--cf-radius-lg);
  padding: 18px;
  border: 1px solid rgba(56,232,255,0.55);
  box-shadow: var(--cf-shadow-strong);
}

#gameCanvas {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #021122, #020412 60%, #000 100%);
  border-radius: var(--cf-radius-md);
  border: 1px solid rgba(56,232,255,0.6);
}

.cf-game-sidebar .cf-card {
  height: 100%;
}

/* SUBMIT PAGE / FORM */
.cf-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

.cf-form {
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius-lg);
  padding: 22px 20px;
  border: 1px solid var(--cf-primary-soft);
  box-shadow: var(--cf-shadow-soft);
}

.cf-form-row {
  display: flex;
  gap: 14px;
}

.cf-form-group {
  margin-bottom: 12px;
  flex: 1;
}

.cf-form-group label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 4px;
  color: var(--cf-text-soft);
}

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--cf-radius-sm);
  border: 1px solid rgba(56,232,255,0.4);
  background: #050b1f;
  color: var(--cf-text-main);
  font-size: 0.9rem;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  border-color: var(--cf-secondary);
  box-shadow: 0 0 10px rgba(56,232,255,0.6);
}

.cf-textarea {
  min-height: 100px;
  resize: vertical;
}

.cf-form-helper {
  font-size: 0.78rem;
  color: var(--cf-text-muted);
}

.cf-notice {
  font-size: 0.82rem;
  color: var(--cf-text-muted);
}

/* THANK YOU */
.cf-thankyou-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--cf-primary-soft);
  box-shadow: var(--cf-shadow-soft);
}

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

/* RESPONSIVE */
@media (max-width: 960px) {
  .cf-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cf-footer-links {
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .cf-nav-links {
    display: none;
  }

  .cf-nav {
    justify-content: center;
  }

  .cf-section {
    padding: 46px 18px;
  }

  .cf-footer-inner {
    flex-direction: column;
  }

  .cf-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
