/* Cypbits — brand: CYP #D57800 (gold), BITS #00F0FF (electric blue) */

:root {
  --gold: #D57800;
  --blue: #00F0FF;
  --navy: #050b3b;
  --dark: #0a1030;
  --body-color: #1c1c1c;
  --body-bg: #ffffff;
  --footer-bg: rgba(28, 28, 28, 0.05);
  --max-width: 1364px;
  --section-padding: 110px;
  --font-base: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--body-color);
  background: var(--body-bg);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p { margin: 0 0 1rem; }

a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--gold); }

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

/* Logo wordmark */
.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.logo .cyp { color: var(--gold); }
.logo .bits { color: var(--blue); }
.logo-light .cyp { color: var(--gold); }
.logo-light .bits { color: var(--blue); }
.navbar-logo-img { height: 104px; width: auto; display: block; }
.footer-logo-img { height: 88px; width: auto; display: block; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 20px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-toggle { display: none; }

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 220px;
  padding: 10px 0;
  margin-top: 12px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-transform: none;
  font-weight: 400;
}

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 100px 0;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero p.lead {
  max-width: 640px;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
}

/* Sections */
section.block {
  padding: var(--section-padding) 0;
}
section.block.alt { background: rgba(213, 120, 0, 0.05); }
section.block.dark {
  background: var(--navy);
  color: #fff;
}
section.block.dark h2,
section.block.dark p { color: #fff; }

.eyebrow-link {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.eyebrow-link:hover { color: var(--gold); }

/* Grid / cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: rgba(5, 11, 59, 0.035);
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card .card-visual { margin-top: auto; padding-top: 1.5rem; }
.card h3 { color: var(--navy); }
.card .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.8em;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  padding: 0.75rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn-outline {
  background: #00A6B8;
  color: #fff;
  border: 2px solid #00A6B8;
}
.btn-outline:hover { background: #048c9c; border-color: #048c9c; color: #fff; }

/* Pricing */
.pricing-box {
  background: rgba(5, 11, 59, 0.04);
  padding: 48px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-box .btn { margin-top: auto; }
.pricing-box .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.4em 0;
}
.pricing-box .price small {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}
.pricing-box ul {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  text-align: left;
}
.pricing-box ul li {
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pricing-box ul li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.6em;
}

/* Forms */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4em;
}
form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid var(--navy);
  background: transparent;
  font-family: var(--font-base);
  font-size: 1rem;
  margin-bottom: 1.4em;
}
form input:focus,
form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form-status { margin-top: 1em; font-weight: 600; }
.form-status.success { color: #198754; }
.form-status.error { color: #dc3545; }
.honeypot { position: absolute; left: -9999px; }

/* Footer */
footer {
  background: var(--footer-bg);
  padding: 60px 0 30px;
  font-size: 0.95rem;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
footer h4 {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--navy);
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 0.5em; }
footer a { color: var(--body-color); text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #666;
  font-size: 0.85rem;
}

/* Integration diagrams — dark panel (navy hero site) */
.diagram-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 50px 20px 30px;
  background: radial-gradient(ellipse at 50% 30%, #0d1550 0%, #050810 75%);
}
.diagram-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 78%);
}
.diagram-stage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 260px 180px at 14% 55%, rgba(213, 120, 0, 0.14), transparent 70%),
    radial-gradient(ellipse 260px 180px at 86% 45%, rgba(0, 166, 184, 0.14), transparent 70%);
}
.diagram-stage .stage-arcs {
  position: absolute; left: 50%; bottom: -18%; width: 120%; aspect-ratio: 2.6 / 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.diagram-stage .stage-arcs span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.06); }
.diagram-stage .stage-arcs span:nth-child(2) { inset: 9%; }
.diagram-stage .stage-arcs span:nth-child(3) { inset: 18%; }
.diagram-stage .hub-spoke { position: relative; z-index: 1; }

