/* ==============================================
   PakAI Labs — Main Stylesheet
   Font: Inter (Google Fonts)
   Theme: Dark Navy + Logo Green + Logo Blue
   ============================================== */

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

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #060d1f;
  --navy-mid:    #0b1628;
  --navy-light:  #101f3a;
  --navy-card:   #0e1b32;

  --green:       #10b981;
  --green-hover: #0fd47a;
  --green-dim:   rgba(16,185,129,0.12);
  --green-border:rgba(16,185,129,0.2);

  --gold:        #3d7bd6;
  --gold-dim:    rgba(61,123,214,0.12);

  --white:       #f8fafc;
  --muted:       #64748b;
  --muted-light: #94a3b8;
  --border:      rgba(255,255,255,0.07);
  --border-green:rgba(16,185,129,0.18);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-hover:0 12px 40px rgba(0,0,0,0.45);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- CANVAS ---- */
#circuit-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

section { position: relative; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,13,31,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

nav.scrolled {
  background: rgba(6,13,31,0.96);
  border-color: var(--border-green);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  width: 38px;
  height: 38px;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span::before {
  top: -9px;
}

.nav-toggle span::after {
  top: 9px;
}

nav.open .nav-toggle span {
  background: transparent;
}

nav.open .nav-toggle span::before {
  transform: translateY(9px) rotate(45deg);
}

nav.open .nav-toggle span::after {
  transform: translateY(-9px) rotate(-45deg);
}

  border-radius: var(--radius-sm);
  transition: color 0.18s;
}

.nav-login:hover { color: var(--white); }

.btn-nav {
  background: var(--green);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.18s, transform 0.15s;
}

.btn-nav:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.28);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  letter-spacing: -0.01em;
  transition: border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* ---- SECTION HEADERS ---- */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
}

.section-header p {
  color: var(--muted-light);
  font-size: 1rem;
  font-weight: 400;
  max-width: 500px;
  margin: 0.65rem auto 0;
  line-height: 1.75;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 6rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.55s ease both;
}

.hero-eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero-logo-mark {
  margin-bottom: 1.75rem;
  animation: fadeUp 0.55s 0.08s ease both;
}

.hero-logo-img {
  width: 200px; height: auto;
  filter: drop-shadow(0 0 22px rgba(16,185,129,0.35));
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.6s 0.15s ease both;
}

.hero h1 .c-green { color: var(--green); }
.hero h1 .c-gold  { color: var(--gold);  }

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted-light);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
  animation: fadeUp 0.6s 0.22s ease both;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 3.5rem auto 0;
  animation: fadeUp 0.6s 0.38s ease both;
}

.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 0;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.45s ease both;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  margin: 3.5rem auto 0;
}

.hero-stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child { border-right: none; }

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-value.gold { color: var(--gold); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
}

/* ---- DOMAINS ---- */
.domains {
  padding: 6rem 0;
  background: var(--navy-mid);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}

.domain-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  cursor: default;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.domain-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-green);
  box-shadow: var(--shadow-hover);
}

.domain-card:hover::before { opacity: 1; }

.domain-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  position: relative;
}

.domain-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}

.domain-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
}

