/* =========================================================
   Sightline North — styles
   Palette: deep night navy, glacier blue, north-star ice
   ========================================================= */

:root {
  --bg: #07111f;
  --bg-2: #0b1a2e;
  --bg-3: #10233d;
  --line: rgba(143, 211, 255, 0.12);
  --line-2: rgba(143, 211, 255, 0.22);
  --text: #e8f0fa;
  --muted: #93a7c1;
  --dim: #5f7591;
  --accent: #8fd3ff;     /* north-star ice */
  --accent-2: #4f8dff;   /* glacier blue */
  --accent-3: #2c5ea8;
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04101e;
  font-weight: 700; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 30px -10px rgba(79, 141, 255, .6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(79, 141, 255, .8); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 17, 31, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; letter-spacing: -0.01em; font-weight: 500; }
.brand strong { font-weight: 800; }
.brand-mark { width: 34px; height: 34px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 220px;
  background:
    radial-gradient(1200px 600px at 75% 10%, rgba(79,141,255,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(143,211,255,.08), transparent 60%),
    linear-gradient(180deg, #050d18 0%, var(--bg) 60%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 50%),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,.5), transparent 50%),
    radial-gradient(1px 1px at 44% 22%, rgba(255,255,255,.4), transparent 50%),
    radial-gradient(1.5px 1.5px at 63% 12%, rgba(255,255,255,.7), transparent 50%),
    radial-gradient(1px 1px at 82% 30%, rgba(255,255,255,.45), transparent 50%),
    radial-gradient(1px 1px at 91% 9%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(1px 1px at 6% 40%, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(1px 1px at 36% 38%, rgba(255,255,255,.3), transparent 50%),
    radial-gradient(1px 1px at 72% 42%, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 5%, rgba(255,255,255,.5), transparent 50%),
    radial-gradient(1px 1px at 19% 52%, rgba(255,255,255,.25), transparent 50%),
    radial-gradient(1px 1px at 88% 55%, rgba(255,255,255,.25), transparent 50%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .6; } to { opacity: 1; } }

/* the North Star sits over the highest peak of the ridge */
.north-star {
  position: absolute; left: 52.8%; top: 16%;
  width: 14px; height: 14px; transform: translate(-50%, -50%);
}
.north-star span, .north-star::before, .north-star::after { position: absolute; content: ""; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.north-star span { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(143,211,255,.75), 0 0 60px 20px rgba(79,141,255,.35); }
.north-star::before { width: 2px; height: 46px; background: linear-gradient(transparent, rgba(255,255,255,.9), transparent); }
.north-star::after { width: 46px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); }
.north-star { animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .85; } 50% { opacity: 1; filter: brightness(1.25); } }

.hero-content { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 800; max-width: 14ch; }
.grad {
  background: linear-gradient(100deg, #ffffff 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; min-height: 220px; z-index: 1; }
.ridges .r1 { fill: #0d203a; }
.ridges .r2 { fill: #0a1a30; }
.ridges .r3 { fill: var(--bg-2); }
.ridges .trail {
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 8; opacity: .55;
  stroke-dashoffset: 400; animation: trail 3.5s var(--ease) .4s forwards;
}
@keyframes trail { to { stroke-dashoffset: 0; } }

/* ---------- Strip ---------- */
.strip { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 22px; padding: 26px 28px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.strip-inner i { color: var(--dim); font-style: normal; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 130px 0; }
.section-alt { background: var(--bg-2); overflow: hidden; }
.section-head { max-width: 680px; margin-bottom: 64px; position: relative; z-index: 1; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; }
.section-lead { margin-top: 22px; color: var(--muted); font-size: 18px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  padding: 36px 32px 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,35,61,.75), rgba(11,26,46,.55));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(143,211,255,.10), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(143,211,255,.08); border: 1px solid var(--line-2);
  margin-bottom: 28px;
}
.card-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.card-icon .fill { fill: var(--accent); stroke: none; }
.card-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.card h3 { font-size: 24px; margin-bottom: 14px; }
.card > p:not(.card-tag) { color: var(--muted); font-size: 16px; }
.card ul { list-style: none; padding: 22px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.card li { font-size: 14.5px; color: var(--text); display: flex; gap: 10px; align-items: center; }
.card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); flex: none; }

/* ---------- Topographic backdrop ---------- */
.topo {
  position: absolute; inset: -10% -10%;
  opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%238fd3ff' stroke-opacity='0.07' stroke-width='1.2'%3E%3Cpath d='M300 120c90 0 170 60 170 150s-60 190-170 190-190-70-190-170 100-170 190-170z'/%3E%3Cpath d='M300 160c70 0 130 45 130 115s-45 145-130 145-150-55-150-130 80-130 150-130z'/%3E%3Cpath d='M300 200c50 0 90 35 90 80s-30 100-90 100-110-40-110-90 60-90 110-90z'/%3E%3Cpath d='M300 240c30 0 50 20 50 45s-20 55-50 55-70-25-70-50 40-50 70-50z'/%3E%3Cpath d='M300 80c110 0 210 75 210 190s-80 230-210 230-230-90-230-210 120-210 230-210z'/%3E%3Cpath d='M300 40c130 0 250 90 250 230s-100 270-250 270-270-110-270-250 140-250 270-250z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 700px 700px;
  background-position: 85% 20%;
}

/* ---------- Route (approach) ---------- */
.route {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  position: relative; z-index: 1;
}
.route::before {
  content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 14px);
  opacity: .45;
}
.route li { position: relative; display: flex; flex-direction: column; gap: 22px; }
.route-marker {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--accent);
  color: var(--accent); font-size: 14px;
  box-shadow: 0 0 0 6px var(--bg-2);
  position: relative; z-index: 1;
}
.route li:last-child .route-marker { background: var(--accent); color: var(--bg); box-shadow: 0 0 0 6px var(--bg-2), 0 0 30px rgba(143,211,255,.5); }
.route-elev { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.route h3 { font-size: 22px; margin-bottom: 10px; }
.route p:not(.route-elev) { color: var(--muted); font-size: 15.5px; }

/* ---------- Commerce split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.split-text h2 { margin-bottom: 26px; }
.split-text > p { color: var(--muted); margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: rgba(143,211,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fd3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.channel-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(400px 300px at 50% 40%, rgba(79,141,255,.18), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  padding: 34px;
  aspect-ratio: 1 / 1.02;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.live-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 92, 122, .12); border: 1px solid rgba(255, 92, 122, .35);
  color: #ff8aa1; font-size: 12px; letter-spacing: .14em;
}
.live-badge span { width: 7px; height: 7px; border-radius: 50%; background: #ff5c7a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.channel-orbit { position: relative; flex: 1; display: grid; place-items: center; }
.orbit-ring {
  position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed var(--line-2);
  animation: spin 40s linear infinite;
}
.orbit-ring.r2 { width: 44%; border-style: solid; border-color: var(--line); animation-direction: reverse; animation-duration: 28s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
  width: 88px; height: 88px; border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101e;
  box-shadow: 0 20px 60px -15px rgba(79,141,255,.8);
}
.orbit-core svg { width: 48px; height: 48px; }
.node {
  position: absolute;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(7,17,31,.85); border: 1px solid var(--line-2);
  font-size: 12px; letter-spacing: .06em; color: var(--text);
  white-space: nowrap;
}
.n1 { top: 8%; left: 50%; transform: translateX(-50%); }
.n2 { right: 2%; top: 50%; transform: translateY(-50%); }
.n3 { bottom: 8%; left: 50%; transform: translateX(-50%); }
.n4 { left: 2%; top: 50%; transform: translateY(-50%); }
.channel-foot {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); letter-spacing: .06em;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.channel-foot .arrow { color: var(--accent); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { background: var(--bg-2); padding: 38px 30px; transition: background .3s; }
.principle:hover { background: var(--bg-3); }
.principle > span {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--accent); font-size: 13px; margin-bottom: 24px;
}
.principle h3 { font-size: 19px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 110px; }
.contact-card {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 90px 40px 110px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(79,141,255,.22), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card .section-lead { max-width: 600px; margin-left: auto; margin-right: auto; }
.contact-ridge { position: absolute !important; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; z-index: 0 !important; }
.contact-ridge path { fill: rgba(7,17,31,.55); }
.contact-actions { margin-top: 38px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-meta {
  margin-top: 36px; display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-coord { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer-copy { color: var(--dim); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ridges .trail { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; max-width: 620px; }
  .route { grid-template-columns: 1fr 1fr; gap: 48px 28px; }
  .route::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 60px; }
  .split-visual { max-width: 480px; }
  .principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px; background: rgba(7,17,31,.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(7,17,31,.97); }
  .section { padding: 90px 0; }
  .hero { padding: 120px 0 180px; }
  .route { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .contact-card { padding: 64px 24px 90px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .north-star { left: 70%; top: 13%; }
  .br-desk { display: none; }
}
