/* ═══════════════════════════════════════════════════════════
   MASON ARK HOLDINGS — v1.3.0
   Clean rewrite — premium glassmorphism design
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy:        #06111f;
  --navy-mid:    #0c1e35;
  --navy-card:   rgba(12, 30, 53, 0.7);
  --cyan:        #00d2ff;
  --cyan-dim:    rgba(0, 210, 255, 0.12);
  --cyan-glow:   rgba(0, 210, 255, 0.25);
  --gold:        #d4af37;
  --gold-dim:    rgba(212, 175, 55, 0.15);
  --purple:      #8e2de2;
  --purple-dim:  rgba(142, 45, 226, 0.15);
  --purple-soft: #b794f6;
  --white:       #ffffff;
  --white-muted: rgba(255,255,255,0.75);
  --grey:        #8892a4;
  --border:      rgba(0, 210, 255, 0.1);
  --border-hover:rgba(0, 210, 255, 0.28);
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      16px;
  --radius-sm:   10px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white-muted);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }

/* ── Utility ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.glass {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,210,255,.1);
  border-color: var(--border-hover);
}

/* ── NAVIGATION ── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 0;
  background: rgba(6,17,31,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-img { height: 38px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--grey); transition: color .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 80px 24px 60px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0,210,255,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(142,45,226,.06) 0%, transparent 55%),
    var(--navy);
}

/* animated particle dots */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,210,255,.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(212,175,55,.08) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px;
  background-position: 0 0, 30px 30px;
  animation: driftDots 20s linear infinite;
  pointer-events: none;
}
@keyframes driftDots {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-60px); }
}

/* horizontal glow line */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .4;
}

.hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }

.hero-logo {
  width: clamp(160px, 22vw, 260px);
  height: clamp(160px, 22vw, 260px);
  margin: 0 auto 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 48px rgba(0,210,255,.35));
  animation: floatLogo 7s ease-in-out infinite;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(.5deg); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .68rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); padding: 6px 18px;
  border: 1px solid var(--cyan-dim); border-radius: 50px;
  background: var(--cyan-dim); margin-bottom: 20px;
}
.hero-badge::before { content: '◆'; font-size: .5rem; }

.hero-name {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  color: var(--white); letter-spacing: 8px; line-height: 1.0;
  text-shadow: 0 0 60px rgba(0,210,255,.2);
}
.hero-sub {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(.9rem, 2.5vw, 1.6rem);
  color: var(--gold); letter-spacing: 14px; line-height: 1.8;
}
.hero-tagline {
  margin-top: 12px; margin-bottom: 36px;
  font-size: .95rem; color: var(--grey); letter-spacing: 2px;
}
.hero-cta {
  display: inline-block; padding: 13px 38px;
  border: 1px solid var(--cyan); border-radius: 50px;
  font-family: var(--font-head); font-weight: 600;
  font-size: .76rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cyan); transition: all .4s;
  position: relative; overflow: hidden;
}
.hero-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--cyan); transform: translateX(-101%);
  transition: transform .4s ease; z-index: -1;
}
.hero-cta:hover { color: var(--navy); }
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta:hover { box-shadow: 0 0 32px rgba(0,210,255,.5); }

/* scroll indicator */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--grey); opacity: .6;
}
.scroll-hint span { display: block; width: 1px; height: 36px; background: linear-gradient(to bottom, var(--cyan), transparent); margin: 0 auto; }

/* ── SECTION DEFAULTS ── */
section { padding: 96px 0; position: relative; }

.section-label {
  display: inline-block; font-family: var(--font-head); font-size: .68rem;
  font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cyan); padding: 5px 16px;
  border: 1px solid var(--cyan-dim); border-radius: 50px;
  background: var(--cyan-dim); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--white); line-height: 1.15; letter-spacing: .5px;
}
.section-head { text-align: center; margin-bottom: 56px; }

/* ── ABOUT ── */
#about {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
}
.about-wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.about-lead {
  font-size: 1.12rem; color: var(--white); font-weight: 500; margin-bottom: 16px; line-height: 1.65;
}
.about-body p { color: var(--white-muted); margin-bottom: 14px; }
.about-stats {
  display: flex; gap: 36px; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 2rem; color: var(--cyan);
}
.stat-lbl {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--grey); margin-top: 3px; display: block;
}
.about-visual .glass { padding: 40px; display: flex; align-items: center; justify-content: center; }
.about-logo { width: 70%; filter: drop-shadow(0 0 28px rgba(0,210,255,.2)); }

/* ── FOUNDER ── */
#founder { background: var(--navy); }
.founder-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.founder-card { padding: 32px; }
.f-icon { font-size: 2rem; margin-bottom: 14px; }
.founder-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
  color: var(--white); margin-bottom: 10px;
}
.founder-card p { color: var(--grey); font-size: .9rem; line-height: 1.65; }

/* ── PORTFOLIO ── */
#portfolio { background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%); }

.port-category {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--gold); text-transform: uppercase; letter-spacing: 3px;
  margin: 0 0 18px;
}

/* venture cards (CK / Spaza) */
.venture-card {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 24px;
  padding: 24px 28px; margin-bottom: 40px;
  text-decoration: none; color: inherit;
}
.venture-card:hover { color: inherit; }

.v-logo {
  width: 72px; height: 72px;
  min-width: 72px; max-width: 72px;
  min-height: 72px; max-height: 72px;
  flex: 0 0 72px !important;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); overflow: hidden; padding: 8px;
}
.v-logo.light { background: rgba(255,255,255,.92); }
.v-logo.dark  { background: rgba(6,17,31,.85); border: 1px solid var(--border); }
/* Wide variant for landscape lockups (SpazaBoost is ~5:1) — the square box
   squeezed them until the wordmark was unreadable. The tile stretches; the
   logo is never redrawn. */
