/* Hidden Point Capital — modern theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #dbe3f1;
  --muted: #8a96aa;
  --accent: #5a8bff;
  --accent-deep: #2f6fed;
  --line: #333c4b;
  --bg: #1a1f29;
  --bg-alt: #212733;
  --card: #252c39;
  --dark: #212733;
  --max: 1140px;
  --shadow: 0 18px 44px -16px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.01em; line-height: 1.15; }

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

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 19, .8);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled {
  background: rgba(10, 13, 19, .92);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5);
}
.nav .logo img { height: 36px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero.compact { min-height: 44vh; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(8,15,32,.86) 0%, rgba(8,15,32,.62) 45%, rgba(8,15,32,.30) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 600;
  color: #8fb4ff; margin: 0 0 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.hero .sub { font-size: clamp(17px, 2vw, 21px); color: #d7e0ee; margin: 0; max-width: 620px; }
.hero .cta { margin-top: 32px; }

/* Buttons — flat, modern */
.btn {
  display: inline-block;
  background: var(--accent-deep);
  color: #fff;
  border: 1px solid transparent;
  padding: 13px 30px;
  margin: 6px 8px 6px 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(47,111,237,.5);
}
.btn:active { transform: none; box-shadow: none; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.22);
}
.btn.ghost:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.38);
  box-shadow: none;
}
.btn.ghost:active { transform: none; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #cdd6e6; }
.section.dark h2 { color: #fff; }
.eyebrow-dark { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 14px; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; line-height: 1.18; margin: 0 0 20px; }
.section h3 { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 32px 0 12px; }
.lead { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.65; color: var(--ink); font-weight: 500; }
.section.dark .lead { color: #eaf0fa; }
p { margin: 0 0 20px; }
.muted { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split.reverse .media { order: -1; }
.media img { border-radius: 14px; width: 100%; height: 100%; max-height: 520px; object-fit: cover; box-shadow: var(--shadow); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.pillar {
  display: block;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  color: var(--ink);
}
.pillar h3 { margin: 0; font-size: 19px; color: var(--ink); }
.pillar:hover h3 { color: var(--accent-deep); }
.pillar p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Process pipeline (Approach: key components as sequential steps) */
.pipeline { list-style: none; margin: 38px 0 0; padding: 0; }
.pipeline .step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 24px;
  padding-bottom: 34px;
}
.pipeline .step:last-child { padding-bottom: 0; }
/* connector line linking each node to the next */
.pipeline .step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(90,139,255,.14));
}
.pipeline .step:last-child::before { display: none; }
/* arrow node — chevron points down the pipeline */
.step-node {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: rgba(47,111,237,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px rgba(47,111,237,.35);
}
.step-node::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.pipeline .step:last-child .step-node { background: var(--accent); }
.pipeline .step:last-child .step-node::before { border-color: #fff; }
.step-body { padding-top: 3px; }
.step-body h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.step-body p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* Lists */
.feature-list { list-style: none; padding: 0; margin: 0 0 20px; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 36px; box-shadow: var(--shadow);
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--muted); letter-spacing: .03em; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; color: var(--ink); background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-status { margin: 16px 0 0; font-size: 15px; min-height: 1em; }
.form-status.ok  { color: #4ade80; }
.form-status.err { color: #f87171; }
.form-note { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.addr { font-size: 17px; line-height: 1.9; }
.addr strong { display: block; font-size: 19px; margin-bottom: 10px; font-family: "Space Grotesk"; }
.addr .label { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 22px; }

/* Footer */
.site-footer { background: var(--dark); color: #8a96aa; padding: 56px 0 40px; font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.site-footer .brand { font-family: "Space Grotesk"; color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.site-footer a { color: #b9c4d6; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  display: block;
  flex-basis: 100%;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: #6d7a8f;
}

/* Hero entrance — pure CSS, runs on every page load */
.hero-content > * { animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .18s; }
.hero-content > *:nth-child(3) { animation-delay: .31s; }
.hero-content > *:nth-child(4) { animation-delay: .44s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { background-size: 112%; } to { background-size: 100%; } }

/* Scroll reveal — only hides content when JS is active (graceful fallback) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Staggered cards inside a revealed grid */
.js .reveal .pillar { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in .pillar { opacity: 1; transform: none; }
.js .reveal.in .pillar:nth-child(1) { transition-delay: .05s; }
.js .reveal.in .pillar:nth-child(2) { transition-delay: .12s; }
.js .reveal.in .pillar:nth-child(3) { transition-delay: .19s; }
.js .reveal.in .pillar:nth-child(4) { transition-delay: .26s; }
.js .reveal.in .pillar:nth-child(5) { transition-delay: .33s; }
.js .reveal.in .pillar:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero { animation: none; }
  .js .reveal, .js .reveal .pillar { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 820px) {
  .nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-alt); padding: 20px 28px; gap: 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav ul.open { display: flex; }
  .nav-toggle { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .media { order: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 70vh; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}
