/* ==========================================================================
   NIC Dezignerz Inc — Portal (Light Edition)
   White / off-white + silver, with subtle sky-blue & lime-green logo accents.
   Type: Fraunces (serif headings) + Inter (UI/body). Edit :root to rebrand.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #f4f6f8;
  --bg-soft:   #ffffff;
  --panel:     #ffffff;
  --border:    #e4e8ee;
  --border-2:  #d6dce3;

  /* Text (logo charcoal) */
  --heading:   #2f3337;
  --text:      #545a61;
  --muted:     #98a1ac;

  /* Logo accents */
  --blue: #29abe2;
  --green:#8cc63f;
  --grad: linear-gradient(120deg, var(--blue), var(--green));
  --glow-c: rgba(41, 171, 226, 0.20);

  /* Type */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --mx: 50%; --my: 0%;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--font-serif); color: var(--heading); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- animated background ---------- */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); animation: float 24s ease-in-out infinite; }
.orb.a { width: 540px; height: 540px; background: var(--blue);  opacity: .15; top: -160px; left: -120px; }
.orb.b { width: 480px; height: 480px; background: var(--green); opacity: .15; bottom: -180px; right: -110px; animation-delay: -8s; }
.orb.c { width: 380px; height: 380px; background: #8fd6f2; opacity: .11; top: 42%; left: 55%; animation-delay: -15s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(44px, -46px) scale(1.07); }
  66% { transform: translate(-28px, 40px) scale(.96); }
}
.overlay-fx {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(41,171,226,.09), transparent 46%),
    linear-gradient(rgba(30,45,60,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,45,60,.032) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  mask-image: radial-gradient(circle at 50% 28%, #000 55%, transparent 100%);
}
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---------- header (centered logo) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: center; height: 82px; }
.brandmark { display: inline-flex; align-items: center; }
.brandmark .mark { height: 63px; width: auto; }

/* buttons */
.btn {
  --b: 1px;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  padding: 14px 28px; border-radius: 999px; border: 0; color: var(--heading);
  position: relative; background: var(--bg-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: var(--b);
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow-c); }
.btn--solid { background: var(--grad); color: #fff; }
.btn--solid::before { display: none; }

/* ---------- hero (centered) ---------- */
.hero { min-height: 96vh; display: flex; align-items: center; padding: 130px 0 80px; position: relative; }
.hero .container { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  font-family: var(--font-sans);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text);
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft);
}
.eyebrow b { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; font-weight: 700; }
.hero h1 { font-size: clamp(2.9rem, 7.5vw, 5.8rem); letter-spacing: -0.025em; margin: 0 auto .32em; max-width: 16ch; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--text); max-width: 54ch; margin: 0 auto; }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--blue), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--green); animation: drop 1.9s ease-in-out infinite; }
@keyframes drop { 0%{top:-50%;} 100%{top:100%;} }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 58px; }
.section-head .tag { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-top: 14px; }
.section-head p { color: var(--muted); }

/* ---------- venture cards ---------- */
.ventures { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.venture-card {
  position: relative; display: flex; flex-direction: column; min-height: 330px;
  padding: 28px 30px 30px; border-radius: 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(40, 60, 90, .05);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.venture-card .halo {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), rgba(41,171,226,.12), transparent 62%);
}
.venture-card .frame {
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.venture-card.is-live:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(41,171,226,.16); }
.venture-card.is-live:hover .halo, .venture-card.is-live:hover .frame { opacity: 1; }

.v-head { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.pill { font-family: var(--font-sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.pill.live { color: #5f9016; background: rgba(140,198,63,.14); border: 1px solid rgba(140,198,63,.4); }
.pill.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(140,198,63,.8); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.4;transform:scale(.7);} }
.pill.hold { color: #8a929c; background: #f1f3f6; border: 1px solid var(--border-2); }
.pill.hold .bar { width: 3px; height: 8px; background: #b6bdc7; border-radius: 1px; box-shadow: 5px 0 0 #b6bdc7; margin-right: 5px; }

/* brand logo / mark — normalized to one height */
.v-logo { height: 50px; display: flex; align-items: center; margin-bottom: 22px; }
.v-logo img { height: 100%; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.venture-card.is-hold .v-logo img { filter: grayscale(.35) opacity(.85); }
.text-mark { font-family: var(--font-sans); font-size: 1.55rem; font-weight: 800; font-style: normal; letter-spacing: -0.01em; color: var(--heading); }
.text-mark.muted { color: var(--muted); }

.v-desc { color: var(--text); font-size: .97rem; flex: 1; margin: 0; }
.venture-card.is-hold .v-desc { color: var(--muted); }
.v-fill { flex: 1; }
.v-foot { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: .93rem; color: var(--heading); }
.v-foot .url { color: var(--muted); font-weight: 400; font-size: .84rem; }
.venture-card.is-live .arrow { margin-left: auto; transition: transform .3s var(--ease); color: var(--blue); }
.venture-card.is-live:hover .arrow { transform: translateX(6px); }
.venture-card.is-hold .v-foot { color: var(--muted); font-weight: 500; }
.venture-card.is-future { border-style: dashed; background: transparent; box-shadow: none; }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; padding: 80px 0 30px; }
.manifesto p { font-family: var(--font-serif); font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 500; line-height: 1.3; max-width: 20ch; margin: 0 auto; color: var(--heading); }
.manifesto .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- contact band ---------- */
.contact { padding: 40px 0 90px; }
.contact-band {
  text-align: center; max-width: 740px; margin: 0 auto; padding: 54px 44px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 26px;
  box-shadow: 0 12px 44px rgba(40, 60, 90, .07); position: relative; overflow: hidden;
}
.contact-band::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--grad); }
.contact-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 12px; }
.contact-band p { color: var(--text); max-width: 50ch; margin: 0 auto 28px; }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-copy { color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- utility ---------- */
.mt-lg { margin-top: 30px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .hero { padding: 116px 0 60px; min-height: 88vh; }
  .brandmark .mark { height: 34px; }
  .overlay-fx { background-size: 100% 100%, 36px 36px, 36px 36px; }
  .scroll-cue { display: none; }
  .contact-band { padding: 40px 24px; }
  .footer-copy { justify-content: center; text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
