/* ============ Orbucx — styles.css ============ */
:root {
  --bg: #0b0f1a;
  --bg-alt: #0e1422;
  --surface: #111827;
  --surface-2: #151d30;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e6eaf2;
  --muted: #94a3b8;
  --blue: #2563eb;
  --teal: #14b8a6;
  --grad: linear-gradient(100deg, #2563eb, #14b8a6);
  --radius: 16px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #24304a; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #32415f; }

::selection { background: rgba(37, 99, 235, 0.45); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.8vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
p { color: var(--muted); }
a { color: var(--teal); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--s3); }
.container-narrow { max-width: 820px; }
.section { padding: var(--s12) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s8); }
.section-head h2 { color: var(--text); margin: var(--s2) 0; }
.section-sub { font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: var(--s1);
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(20, 184, 166, 0.4); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: rgba(148, 163, 184, 0.35);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 15, 26, 0.65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(11, 15, 26, 0.85); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: var(--s2) var(--s3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  letter-spacing: 0.12em; color: var(--text);
}
.wordmark span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: var(--s4); }
.nav-links a:not(.btn) {
  color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* ============ Nav Dropdown ============ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}
.nav-dropdown-toggle:hover { color: var(--text); }
.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--text);
}
.nav-dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
}
.nav-dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: var(--s1); }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--s12) + 72px) 0 var(--s12);
  text-align: center;
}
.hero-backdrop {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 35% at 75% 15%, rgba(20, 184, 166, 0.12), transparent 70%),
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.hero-content { position: relative; }
.hero h1 { margin: var(--s2) 0 var(--s3); color: var(--text); }
.hero-sub { max-width: 640px; margin: 0 auto var(--s5); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.hero-ctas { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s8); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3);
  max-width: 880px; margin: 0 auto;
}
.stat dt {
  font-family: var(--font-head); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat dd { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ============ Trust bar ============ */
.trustbar { padding: var(--s5) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-label { text-align: center; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s3); }
.trust-logos {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s6);
}
.trust-logos li {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: rgba(148, 163, 184, 0.55); transition: color 0.25s ease;
}
.trust-logos li:hover { color: var(--text); }

/* ============ Cards & grids ============ */
.grid { display: grid; gap: var(--s3); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.audit-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.audit-outcome {
  border-color: rgba(20, 184, 166, 0.5);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), var(--surface) 45%);
}
.section-cta { text-align: center; margin-top: var(--s6); }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s5); }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.work-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.card h3 { color: var(--text); margin-bottom: var(--s1); }
.card p { font-size: 0.95rem; }

.icon {
  width: 44px; height: 44px; margin-bottom: var(--s2);
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.18));
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--teal);
}
.icon svg { width: 22px; height: 22px; }

.why-item h3 { color: var(--text); margin-bottom: var(--s1); }
.why-item p { font-size: 0.95rem; }

/* ============ Pricing ============ */
.price-card { display: flex; flex-direction: column; }
.price-card ul { list-style: none; margin: var(--s3) 0; flex: 1; }
.price-card li {
  color: var(--muted); font-size: 0.92rem; padding: 6px 0 6px 26px; position: relative;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.3), rgba(20,184,166,.3));
  border: 1px solid var(--teal);
}
.price { font-size: 0.95rem; color: var(--muted); margin: var(--s1) 0 var(--s2); }
.price strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--text); font-weight: 700; }
.price span { font-size: 0.9rem; }
.price-card .btn { align-self: stretch; }
.featured {
  border-color: rgba(20, 184, 166, 0.5);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), var(--surface) 45%);
  position: relative;
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}

/* ============ Timeline ============ */
.timeline {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
  counter-reset: step;
}
.timeline li { position: relative; padding-top: var(--s2); }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * var(--s4)); height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0.35;
}
.timeline li:last-child::before { right: 0; }
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  color: var(--teal); letter-spacing: 0.1em;
}
.timeline h3 { color: var(--text); margin: var(--s1) 0; }
.timeline p { font-size: 0.92rem; }

/* ============ Work / case cards ============ */
.metric { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; margin-bottom: var(--s1); }
.work-card .tags { margin-top: var(--s2); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(148,163,184,0.7); }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: var(--s2); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: rgba(20, 184, 166, 0.4); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.chev {
  flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); transition: transform 0.25s ease;
}
.faq-item[open] .chev { transform: rotate(225deg); }
.faq-item p { padding: 0 var(--s4) var(--s3); font-size: 0.95rem; }

/* ============ Blog ============ */
.blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-thumb { height: 150px; position: relative; }
.blog-thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(230, 234, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 234, 242, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}
.blog-thumb-1 { background: linear-gradient(120deg, rgba(37, 99, 235, 0.55), rgba(20, 184, 166, 0.35)); }
.blog-thumb-2 { background: linear-gradient(120deg, rgba(20, 184, 166, 0.45), rgba(37, 99, 235, 0.45)); }
.blog-thumb-3 { background: linear-gradient(160deg, rgba(37, 99, 235, 0.4), rgba(20, 184, 166, 0.55)); }
.blog-body { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.blog-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}
.blog-body h3 { color: var(--text); }
.blog-body p { font-size: 0.92rem; }
.blog-meta {
  margin-top: auto; padding-top: var(--s2);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
}
.blog-meta span { font-size: 0.82rem; color: rgba(148, 163, 184, 0.7); }
.blog-more { font-size: 0.9rem; font-weight: 600; font-family: var(--font-head); transition: color 0.2s ease; }
.blog-more:hover { color: var(--text); }

/* ============ Connect strip ============ */
.connect-strip { padding: var(--s8) 0; border-top: 1px solid var(--border); }
.connect-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
}
.connect-title { color: var(--text); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
.social-links, .footer-social { display: flex; gap: var(--s2); }
.social-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.18));
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--teal);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover {
  transform: translateY(-3px);
  border-color: var(--teal); color: var(--text);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
}
.footer-social .social-btn { width: 40px; height: 40px; }
.footer-social .social-btn svg { width: 17px; height: 17px; }

/* ============ CTA band ============ */
.cta-band {
  text-align: center; padding: var(--s12) 0;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(37, 99, 235, 0.2), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-band h2 { color: var(--text); margin-bottom: var(--s2); }
.cta-band p { max-width: 560px; margin: 0 auto var(--s5); }

/* ============ Contact form ============ */
.contact-form { display: grid; gap: var(--s3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(148, 163, 184, 0.5); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(148, 163, 184, 0.35); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* ============ Footer ============ */
.footer { padding: var(--s8) 0 var(--s4); border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s5); flex-wrap: wrap;
  padding-bottom: var(--s5);
}
.footer-tag { max-width: 360px; font-size: 0.9rem; margin-top: var(--s1); }
.footer-nav { display: flex; flex-direction: column; gap: var(--s1); }
.footer-nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--teal); }
.footer-legal { border-top: 1px solid var(--border); padding-top: var(--s3); }
.footer-legal p { font-size: 0.82rem; color: rgba(148, 163, 184, 0.6); }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li::before { right: 0; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 15, 26, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: var(--s2) var(--s3) var(--s3);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
  /* Mobile dropdown */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { 
    padding: var(--s2) 0; 
    border-bottom: 1px solid var(--border); 
    width: 100%; 
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(17, 24, 39, 0.5);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    padding: var(--s2) var(--s3);
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown-menu a:first-child,
  .nav-dropdown-menu a:last-child {
    border-radius: 0;
  }
  .nav-links .btn { margin-top: var(--s2); }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: var(--s8) 0; }
  .connect-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}
