/* ============================================================
   Fulcrum Cyber — site styles (light theme, brand palette)
   Palette from brand deck:
   navy #0B2545 · teal #14B8A6 · blue #1B5E94 / #3D8BCD
   ink #1F2937 · slate #556575 · mist #F7F8FA · line #D0D7DE
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --surface: #ffffff;
  --navy: #0b2545;
  --navy-2: #123a66;
  --ink: #1f2937;
  --slate: #556575;
  --line: #e2e8f0;
  --line-strong: #d0d7de;
  --teal: #14b8a6;
  --teal-deep: #0f9488;
  --blue: #1b5e94;
  --blue-bright: #3d8bcd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.05), 0 8px 24px -12px rgba(11, 37, 69, 0.12);
  --shadow-lift: 0 2px 4px rgba(11, 37, 69, 0.06), 0 18px 40px -16px rgba(11, 37, 69, 0.22);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  margin-bottom: 0.9rem;
}

.grad-text {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Loading screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  display: grid;
  place-items: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

/* the mark rocks gently on its own fulcrum */
.loader-inner img {
  height: 84px;
  width: auto;
  transform-origin: 50% 74%;
  animation: loader-rock 1.5s ease-in-out infinite;
}

@keyframes loader-rock {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.loader-word {
  font-family: "Montserrat", var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--navy);
  animation: loader-breathe 1.5s ease-in-out infinite;
}

.loader-word span { color: var(--blue); font-weight: 600; }

@keyframes loader-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-inner img, .loader-word { animation: none; }
}

/* ---------- Particle network background ---------- */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* particles.js sizes the canvas via inline JS style (canvas.style.width/height),
   which Safari's CSP style-src enforcement silently blocks (Chrome allows it) —
   without this rule the canvas stays at its 300x150 default and nothing shows */
#particles-js canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (prefers-reduced-motion: reduce) {
  #particles-js { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark { height: 40px; width: auto; }

.brand-name {
  font-family: "Montserrat", var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-name span { color: var(--blue); font-weight: 600; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-menu a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover { color: var(--navy); }

.nav-cta {
  color: #fff !important;
  background: var(--navy);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--navy-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% -5%, rgba(61, 139, 205, 0.14), transparent),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(20, 184, 166, 0.10), transparent);
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero h1 { max-width: 18ch; margin-inline: auto; }

.hero-sub {
  max-width: 56ch;
  margin: 1.4rem auto 2.2rem;
  color: var(--slate);
  font-size: 1.08rem;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  list-style: none;
  margin-top: 3.2rem;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--blue);
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.78rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { background: var(--navy-2); }

.btn-ghost {
  color: var(--navy);
  border-color: var(--line-strong);
  background: var(--bg);
}

.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

.btn-block { width: 100%; }

/* ---------- Trust bar ---------- */
.trustbar {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 1.6rem 0;
  position: relative;
  z-index: 2;
}

.trustbar-label {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-bottom: 1rem;
}

.trustbar-items {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  list-style: none;
  flex-wrap: wrap;
}

.trustbar-items li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  opacity: 0.9;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; z-index: 2; }

.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.5rem);
}

.section-sub { color: var(--slate); margin-top: 0.9rem; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 0.7rem; }

.card > p { color: var(--slate); font-size: 0.94rem; }

.card-list {
  list-style: none;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.card-list li {
  font-size: 0.88rem;
  color: var(--slate);
  padding-left: 1.4rem;
  position: relative;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Split layout (approach / contact) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-text > p { color: var(--slate); margin-top: 1rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: baseline;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / 3;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-deep);
  align-self: start;
}

.steps strong { font-family: var(--font-head); font-size: 1rem; color: var(--navy); }

.steps span { color: var(--slate); font-size: 0.9rem; grid-column: 2; }

/* balance illustration */
.fulcrum-art { width: 100%; height: auto; --accent: var(--blue-bright); --accent-2: var(--teal); }

.fulcrum-art .art-ground { stroke: var(--line-strong); }
.fulcrum-art .art-frame { stroke: #9fb0c7; }

.art-label {
  font-family: var(--font-head);
  font-size: 15px;
  fill: var(--slate);
}

.balance-beam {
  transform-origin: 200px 154px;
  animation: seesaw 7s ease-in-out infinite;
}

@keyframes seesaw {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .balance-beam { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.about-card {
  background: linear-gradient(160deg, #ffffff, #f2f6fa);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.about-card h3 {
  color: var(--blue);
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.about-card p { color: var(--slate); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-points {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.contact-points a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.contact-points a:hover { text-decoration: underline; }

.contact-points svg {
  width: 22px;
  height: 22px;
  color: var(--teal-deep);
  flex-shrink: 0;
}

.contact-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow);
}

/* honeypot: invisible to humans, tempting to bots */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-row { display: grid; gap: 0.4rem; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: #9aa8ba; }

.form-status {
  font-size: 0.88rem;
  min-height: 1.2em;
  text-align: center;
  color: var(--slate);
}

.form-status.ok { color: var(--teal-deep); }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cddaeb;
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo { height: 96px; width: auto; }

.footer-brand p {
  color: #9fb3cc;
  font-size: 0.88rem;
  margin-top: 0.9rem;
}

.footer-nav {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.footer-nav a {
  color: #9fb3cc;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover { color: #ffffff; }

.footer-meta {
  color: #9fb3cc;
  font-size: 0.82rem;
  display: grid;
  gap: 0.3rem;
  justify-items: end;
  text-align: right;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-nav { justify-items: center; }
  .footer-meta { justify-items: center; text-align: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    display: none;
    padding: 0.6rem 0;
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { text-align: center; }

  .nav-menu a {
    display: block;
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin: 0.6rem 1.4rem 0.4rem;
    border-radius: 10px;
  }

  .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); }
}
