/* ===================================================================
   GeoSpekter shared styles
   Dark navy, minimal, Inter. Matches the InSpekt app shell aesthetic
   =================================================================== */

:root {
  --bg:          #1b1c27;
  --bg-2:        #1f2030;
  --surface:     #262838;
  --surface-2:   #2d2f41;
  --border:      rgba(255, 255, 255, 0.09);
  --border-2:    rgba(255, 255, 255, 0.14);
  --text:        #f2f3f8;
  --text-soft:   #c7cbd8;
  --muted:       #969cb0;
  --accent:      #4a9eff;
  --accent-soft: rgba(74, 158, 255, 0.13);
  /* InSAR fringe palette, used sparingly as accents */
  --f-red:   #ff5a5a;
  --f-amber: #ffb02e;
  --f-green: #59d185;
  --f-blue:  #3fb6ff;
  --radius:    16px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { color: var(--text-soft); }

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

.muted   { color: var(--muted); }
.accent  { color: var(--accent); }
.center  { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 600;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.18s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #08111f; }
.btn-primary:hover { background: #6fb2ff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 25, 36, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 66px; display: flex; align-items: center; gap: 6px;
}
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo img { height: 27px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
  padding: 8px 15px; border-radius: 999px;
  transition: all 0.16s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); font-weight: 600; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-2); margin-left: 8px;
  transition: all 0.16s var(--ease);
}
.nav-cta:hover { background: var(--surface); border-color: var(--muted); }
.nav-cta svg { width: 14px; height: 14px; opacity: 0.85; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px; color: var(--text);
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.08rem; margin-top: 14px; }

.divider { height: 1px; background: var(--border); border: none; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(74,158,255,0.16), transparent 62%);
  pointer-events: none; z-index: 0;
}
/* Home hero: dotted Earth backdrop */
.hero-home { padding-top: 110px; }
.hero-earth {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  top: -210px; left: 50%; width: min(880px, 116%);
  transform: translateX(-26%);
  opacity: 0.92;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 70%);
}
.hero-atmo {
  position: absolute; z-index: 0; pointer-events: none;
  top: -250px; left: 50%; width: 760px; height: 760px;
  transform: translateX(-26%); border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,255,0.20), rgba(63,182,255,0.07) 45%, transparent 66%);
  filter: blur(8px);
}
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 22%, rgba(27,28,39,0.35) 58%, transparent 80%),
    linear-gradient(0deg, var(--bg) 4%, transparent 34%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; }
.hero-sub { font-size: 1.18rem; color: var(--text-soft); max-width: 56ch; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 15px 7px 11px; border-radius: 999px; margin-bottom: 26px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--f-green); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }

.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 0.95rem; margin-bottom: 16px;
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); margin-bottom: 16px;
}
.card-icon svg { width: 23px; height: 23px; stroke: var(--accent); }

/* feature list */
.flist { list-style: none; display: grid; gap: 16px; }
.flist li { display: flex; gap: 13px; align-items: flex-start; }
.flist .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.flist .tick svg { width: 13px; height: 13px; stroke: var(--accent); }
.flist b { color: var(--text); font-weight: 600; }
.flist span { color: var(--text-soft); }

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* ---------- Tag chips (applications) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 15px; border-radius: 999px;
  transition: all 0.16s var(--ease);
}
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip .d { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Panel (highlighted box) ---------- */
.panel {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px;
}

/* InSpekt logo holder */
.logo-stage {
  background: #232331; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px 32px;
  display: flex; align-items: center; justify-content: center;
}
.logo-stage svg { width: 100%; max-width: 440px; height: auto; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; gap: 18px; }
.rstep {
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px;
}
.rstep .rmarker { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rdot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent); background: var(--bg);
}
.rdot.live { background: var(--f-green); border-color: var(--f-green); box-shadow: 0 0 0 4px rgba(89,209,133,0.18); }
.rline { width: 2px; flex: 1; background: var(--border-2); min-height: 18px; }
.status {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}
.status.live { background: rgba(89,209,133,0.16); color: var(--f-green); }
.status.soon { background: var(--accent-soft); color: var(--accent); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.person { text-align: center; }
.person img {
  width: 124px; height: 124px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  border: 2px solid var(--border-2);
}
.person h3 { font-size: 1.08rem; margin-bottom: 4px; }
.person .role { font-size: 0.86rem; color: var(--accent); font-weight: 500; }
.person .bio { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

.advisor {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.advisor img {
  width: 132px; height: 132px; border-radius: 20px; object-fit: cover;
  border: 1px solid var(--border-2);
}
.advisor h3 { font-size: 1.25rem; margin-bottom: 4px; }
.advisor .role { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.advisor p { font-size: 0.96rem; }
.advisor .ln {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 0.9rem; font-weight: 600; color: var(--accent);
}
.advisor .ln svg { width: 16px; height: 16px; }

/* ---------- Incubation strip ---------- */
.incub {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 32px;
}
.incub .seal {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.incub .seal svg { width: 26px; height: 26px; stroke: var(--accent); }
.incub b { color: var(--text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.stat:hover { border-color: var(--border-2); transform: translateY(-2px); }
.stat-ic {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.stat-ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.stat-v { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.stat-l { font-size: 0.92rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .panel { padding: 56px 40px; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 52ch; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.cinfo { display: grid; gap: 18px; }
.cinfo .row { display: flex; gap: 14px; align-items: flex-start; }
.cinfo .ic {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.cinfo .ic svg { width: 19px; height: 19px; stroke: var(--accent); }
.cinfo .k { font-size: 0.8rem; color: var(--muted); }
.cinfo .v { font-weight: 600; color: var(--text); }
.cinfo a.v:hover { color: var(--accent); }

form.cform { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.field input, .field textarea {
  font-family: inherit; font-size: 0.96rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 14px; resize: vertical; transition: border-color 0.16s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 54px 0 36px; background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 26px; width: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 0.9rem; max-width: 34ch; }
.foot-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; font-size: 0.92rem; color: var(--text-soft); padding: 5px 0; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
  }
  .nav.open .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .nav.open .nav-cta {
    display: inline-flex; justify-content: center; margin: 0; margin-top: 6px;
  }
  .split, .grid-3, .grid-2, .team-grid, .stats, .contact-grid, .foot { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split { gap: 36px; }
  .advisor { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot { gap: 30px; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-home { padding-top: 72px; }
  .hero-earth {
    top: -120px; width: 560px; transform: translateX(-50%);
    opacity: 0.6;
  }
  .hero-atmo { top: -150px; width: 460px; height: 460px; transform: translateX(-50%); }
  .hero-fade {
    background:
      linear-gradient(0deg, var(--bg) 30%, transparent 70%),
      radial-gradient(circle at 50% 6%, transparent 30%, rgba(27,28,39,0.55) 62%);
  }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .nav-inner { padding: 0 18px; }
  .panel, .advisor, .card { padding: 24px; }
  .cta-band .panel { padding: 40px 24px; }
}

/* ---------- Polish ---------- */
.hero-home h1 {
  background: linear-gradient(180deg, #ffffff 30%, #c4d6f5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.btn-primary { box-shadow: 0 6px 22px rgba(74,158,255,0.28); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(74,158,255,0.38); }
.logo-stage {
  box-shadow: inset 0 0 60px rgba(74,158,255,0.06), var(--shadow);
  position: relative; overflow: hidden;
}
.logo-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 70% 30%, rgba(74,158,255,0.10), transparent 60%);
}
.card, .stat, .rstep { box-shadow: 0 2px 14px rgba(0,0,0,0.18); }
.panel { box-shadow: var(--shadow); }
[id] { scroll-margin-top: 86px; }
.nav-links a, .nav-cta, .chip, .card, .stat, .person img, .advisor img { will-change: auto; }
.eyebrow {
  position: relative; padding-left: 0;
}
.section-head h2 { background: linear-gradient(180deg, var(--text) 60%, #cfd6e6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta-band .panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(74,158,255,0.12), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--bg-2));
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