.domain-tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- OFFERINGS ---- */
.offerings { padding: 6rem 0; }

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.offer-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Color variants */
.offer-card.free    { background: #071c14; border-color: rgba(16,185,129,0.2);  }
.offer-card.paid    { background: #081428; border-color: rgba(61,123,214,0.2);  }
.offer-card.seminar { background: #091228; border-color: rgba(99,102,241,0.22); }
.offer-card.webinar { background: #190a1c; border-color: rgba(236,72,153,0.2);  }

.offer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.offer-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.offer-card.free    .offer-icon { background: rgba(16,185,129,0.12); }
.offer-card.paid    .offer-icon { background: rgba(61,123,214,0.12); }
.offer-card.seminar .offer-icon { background: rgba(99,102,241,0.12); }
.offer-card.webinar .offer-icon { background: rgba(236,72,153,0.12); }

.offer-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
}

.offer-card.free    .offer-badge { background: rgba(16,185,129,0.12); color: var(--green); }
.offer-card.paid    .offer-badge { background: rgba(61,123,214,0.12);  color: var(--gold);  }
.offer-card.seminar .offer-badge { background: rgba(99,102,241,0.12);  color: #818cf8; }
.offer-card.webinar .offer-badge { background: rgba(236,72,153,0.12);  color: #f472b6; }

.offer-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.offer-card p {
  font-size: 0.855rem;
  color: var(--muted-light);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.offer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: gap 0.2s;
}

.offer-link:hover { gap: 0.55rem; }

.offer-card.free    .offer-link { color: var(--green); }
.offer-card.paid    .offer-link { color: var(--gold);  }
.offer-card.seminar .offer-link { color: #818cf8; }
.offer-card.webinar .offer-link { color: #f472b6; }

/* ---- MISSION ---- */
.mission {
  padding: 6rem 0;
  background: var(--navy-mid);
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.mission-text .section-tag { margin-bottom: 0.6rem; }

.mission-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.mission-text h2 .c-green { color: var(--green); }
.mission-text h2 .c-gold  { color: var(--gold);  }

.mission-text p {
  color: var(--muted-light);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 0.85rem;
  font-weight: 400;
}

.pillars { display: flex; flex-direction: column; gap: 0.875rem; }

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--navy-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color 0.22s, transform 0.22s;
  cursor: default;
}

.pillar:hover {
  border-color: var(--border-green);
  transform: translateX(4px);
}

.pillar-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  border-radius: var(--radius-sm);
}

.pillar-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.pillar-body p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}

/* ---- UPCOMING EVENTS ---- */
.upcoming { padding: 6rem 0; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
}

.event-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-green);
  box-shadow: var(--shadow-card);
}

.event-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.03em;
}

.event-mode {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--muted-light);
}

.event-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.event-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
  flex: 1;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.event-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.badge-free    { background: rgba(16,185,129,0.1); color: var(--green); }
.badge-webinar { background: rgba(236,72,153,0.1); color: #f472b6; }
.badge-seminar { background: rgba(99,102,241,0.1); color: #818cf8; }
.badge-paid    { background: rgba(61,123,214,0.1);  color: var(--gold); }

.event-register {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.18s;
}

.event-register:hover { color: var(--green); }

/* ---- NOTIFY CTA ---- */
.notify-section {
  padding: 6rem 0;
  background: var(--navy-mid);
}

.notify-card {
  background: var(--navy-card);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.notify-card::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.notify-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.notify-card h2 span { color: var(--green); }

.notify-card p {
  color: var(--muted-light);
  font-size: 0.93rem;
  margin-bottom: 1.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  font-weight: 400;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.email-form input {
  flex: 1;
  min-width: 220px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  font-weight: 400;
}

.email-form input:focus { border-color: var(--green); }
.email-form input::placeholder { color: var(--muted); }

.email-form button {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}

.email-form button:hover {
  background: var(--green-hover);
  transform: scale(1.02);
}

/* ---- FOOTER ---- */
footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border-green);
  background: var(--navy-mid);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
}

.footer-logo {
  display: inline-flex;
  text-decoration: none;
}

.footer-logo-img { height: 80px; width: auto; }

.footer-slogan {
  font-size: 0.85rem;
  color: var(--muted-light);
  line-height: 1.7;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  align-self: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-weight: 400;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .mission-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 13, 31, 0.98);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    z-index: 90;
    margin: 0 1.25rem;
  }

  nav.open .nav-links {
    max-height: 420px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 1rem 1.25rem;
  }

  .nav-right {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  .hero { padding: 7rem 1.25rem 4rem; }
  .hero-stat { min-width: 110px; }
  .notify-card { padding: 2.25rem 1.5rem; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-brand { max-width: 100%; }
}