.hub-spoke {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.diagram-stage .hub-spoke { background-image: none; }
.hub-spoke::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hub-spoke svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-spoke .hub {
  position: absolute;
  left: 38%; top: 38%; width: 24%; height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #131b4d, #050b3b 70%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 30px rgba(0, 166, 184, 0.3), 0 0 30px rgba(213, 120, 0, 0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center;
}
.hub-spoke .hub i { font-size: 1.6rem; }
.hub-spoke .hub span { font-size: 0.68rem; font-weight: 700; margin-top: 0.3em; line-height: 1.3; }
.hub-spoke .spoke { position: absolute; width: 15.2%; text-align: center; }
.hub-spoke .spoke-icon {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #131b4d, #050b3b 70%);
  display: flex; align-items: center; justify-content: center;
}
.hub-spoke .spoke-icon::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hub-spoke .spoke.gold .spoke-icon { box-shadow: 0 0 18px rgba(213, 120, 0, 0.5); border: 1px solid rgba(213, 120, 0, 0.6); }
.hub-spoke .spoke.gold .spoke-icon::after { border-color: rgba(213, 120, 0, 0.35); }
.hub-spoke .spoke.gold .spoke-icon i { color: #f2a84f; }
.hub-spoke .spoke.blue .spoke-icon { box-shadow: 0 0 18px rgba(0, 166, 184, 0.5); border: 1px solid rgba(0, 166, 184, 0.6); }
.hub-spoke .spoke.blue .spoke-icon::after { border-color: rgba(0, 166, 184, 0.35); }
.hub-spoke .spoke.blue .spoke-icon i { color: #5fd6e6; }
.hub-spoke .spoke-icon i { font-size: 1.4rem; }
.hub-spoke .spoke-label { font-size: 0.7rem; margin-top: 0.6em; color: #cfd6ea; }

/* Linear flow diagram (input -> hub -> output) */
.flow-diagram { display: flex; align-items: center; justify-content: center; max-width: 700px; margin: 0 auto; }
.flow-node { display: flex; flex-direction: column; align-items: center; width: 140px; text-align: center; flex-shrink: 0; }
.flow-icon {
  position: relative; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #131b4d, #050b3b 70%);
  display: flex; align-items: center; justify-content: center;
}
.flow-icon::after { content: ""; position: absolute; inset: -18%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); }
.flow-icon i { font-size: 1.6rem; }
.flow-node.gold .flow-icon { box-shadow: 0 0 18px rgba(213, 120, 0, 0.5); border: 1px solid rgba(213, 120, 0, 0.6); }
.flow-node.gold .flow-icon::after { border-color: rgba(213, 120, 0, 0.35); }
.flow-node.gold .flow-icon i { color: #f2a84f; }
.flow-node.blue .flow-icon { box-shadow: 0 0 18px rgba(0, 166, 184, 0.5); border: 1px solid rgba(0, 166, 184, 0.6); }
.flow-node.blue .flow-icon::after { border-color: rgba(0, 166, 184, 0.35); }
.flow-node.blue .flow-icon i { color: #5fd6e6; }
.flow-node.hub .flow-icon {
  width: 100px; height: 100px;
  box-shadow: 0 0 30px rgba(0, 166, 184, 0.3), 0 0 30px rgba(213, 120, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.flow-node.hub .flow-icon i { color: #fff; font-size: 1.8rem; }
.flow-label { margin-top: 0.8em; font-size: 0.85rem; color: #cfd6ea; }
.flow-node.hub .flow-label { font-weight: 700; color: #fff; }
.flow-connector {
  flex: 1; min-width: 40px; height: 2px; margin: 0 -4px;
  background: linear-gradient(90deg, rgba(0, 166, 184, 0.6), rgba(213, 120, 0, 0.6));
  box-shadow: 0 0 6px rgba(0, 166, 184, 0.4);
}

/* App UI mockups (browser-chrome style, not photorealistic) */
.app-mockup {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(5, 11, 59, 0.25);
}
.app-mockup-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f0eb; }
.app-mockup-bar span { width: 9px; height: 9px; border-radius: 50%; background: #ddd; display: inline-block; }
.app-mockup-bar span:nth-child(1) { background: #e5695b; }
.app-mockup-bar span:nth-child(2) { background: #f4bf4f; }
.app-mockup-bar span:nth-child(3) { background: #61c454; }
.app-mockup-url { margin-left: 10px; font-size: 0.7rem; color: #999; background: #fff; padding: 3px 10px; border-radius: 6px; flex: 1; }
.app-mockup-body { display: flex; min-height: 200px; }
.app-sidebar { width: 40px; background: #f7f6f3; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.app-sidebar-dot { width: 8px; height: 8px; border-radius: 50%; background: #d8d4c8; }
.app-sidebar-dot.active { background: var(--gold); }
.app-main { flex: 1; padding: 16px; min-width: 0; }
.app-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.app-pill { font-size: 0.68rem; padding: 4px 10px; border-radius: 20px; background: #f1f0eb; color: #666; white-space: nowrap; }
.app-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.app-chart .bar { flex: 1; border-radius: 3px 3px 0 0; }
.bar.gold { background: var(--gold); }
.bar.blue { background: #00A6B8; }

.chat-thread { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble.user { align-self: flex-end; background: #eef1fb; color: var(--navy); padding: 10px 14px; border-radius: 12px 12px 2px 12px; font-size: 0.82rem; max-width: 78%; }
.chat-bubble.ai { display: flex; gap: 10px; align-items: flex-start; }
.ai-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #00A6B8);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem;
}
.chat-answer { background: #f7f6f3; border-radius: 2px 12px 12px 12px; padding: 10px 14px; font-size: 0.82rem; color: var(--navy); }
.mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 36px; margin-bottom: 8px; }
.mini-chart .bar { width: 8px; border-radius: 2px 2px 0 0; }

/* Borderless AI illustration (head + data stream + chart), no card/box */
.ai-scene { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.ai-head-stream { width: 100%; max-width: 420px; flex-shrink: 0; }
.ai-chart-panel { flex: 1; min-width: 280px; }
.ai-chart-title { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.ai-chart-title span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.ai-chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 160px; margin: 1.5rem 0; }
.ai-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ai-bar-value { font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: #cfd6ea; }
.ai-bar { width: 100%; border-radius: 3px 3px 0 0; box-shadow: 0 0 12px rgba(0, 166, 184, 0.4); }
.ai-bar-label { font-size: 0.72rem; margin-top: 8px; color: rgba(255, 255, 255, 0.6); }
.ai-kpis { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 0.5rem; }
.ai-kpi { display: flex; align-items: center; gap: 0.5em; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.ai-kpi i { font-size: 1.2rem; color: var(--gold); }
.ai-kpi strong { font-size: 1rem; color: #fff; }

.ai-hero-image {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at center, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 88% at center, black 55%, transparent 100%);
}
.ai-spotlight {
  background: radial-gradient(ellipse at 50% 40%, #0d1550 0%, #050810 85%);
  border-radius: 16px;
  padding: 20px;
}
.card-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.timeline-steps { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.timeline-step { width: 100px; text-align: center; }
.timeline-step .step-icon {
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto -14px; position: relative; z-index: 2;
}
.timeline-step .step-icon i { font-size: 1.25rem; color: var(--navy); }
.timeline-step .step-banner {
  width: 70px; height: 85px; margin: 0 auto;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 22px;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.timeline-step:nth-child(odd) .step-banner { background: var(--gold); }
.timeline-step:nth-child(even) .step-banner { background: #00A6B8; }
.timeline-line { border-top: 2px dashed rgba(255, 255, 255, 0.25); margin: 0 8%; }
.timeline-step .step-label { font-size: 0.75rem; margin-top: 1em; color: #cfd6ea; }

@media (max-width: 900px) {
  footer .footer-grid { grid-template-columns: 1fr; }
  .navbar .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--navy);
    flex-direction: column;
    padding: 100px 32px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .navbar .nav-links.open { transform: translateX(0); }
  .dropdown-menu { display: block; position: static; background: transparent; margin-top: 4px; padding-left: 12px; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
  }
}
