/* PROJECT CONNECT — premium investor-grade landing. Dark, teal, glassmorphism. */
:root {
  --bg: #05070b;
  --bg-2: #080b12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(45, 212, 191, 0.35);
  --text: #eef2f8;
  --muted: #9aa6b4;
  --faint: #5e6a79;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(115deg, #2dd4bf 0%, #22d3ee 55%, #38bdf8 100%);
  --glow: rgba(45, 212, 191, 0.45);
  --maxw: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* subtle grid + ambient light */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% -5%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% -5%, #000 25%, transparent 78%);
}
body::after {
  content: ''; position: fixed; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 760px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.16), transparent 62%);
  filter: blur(30px);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.eyebrow { color: var(--teal); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #042024; box-shadow: 0 8px 30px -8px var(--glow); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px var(--glow); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--panel); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--border-strong); }

/* nav */
header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(5, 7, 11, 0.6); backdrop-filter: blur(16px) saturate(140%); }
.nav { display: flex; align-items: center; height: 70px; gap: 26px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk'; font-weight: 600; letter-spacing: 0.14em; font-size: 15px; white-space: nowrap; min-width: 0; overflow: hidden; }
.brand img { flex: 0 0 auto; }
.nav .links { flex: 0 0 auto; }       /* button cluster never shrinks or wraps off-screen */
.nav .links .btn { flex: 0 0 auto; }
.brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 8px var(--glow)); }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav .links a:not(.btn) { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav .links a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) { .nav .links a:not(.btn) { display: none; } .btn { padding: 11px 16px; font-size: 14px; } }
@media (max-width: 480px) {
  .nav { gap: 12px; }
  .brand { font-size: 14px; letter-spacing: 0.06em; gap: 8px; }
  .brand .bp { display: none; }            /* drop "PROJECT", keep "CONNECT" on small screens */
  .brand img { width: 24px; height: 24px; }
  .nav .links .btn { padding: 10px 14px; }
}

/* hero — two-column: copy left, visual right (matches mockup) */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero-copy { text-align: left; }
.hero-eyebrow { display: block; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; }
.hero .sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 520px; margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip { font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; background: var(--panel); backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 7px; }
.chip svg { width: 13px; height: 13px; color: var(--teal); }

/* hero stage (premium photo render; SVG + cards are fallback only) */
.stage { position: relative; width: 100%; aspect-ratio: 815 / 338; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05); }
.stage .hero-photo { position: absolute; inset: 0; z-index: 2; display: block; }
.stage .hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .city { position: absolute; inset: 0; display: block; width: 100%; height: 100%; z-index: 1; }
/* overlay cards are baked into the render — only show them when the photo is unavailable */
.stage.no-photo .hero-photo { display: none; }
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 56px; }
  .hero-copy { text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero .cta, .chips { justify-content: center; }
  .stage { max-width: 640px; margin: 0 auto; }
}
.float-card {
  position: absolute; z-index: 3; display: none; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 13px; min-width: 150px;
  background: rgba(12, 18, 26, 0.72); border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: float 7s ease-in-out infinite;
}
.float-card .fc-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; box-shadow: 0 0 12px currentColor; }
.float-card .fc-title { font-size: 13px; font-weight: 600; line-height: 1.25; }
.float-card .fc-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.dot-green { background: var(--green); color: var(--green); }
.dot-teal { background: var(--teal); color: var(--teal); }
.dot-cyan { background: var(--cyan); color: var(--cyan); }
.dot-amber { background: var(--amber); color: var(--amber); }
.stage.no-photo .float-card { display: flex; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.fc-1 { top: 13%; left: 3%; }                              /* Access Point — top-left */
.fc-4 { top: 9%; right: 3%; left: auto; animation-delay: -1s; }   /* HVAC — top-right */
.fc-3 { top: 45%; left: 1%; animation-delay: -3.5s; }      /* BLE Beacon — mid-left */
.fc-2 { top: 52%; right: 1%; left: auto; animation-delay: -2s; }  /* Network Switch — mid-right */
.fc-5 { bottom: 11%; left: 40%; animation-delay: -4.5s; }  /* NFC — lower-center */
@media (max-width: 520px) {
  .fc-2, .fc-4 { display: none; }
  .float-card { min-width: 0; padding: 9px 11px; }
  .fc-1 { left: 1%; } .fc-3 { top: 52%; } .fc-5 { bottom: 6%; }
}

/* sections */
section { padding: 92px 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4.6vw, 46px); margin: 14px 0 0; }
.section-head .lead { color: var(--muted); font-size: 17px; margin-top: 16px; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat { text-align: center; padding: 24px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.cat:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cat .ic { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--teal); }
.cat .name { font-size: 13.5px; font-weight: 600; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: repeat(2, 1fr); } }

/* platform cards */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { padding: 16px 16px 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--border); position: relative; overflow: hidden; transition: border-color .25s, transform .25s; }
.pcard:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.pcard .pshot { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; background: linear-gradient(160deg, #0a1019, #0c151f); margin-bottom: 18px; }
.pcard .pshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard h3 { font-size: 19px; margin: 0 6px 7px; }
.pcard p { color: var(--muted); font-size: 14px; margin: 0 6px; }
@media (max-width: 900px) { .grid-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-6 { grid-template-columns: 1fr; } }

/* value bar — bordered panel row (icon + bold term + sublabel) */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.pillar { display: flex; align-items: center; gap: 13px; padding: 18px 16px; border-radius: 14px; transition: background .2s; }
.pillar:hover { background: rgba(45,212,191,0.05); }
.pillar .glow-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, rgba(45,212,191,0.2), rgba(45,212,191,0.04)); border: 1px solid rgba(45,212,191,0.22); box-shadow: 0 0 30px -10px var(--glow); }
.pillar .glow-ic svg { width: 22px; height: 22px; color: var(--teal); }
.pillar .ptext { display: flex; flex-direction: column; min-width: 0; }
.pillar .pv { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.15; }
.pillar .pt { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pillars { grid-template-columns: 1fr; } }

/* narrative flow */
.narrative { background: linear-gradient(180deg, transparent, rgba(34,211,238,0.04), transparent); }
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.flow-node { flex: 1 1 150px; max-width: 200px; text-align: center; padding: 26px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); position: relative; }
.flow-node .fic { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--teal); }
.flow-node .ft { font-size: 14px; font-weight: 600; }
.flow-node .fs { font-size: 12px; color: var(--muted); margin-top: 4px; }
.flow-arrow { display: flex; align-items: center; color: var(--teal); padding: 0 4px; opacity: 0.7; }
.flow-arrow svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .flow-arrow { transform: rotate(90deg); width: 100%; justify-content: center; padding: 8px 0; } .flow-node { flex-basis: 100%; max-width: 320px; } }

/* footer CTA */
.cta-final { text-align: center; }
.cta-panel { max-width: 880px; margin: 0 auto; padding: 64px 32px; border-radius: 26px; background: radial-gradient(ellipse at 50% 0%, rgba(45,212,191,0.16), rgba(255,255,255,0.03)); border: 1px solid var(--border-strong); box-shadow: 0 40px 120px -50px var(--glow); }
.cta-panel h2 { font-size: clamp(28px, 5vw, 48px); }
.cta-panel p { color: var(--muted); font-size: 18px; margin: 18px auto 30px; max-width: 560px; }
.cta-panel .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--faint); font-size: 13px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.foot .brand { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }
