/* ==========================================================
   PkOUG Homepage Redesign (home.css)
   - Light/Dark theme (WCAG AA contrast targeted)
   - Tech-forward aesthetic with restrained motion
   - Responsive grid layouts
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* WebGL fluid background palette */
  --royal-blue: #4169E1;
  --cyan: #00FFFF;

  /* Fluid background controls (light defaults) */
  --fluid-opacity: 0.78;
  --fluid-contrast: 1.02;
  --fluid-brightness: 1.02;

  /* Backing gradient for fallback */
  --fluid-bg0: #EEF3FF;
  --fluid-bg1: #DDE8FF;

  --accent: #C74634;         /* Oracle red-ish */
  --accent-2: #0f4d21;       /* Pakistan green */
  --bg: #fbfbfc;
  --bg2: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --text: #14161a;
  --muted: #5a6472;
  --border: rgba(18, 22, 28, 0.12);
  --shadow: 0 10px 30px rgba(18, 22, 28, 0.08);
  --shadow2: 0 16px 40px rgba(18, 22, 28, 0.12);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --ring: 0 0 0 3px rgba(199,70,52,0.25);

  --ease: cubic-bezier(.2,.8,.2,1);
  --glass: rgba(255,255,255,0.72);
}


/* --- Readability / crisp text over animated background --- */
html, body{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Create a subtle contrast veil between the WebGL canvas and UI content.
   This avoids "washed" text without blurring the UI. */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1; /* above canvas (-2), below page content (0+) */
  pointer-events: none;
  background: radial-gradient(1200px 900px at 30% 20%, rgba(255,255,255,0.06), transparent 55%),
              radial-gradient(900px 700px at 70% 40%, rgba(0,0,0,0.18), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.18));
  opacity: 1;
}

html[data-theme="light"] body::before{
  background: radial-gradient(1200px 900px at 30% 20%, rgba(65,105,225,0.08), transparent 55%),
              radial-gradient(900px 700px at 70% 40%, rgba(0,255,255,0.06), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.62));
}


/* Slight text-shadow improves legibility without looking "glowy". */
h1, h2, h3, .section-title, .hero-title, .nav-link, .btn{
  text-shadow: 0 1px 0 rgba(0,0,0,0.22);
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .section-title,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .btn{
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}
body.theme-dark{
  --glass: rgba(14,20,29,0.70);
  --bg: #0b0f14;
  --bg2: #0f1520;
  --surface: #0e141d;
  --surface-2: #111a26;
  --text: #e8edf4;
  --muted: #a6b0c0;
  --border: rgba(232, 237, 244, 0.14);
  --shadow: 0 12px 34px rgba(0,0,0,0.35);
  --shadow2: 0 18px 44px rgba(0,0,0,0.45);
  --ring: 0 0 0 3px rgba(250,205,98,0.28);

  --fluid-opacity: 0.92;
  --fluid-contrast: 1.05;
  --fluid-brightness: 1.0;
  --fluid-bg0: #070A14;
  --fluid-bg1: #0A1633;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
  min-height: 100%;
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 14px; outline: none; box-shadow: var(--ring); }

/* Nav */
.site-header{
  position: relative;
}
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}
.brand img{
  width: 42px; height: 42px;
  object-fit: contain;
}
.brand-text{ display: grid; gap: 2px; }
.brand-title{ font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.brand-sub{ font-size: 12px; color: var(--muted); }

.nav-toggle{
  display: none;
  width: 44px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 5px;
}
.nav-menu{
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-links{
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link, .nav-drop{
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}
.nav-link:hover, .nav-drop:hover{
  background: color-mix(in oklab, var(--surface) 65%, transparent);
  border-color: var(--border);
}
.nav-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn{
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover{ box-shadow: var(--shadow); transform: translateY(-1px); transition: 180ms var(--ease); }

.dropdown{ position: relative; }
.dropdown-panel{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 8px;
  display: none;
}
.dropdown-panel a{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.dropdown-panel a:hover{
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}
.dropdown.open .dropdown-panel{ display: block; }

.muted{ color: var(--muted); font-weight: 500; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible{ outline: none; box-shadow: var(--ring); }
.btn-primary{
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 100%, white 0%), color-mix(in oklab, var(--accent) 88%, black 12%));
  border-color: color-mix(in oklab, var(--accent) 80%, black 20%);
  color: white;
}
.btn-secondary{
  background: color-mix(in oklab, var(--accent-2) 14%, var(--surface));
  border-color: color-mix(in oklab, var(--accent-2) 30%, var(--border));
}
.btn-ghost{
  background: transparent;
}
.btn-sm{ padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.btn-block{ width: 100%; }

.inline-link{ color: var(--accent); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-link:hover{ text-decoration: underline; }

/* Hero */
.hero{
  padding: 34px 0 30px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.hero-copy{
  padding: 18px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.eyebrow{
  margin: 0 0 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}
.pill-outline{
  background: transparent;
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
}
.hero-title{
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw + 14px, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.accent{ color: var(--accent); }

.hero-lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 64ch;
}
.hero-note{
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed color-mix(in oklab, var(--accent) 35%, var(--border));
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
  color: color-mix(in oklab, var(--text) 90%, var(--muted));
}
.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mini-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.mini-stat{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  padding: 12px 12px;
}
.mini-stat dt{ color: var(--muted); font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.mini-stat dd{ margin: 0; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; }

.hero-side{
  display: grid;
  gap: 14px;
}
.hero-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.hero-card-top{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chip{
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.chip-soft{
  background: color-mix(in oklab, var(--accent) 8%, var(--surface));
}
.mock{
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 260px at 30% 0%, rgba(199,70,52,0.12), transparent 60%),
    linear-gradient(180deg, var(--surface), color-mix(in oklab, var(--surface) 70%, var(--bg2)));
  padding: 14px;
}
.mock-row{ display: flex; gap: 6px; margin-bottom: 10px; }
.mock-dot{ width: 10px; height: 10px; border-radius: 99px; background: color-mix(in oklab, var(--muted) 30%, transparent); }
.mock-title{ font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.mock-lines{ display: grid; gap: 6px; margin-bottom: 12px; }
.mock-lines span{ height: 10px; border-radius: 10px; background: color-mix(in oklab, var(--muted) 18%, transparent); }
.mock-cards{ display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 10px; }
.mock-card{ height: 56px; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 85%, transparent); }
.mock-footer{ color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-card-bottom{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.link{
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
}
.link:hover{ text-decoration: underline; text-underline-offset: 4px; }

.sponsor-strip{
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  display: flex;
  gap: 12px;
  align-items: center;
}
.sponsor-strip-title{ font-weight: 900; color: var(--muted); white-space: nowrap; }
.sponsor-strip-logos{
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 4px;
}
.sponsor-strip-logos img{
  width: 74px; height: 38px; object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px;
}

/* Sections */
.section{
  padding: 64px 0;
}
.section-alt{
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--surface) 60%, transparent), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head{
  max-width: 78ch;
  margin-bottom: 22px;
}
.section-kicker{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
.section-title{
  margin: 0 0 10px;
  font-size: clamp(22px, 1.7vw + 12px, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-lead{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Cards */
.cards-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-title{ margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.card-text{ margin: 0 0 10px; color: var(--muted); line-height: 1.65; }
.card-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Steps */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.step{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}
.step-num{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--border));
}
.step h3{ margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.step p{ margin: 0; color: var(--muted); line-height: 1.6; }

/* Join */
.join-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: start;
}
.join-grid-sponsor{ grid-template-columns: 0.95fr 1.05fr; }

.tiers{ display: grid; gap: 10px; }
.tier{
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  padding: 14px 14px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.tier:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); transition: 160ms var(--ease); }
.tier:focus-visible{ outline: none; box-shadow: var(--ring); }
.tier.is-selected{
  border-color: color-mix(in oklab, var(--accent) 50%, var(--border));
  background: color-mix(in oklab, var(--accent) 7%, var(--surface));
}

.tier-dot{ width: 12px; height: 12px; border-radius: 99px; }
.tier-dot.free{ background: color-mix(in oklab, var(--muted) 35%, transparent); }
.tier-dot.pro{ background: color-mix(in oklab, var(--accent) 70%, transparent); }
.tier-dot.corp{ background: color-mix(in oklab, var(--accent-2) 65%, transparent); }

.tier-main{ display: grid; gap: 4px; }
.tier-name{ font-weight: 900; letter-spacing: 0.06em; font-size: 13px; }
.tier-desc{ color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.35; }
.tier-price{ font-weight: 900; white-space: nowrap; }

.note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.plans-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.plan-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
}
.plan-card:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); transition: 160ms var(--ease); }
.plan-card:focus-visible{ outline: none; box-shadow: var(--ring); }
.plan-card.is-selected{
  border-color: color-mix(in oklab, var(--accent) 50%, var(--border));
  background: color-mix(in oklab, var(--accent) 7%, var(--surface));
}
.plan-card h3{ margin: 0 0 8px; letter-spacing: 0.02em; }
.plan-card p{ margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 900;
  font-size: 12px;
}

.form-shell{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.form-shell-head{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.form-title{ margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.form-sub{ margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

.form{ display: grid; gap: 12px; }
.row{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.field{ display: grid; gap: 6px; }
label, legend{
  font-weight: 800;
  font-size: 13px;
}
input, select, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 12px 12px;
  font: inherit;
}
textarea{ min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  outline: none;
  box-shadow: var(--ring);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}
.help{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.skills{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.skills label{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.skills input{ width: 18px; height: 18px; padding: 0; }

/* Directory */
.dir-tools{
  display: grid;
  grid-template-columns: 1.3fr 0.9fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.dir-count{
  justify-self: end;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  font-weight: 900;
}
.directory{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.profile-card{
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.profile-card:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); transition: 160ms var(--ease); }
.profile-top{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}
.avatar{
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 2px solid color-mix(in oklab, var(--accent) 70%, transparent);
  background: color-mix(in oklab, var(--muted) 12%, transparent);
  overflow: hidden;
}
.avatar img{ width: 100%; height: 100%; object-fit: cover; }
.profile-name{ font-weight: 900; letter-spacing: -0.01em; }
.profile-sub{ color: var(--muted); font-weight: 700; font-size: 13px; margin-top: 2px; }
.badges{ display: flex; gap: 8px; flex-wrap: wrap; }
.small-badge{
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
}
.small-badge.accent{ background: color-mix(in oklab, var(--accent) 10%, var(--surface)); color: var(--text); }
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  border-radius: 999px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  font-weight: 800;
  font-size: 11px;
  color: var(--muted);
}

/* Sponsors grid */
.chips{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-btn{
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 900;
  cursor: pointer;
}
.chip-btn.is-active{
  background: color-mix(in oklab, var(--accent) 10%, var(--surface));
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
}
.sponsor-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.sponsor-tile{
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.sponsor-tile:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); transition: 160ms var(--ease); }
.sponsor-logo{
  width: 100%;
  height: 66px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sponsor-logo img{ width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.sponsor-name{ font-weight: 900; }
.sponsor-tier{ color: var(--muted); font-weight: 700; font-size: 12px; }

/* FAQ */
.faq{ display: grid; gap: 10px; max-width: 86ch; }
.faq-item{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  padding: 14px 14px;
}
.faq-item summary{
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-body{ margin-top: 10px; color: var(--muted); line-height: 1.7; }

/* Contact */
.contact-card{
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(199,70,52,0.14), transparent 60%),
    radial-gradient(900px 300px at 90% 10%, rgba(15,77,33,0.14), transparent 60%),
    color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: var(--shadow2);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.contact-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  padding: 22px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-left{ display:flex; align-items:center; gap:12px; }
.footer-title{ font-weight: 900; letter-spacing: -0.01em; }
.footer-sub{ color: var(--muted); font-weight: 600; font-size: 13px; }
.footer-links{ display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a{ color: var(--muted); font-weight: 800; text-decoration: none; }
.footer-links a:hover{ color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.to-top{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 900;
  cursor: pointer;
}

/* Toast */
.toast-wrap{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 10px;
  z-index: 9999;
}
.toast{
  width: min(380px, calc(100vw - 28px));
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  box-shadow: var(--shadow2);
  padding: 12px 12px;
  display: grid;
  gap: 6px;
  animation: toastIn 240ms var(--ease) both;
}
.toast strong{ font-weight: 900; }
.toast p{ margin: 0; color: var(--muted); line-height: 1.45; }
@keyframes toastIn{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards-3{ grid-template-columns: 1fr; }
  .plans-grid{ grid-template-columns: 1fr; }
  .join-grid{ grid-template-columns: 1fr; }
  .directory{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sponsor-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-card{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .nav-toggle{ display: inline-grid; place-items: center; }
  .nav-menu{
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px 16px 14px;
    box-shadow: var(--shadow2);
  }
  body.nav-open .nav-menu{ display: grid; gap: 12px; }
  .nav-links{ flex-direction: column; align-items: stretch; }
  .nav-link, .nav-drop{ width: 100%; justify-content: space-between; }
  .nav-actions{ justify-content: space-between; }
  .row{ grid-template-columns: 1fr; }
  .skills{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dir-tools{ grid-template-columns: 1fr; }
  .dir-count{ justify-self: start; }
  .directory{ grid-template-columns: 1fr; }
  .sponsor-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .btn, .tier, .plan-card, .profile-card, .sponsor-tile, .icon-btn{ transition: none; transform: none; }
}


/* ==========================================================
   WebGL Fluid Background Layer (PkOUG)
   - Fixed behind all content
   - Uses WebGL when available, CSS gradient fallback otherwise
   - Theme-aware via body.theme-dark
   ========================================================== */

#pkoug-fluid-bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
  opacity: var(--fluid-opacity);
  image-rendering: auto;
}

#pkoug-fluid-fallback{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 30% 20%, rgba(65,105,225,0.30), transparent 60%),
    radial-gradient(900px 700px at 70% 40%, rgba(0,255,255,0.14), transparent 55%),
    linear-gradient(135deg, var(--fluid-bg0), var(--fluid-bg1));
  filter: contrast(var(--fluid-contrast)) brightness(var(--fluid-brightness));
  animation: pkougGradient 16s ease-in-out infinite;
}

@keyframes pkougGradient{
  0%,100% { transform: scale(1.02) translate3d(0,0,0); filter: hue-rotate(0deg) contrast(var(--fluid-contrast)) brightness(var(--fluid-brightness)); }
  50%     { transform: scale(1.06) translate3d(0,-1.5%,0); filter: hue-rotate(6deg) contrast(var(--fluid-contrast)) brightness(var(--fluid-brightness)); }
}

@media (prefers-reduced-motion: reduce){
  #pkoug-fluid-fallback{ animation: none; }
}


.hero-copy{

  position: relative;

}


.hero-copy::before{

  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background: rgba(10, 14, 26, 0.62);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;

}


html[data-theme="light"] .hero-copy::before{

  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(65,105,225,0.16);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);

}


.card, .form-shell, .contact-card, .dir-tools{

  background: rgba(10, 14, 26, 0.58);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

}


html[data-theme="light"] .card, html[data-theme="light"] .form-shell, html[data-theme="light"] .contact-card, html[data-theme="light"] .dir-tools{

  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(65,105,225,0.14);

}


#pkoug-fluid-bg{

  opacity: var(--fluid-opacity);
  will-change: transform;

}


:root{

  --fluid-opacity: 0.82;

}


html[data-theme="light"]{

  --fluid-opacity: 0.60;

}



/* --- Fluid background visibility control ---
   JS toggles <html class="fluid-enabled"> when WebGL fluid should run (default: dark mode only).
   In light mode we intentionally prefer a subtle gradient animation for readability. */
#pkoug-fluid-bg{ display: none; }
#pkoug-fluid-fallback{ display: block; }

html.fluid-enabled #pkoug-fluid-bg{ display: block; }
html.fluid-enabled #pkoug-fluid-fallback{ display: none; }

/* Light mode: keep background calmer to maximize readability */
html[data-theme="light"] #pkoug-fluid-fallback{
  animation-duration: 28s;
}
@media (prefers-reduced-motion: reduce){
  html[data-theme="light"] #pkoug-fluid-fallback{ animation: none; }
}

/* Light mode surfaces slightly stronger */
html[data-theme="light"] .hero-copy::before{
  background: rgba(255,255,255,0.90);
}
html[data-theme="light"] .card,
html[data-theme="light"] .form-shell,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .dir-tools{
  background: rgba(255,255,255,0.92);
}



/* ==========================================================
   Prominence + Readability Patch (v2)
   - Fix theme mismatch by relying on html[data-theme]
   - Improve prominence in both themes
   - Make light mode crystal-clear (no text haze)
   ========================================================== */

/* Background layers: ensure consistent stacking order */
#pkoug-fluid-bg{
  z-index: -3 !important;
  pointer-events: none !important;
  opacity: var(--fluid-opacity) !important;
}
#pkoug-fluid-fallback{
  z-index: -3 !important;
  pointer-events: none !important;
}

/* Veil above background (improves contrast), below content */
body::before{
  z-index: -2 !important;
  background:
    radial-gradient(1200px 900px at 30% 18%, rgba(65,105,225,0.10), transparent 58%),
    radial-gradient(900px 700px at 70% 40%, rgba(0,255,255,0.06), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.16)) !important;
}

/* Subtle "tech grid" texture (very low opacity) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}

html[data-theme="light"] body::before{
  background:
    radial-gradient(1200px 900px at 30% 18%, rgba(65,105,225,0.14), transparent 60%),
    radial-gradient(900px 700px at 70% 40%, rgba(0,255,255,0.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.70)) !important;
}
html[data-theme="light"] body::after{
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(to right, rgba(65,105,225,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(65,105,225,0.10) 1px, transparent 1px);
}

/* More prominent hero */
.hero-grid{ gap: 32px !important; }
.hero-copy{
  padding: 26px 26px !important;
}
.hero-title{
  font-size: clamp(34px, 3.6vw + 14px, 66px) !important;
  line-height: 1.04 !important;
  font-weight: 800 !important;
}
.hero-lead{
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: color-mix(in oklab, var(--text) 78%, var(--muted)) !important;
}
.hero-cta .btn{
  padding: 12px 16px !important;
  font-weight: 700 !important;
}

/* Stronger section headings */
.section-title{
  font-size: clamp(24px, 1.8vw + 14px, 40px) !important;
  letter-spacing: -0.02em !important;
}
.section-kicker{
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}

/* Light mode: remove backdrop blur haze; use solid, crisp surfaces */
html[data-theme="light"] .hero-copy,
html[data-theme="light"] .card,
html[data-theme="light"] .form-shell,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .dir-tools{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255,255,255,0.94) !important;
  border-color: rgba(18,22,28,0.14) !important;
  box-shadow: 0 12px 30px rgba(18,22,28,0.10) !important;
}

/* In dark mode keep glass but increase contrast slightly */
html[data-theme="dark"] .hero-copy,
body.theme-dark .hero-copy{
  background: rgba(14,20,29,0.78) !important;
  border-color: rgba(232,237,244,0.16) !important;
}

/* Button prominence */
.btn-primary{
  box-shadow: 0 10px 24px rgba(199,70,52,0.22);
}
.btn-primary:hover{
  box-shadow: 0 14px 30px rgba(199,70,52,0.28);
}

/* Fluid opacity tuned per theme */
:root{ --fluid-opacity: 0.86; }
html[data-theme="light"]{ --fluid-opacity: 0.0; } /* light mode uses fallback gradient (no canvas) */

/* Ensure the fluid-enabled class controls visibility (dark mode) */
html.fluid-enabled #pkoug-fluid-bg{ display:block !important; }
html.fluid-enabled #pkoug-fluid-fallback{ display:none !important; }
html:not(.fluid-enabled) #pkoug-fluid-bg{ display:none !important; }
html:not(.fluid-enabled) #pkoug-fluid-fallback{ display:block !important; }



/* ===== Premium Tech Enhancements (Dark Mode) ===== */
html[data-theme="dark"]{
  --glow-blue: rgba(65,105,225,0.28);
  --glow-cyan: rgba(0,255,255,0.14);
  --edge: rgba(255,255,255,0.10);
  --edge-strong: rgba(255,255,255,0.14);
  --text-strong: rgba(255,255,255,0.92);
  --text-soft: rgba(255,255,255,0.72);
}

/* Subtle tech glow behind hero area */
html[data-theme="dark"] .hero{
  position: relative;
}
html[data-theme="dark"] .hero::before{
  content:"";
  position:absolute;
  inset:-120px -80px -140px -80px;
  pointer-events:none;
  z-index:-2;
  background:
    radial-gradient(900px 600px at 25% 20%, var(--glow-blue), transparent 60%),
    radial-gradient(700px 520px at 78% 35%, var(--glow-cyan), transparent 60%),
    radial-gradient(900px 700px at 55% 110%, rgba(65,105,225,0.12), transparent 55%);
  filter: saturate(1.10);
}

/* Sharper UI edges: cards/buttons with crisper borders and controlled glow */
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-shell,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .dir-tools,
html[data-theme="dark"] .tier,
html[data-theme="dark"] .plan-card{
  border-color: var(--edge-strong) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.38),
    0 0 0 1px rgba(0,0,0,0.10),
    0 0 0 0 rgba(0,0,0,0);
}

/* Micro-glow on hover (premium, not neon) */
@media (hover:hover){
  html[data-theme="dark"] .card:hover,
  html[data-theme="dark"] .tier:hover,
  html[data-theme="dark"] .plan-card:hover,
  html[data-theme="dark"] .form-shell:hover{
    box-shadow:
      0 14px 34px rgba(0,0,0,0.42),
      0 0 0 1px rgba(65,105,225,0.20),
      0 0 22px rgba(65,105,225,0.14);
    transform: translateY(-2px);
  }
}

/* Sharper buttons */
html[data-theme="dark"] .btn{
  border-color: rgba(255,255,255,0.14);
}
html[data-theme="dark"] .btn-primary{
  box-shadow:
    0 10px 22px rgba(65,105,225,0.18),
    0 0 24px rgba(0,255,255,0.10);
}

/* Improve readability: stronger text tokens */
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .section-title{
  color: var(--text-strong);
}
html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .section-lead,
html[data-theme="dark"] .card-text{
  color: var(--text-soft);
}

/* Accessible focus rings */
:where(a, button, input, select, textarea):focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,255,255,0.22), 0 0 0 6px rgba(65,105,225,0.18);
  border-radius: 12px;
}



/* ===== Light mode sponsor section color fix ===== */
html[data-theme="light"] #join-sponsors,
html[data-theme="light"] #join-sponsors *{
  color: #0B1220;
}
html[data-theme="light"] #join-sponsors .section-kicker{ color: rgba(11,18,32,0.70); }
html[data-theme="light"] #join-sponsors .section-lead,
html[data-theme="light"] #join-sponsors .card-text{ color: rgba(11,18,32,0.78); }
html[data-theme="light"] #join-sponsors .note{ color: rgba(11,18,32,0.62); }
html[data-theme="light"] #join-sponsors .badge{ color: #0B1220; border-color: rgba(65,105,225,0.24); }
html[data-theme="light"] #join-sponsors .plan-card{
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(65,105,225,0.18);
}
html[data-theme="light"] #join-sponsors .plan-card h3{ color: #0B1220; }
html[data-theme="light"] #join-sponsors .plan-card p{ color: rgba(11,18,32,0.78); }



/* Slightly sharper edges + consistent radii */
:root{
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}
.card, .form-shell, .contact-card, .dir-tools, .tier, .plan-card{
  border-radius: var(--radius-lg);
}
.btn{ border-radius: var(--radius-md); }



/* ===== Premium Tech Texture (Dark Mode) =====
   Subtle grid + noise-like gradient layering to add depth without hurting readability.
   Kept extremely low opacity for enterprise polish. */
html[data-theme="dark"] body::after,
body.theme-dark::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* above WebGL canvas (-2), below content */
  background:
    /* fine grid */
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px),
    /* soft noise-ish speckle */
    radial-gradient(1000px 700px at 20% 30%, rgba(65,105,225,0.10), transparent 60%),
    radial-gradient(900px 650px at 80% 35%, rgba(0,255,255,0.06), transparent 62%);
  background-size:
    56px 56px,
    56px 56px,
    auto,
    auto;
  opacity: 0.55;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce){
  html[data-theme="dark"] body::after,
  body.theme-dark::after{ opacity: 0.40; }
}



/* ===== Refined Buttons (WCAG-friendly) ===== */
.btn-primary{
  color: #fff;
  background: linear-gradient(135deg, #4169E1 0%, #2C4FBF 55%, #1E3F9C 100%);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-primary:hover{
  filter: brightness(1.06) saturate(1.06);
}
.btn-primary:active{
  filter: brightness(0.98);
}
html[data-theme="light"] .btn-primary,
body:not(.theme-dark) .btn-primary{
  border: 1px solid rgba(65,105,225,0.22);
}



/* ===== Typography Scale (Prominent + Readable) ===== */
.hero-title{
  font-size: clamp(2.05rem, 2.6vw + 1.2rem, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-title{
  font-size: clamp(1.55rem, 1.3vw + 1.15rem, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.hero-lead, .section-lead{
  font-size: clamp(1.00rem, 0.35vw + 0.95rem, 1.12rem);
  line-height: 1.6;
}



/* ===== Sponsor section (light-mode fallback when html[data-theme] isn't present) ===== */
body:not(.theme-dark) #join-sponsors,
body:not(.theme-dark) #join-sponsors *{
  color: #0B1220;
}
body:not(.theme-dark) #join-sponsors .section-kicker{ color: rgba(11,18,32,0.70); }
body:not(.theme-dark) #join-sponsors .section-lead,
body:not(.theme-dark) #join-sponsors .card-text{ color: rgba(11,18,32,0.78); }
body:not(.theme-dark) #join-sponsors .note{ color: rgba(11,18,32,0.62); }



/* ===== Premium hero light sweep (Dark Mode) =====
   A subtle moving highlight across the hero to add "expensive" polish.
   Kept very low opacity; disabled for reduced motion. */
@keyframes pkougHeroSweep{
  0%   { transform: translateX(-45%) skewX(-14deg); opacity: 0.0; }
  15%  { opacity: 0.12; }
  50%  { opacity: 0.10; }
  85%  { opacity: 0.12; }
  100% { transform: translateX(45%) skewX(-14deg); opacity: 0.0; }
}
html[data-theme="dark"] .hero::after,
body.theme-dark .hero::after{
  content:"";
  position:absolute;
  inset:-40px -120px;
  pointer-events:none;
  z-index:-1; /* above background layers, below content */
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(0,255,255,0.10) 30%,
    rgba(65,105,225,0.14) 46%,
    rgba(0,255,255,0.08) 58%,
    transparent 74%);
  filter: blur(0.2px);
  animation: pkougHeroSweep 12s cubic-bezier(.2,.8,.2,1) infinite;
}
@media (prefers-reduced-motion: reduce){
  html[data-theme="dark"] .hero::after,
  body.theme-dark .hero::after{ animation: none; opacity: 0.06; }
}

/* Light mode: reduce grid overlay intensity (keeps text crisp) */
html[data-theme="light"] body::after,
body:not(.theme-dark) body::after{
  opacity: 0.025;
  mix-blend-mode: normal;
}