.v-logo.wide {
  width: 168px; min-width: 168px; max-width: 168px;
  flex: 0 0 168px !important;
}
.v-logo.wide img { max-width: 148px; max-height: 56px; }
.v-logo img   {
  display: block;
  max-width: 56px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.v-info { flex: 1; min-width: 0; }
.v-info h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--white); margin-bottom: 6px;
}
.v-info p { color: var(--grey); font-size: .88rem; line-height: 1.55; margin-bottom: 10px; }
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: .65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.badge-live       { background: rgba(0,210,255,.12); color: var(--cyan); }
.badge-deploy     { background: var(--purple-dim); color: var(--purple-soft); }
.badge-dev        { background: var(--gold-dim); color: var(--gold); }

/* dev tech cards */
.dev-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 0; }
.dev-grid-2 { grid-template-columns: repeat(2,1fr); }
.dev-card { padding: 28px 24px; text-align: center; }
.dev-icon { font-size: 1.8rem; margin-bottom: 12px; }
/* A dev card that is a link (PaqLink) — reads like the emoji cards, not like a
   cyan hyperlink; the hover lift comes from .glass. */
a.dev-card { display: block; color: inherit; }
a.dev-card:hover { color: inherit; }
/* Real brand mark in a dev card: the same light tile as .v-logo.light, centred
   where the emoji icon would sit. */
.dev-logo {
  width: 72px; height: 72px; margin: 0 auto 14px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.92);
}
.dev-logo img { max-width: 56px; max-height: 56px; object-fit: contain; }
.dev-card h4 {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--white); margin-bottom: 8px;
}
.dev-card p { color: var(--grey); font-size: .82rem; line-height: 1.55; margin-bottom: 10px; }

/* ── VISION / STATS COUNTER ── */
#vision {
  background: var(--navy);
  text-align: center;
}
.vision-quote {
  max-width: 820px; margin: 0 auto 56px;
  padding: 32px 36px;
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--white-muted); font-style: italic; line-height: 1.8;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--navy-card);
  text-align: left;
}
.vision-quote cite {
  display: block; margin-top: 16px; font-style: normal;
  font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: 1px;
}
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.pillar { padding: 32px 24px; }
.pillar-dot { font-size: 1.2rem; color: var(--cyan); margin-bottom: 12px; }
.pillar h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--white); margin-bottom: 8px;
}
.pillar p { color: var(--grey); font-size: .88rem; }

/* ── CONTACT ── */
#contact { background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%); }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.contact-card { padding: 36px 28px; text-align: center; }
.c-icon { font-size: 1.8rem; margin-bottom: 14px; color: var(--cyan); }
.contact-card h4 {
  font-family: var(--font-head); font-weight: 700; color: var(--white);
  font-size: 1rem; margin-bottom: 12px;
}
.contact-card a, .contact-card p {
  display: block; color: var(--grey); font-size: .85rem;
  margin-bottom: 4px; word-break: break-word;
  transition: color .3s;
}
.contact-card a:hover { color: var(--cyan); }

/* ── FOOTER ── */
#footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 44px 0 20px;
}
.footer-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 32px;
  margin-bottom: 32px;
}
.footer-brand img { height: 44px; margin-bottom: 10px; }
.footer-brand p { color: var(--grey); font-size: .82rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--grey); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px; transition: color .3s;
}
.footer-nav a:hover { color: var(--cyan); }
.footer-copy {
  border-top: 1px solid var(--border); padding-top: 20px;
  text-align: center; font-size: .7rem; color: var(--grey); letter-spacing: 1px;
}

/* ── FADE IN ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
  .about-wrap { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { display: none; }
  .dev-grid { grid-template-columns: repeat(2,1fr); }
  .pillars { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pillars .pillar:last-child { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .section-head { margin-bottom: 36px; }

  /* nav */
  .nav-inner { padding: 0 16px; height: 56px; }
  .nav-links  { display: none; position: absolute; top: 56px; left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0;
    background: rgba(6,17,31,.97); border-bottom: 1px solid var(--border); padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 20px; font-size: .8rem; }
  .nav-toggle { display: flex; }

  /* hero */
  #hero { padding: 88px 16px 56px; }
  .hero-logo { width: 160px; height: 160px; }
  .hero-name  { letter-spacing: 4px; }
  .hero-sub   { letter-spacing: 8px; }
  .hero-tagline { margin-bottom: 28px; }

  /* about */
  .about-stats { flex-wrap: wrap; gap: 20px; }

  /* founder */
  .founder-grid { grid-template-columns: 1fr; gap: 16px; }

  /* portfolio */
  .venture-card { padding: 20px; gap: 16px; }
  .v-logo.wide {
    width: 120px; min-width: 120px; max-width: 120px;
    flex: 0 0 120px !important;
  }
  .v-logo.wide img { max-width: 104px; }
  .dev-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  /* two real cards side by side on a phone is too narrow to read */
  .dev-grid-2 { grid-template-columns: 1fr; }
  .dev-card { padding: 22px 18px; }

  /* vision */
  .pillars { grid-template-columns: 1fr; }
  .pillars .pillar:last-child { grid-column: auto; }
  .vision-quote { padding: 24px 22px; margin-bottom: 36px; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 28px 24px; }

  /* footer */
  .footer-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav  { gap: 16px; }
}

@media (max-width: 380px) {
  .dev-grid { grid-template-columns: 1fr; }
  .dev-grid-2 { grid-template-columns: 1fr; }
  .hero-sub { letter-spacing: 4px; }
}
