/* ============================================
   AI Leader — Design tokens
   ============================================ */
:root {
  --ink: #12141A;
  --ink-deep: #0A0B0F;
  --violet: #6C5CE7;
  --violet-deep: #4E3FCB;
  --violet-tint: #F1EFFD;
  --paper: #FFFFFF;
  --paper-warm: #FAFAFC;
  --text-soft: #565D6B;
  --line: #E4E3EC;
  --cyan: #22D3EE;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #A79BF5; }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.section-lead { color: var(--text-soft); font-size: 1.05rem; }

/* ============ Background canvas ============ */
#netCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.32);
}
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--violet); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.nav-logo span { color: var(--violet); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--text-soft); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--violet-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
.hero-inner { max-width: 820px; }
.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.grad {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 2.3rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--violet-deep);
}
.hero-stat-label { font-size: 0.86rem; color: var(--text-soft); line-height: 1.35; }

/* ============ Proof strip ============ */
.proof { background: var(--ink); padding: 2.6rem 1.5rem; }
.proof-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.proof-inner p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  color: #EDEBFA;
  line-height: 1.5;
}
.proof-inner strong { color: var(--cyan); }
.proof-source { font-size: 0.78rem; color: #6B7280; margin-top: 0.8rem; }

/* ============ Method ============ */
.method { max-width: var(--container); margin: 0 auto; padding: 7rem 1.5rem 6rem; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.method-step {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}
.method-step:hover { border-color: var(--violet); transform: translateY(-2px); }
.method-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: var(--violet);
  width: 36px; height: 36px;
  border-radius: 10px;
  text-align: center;
  line-height: 36px;
  margin-bottom: 1.1rem;
}
.method-step h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }
.method-step p { color: var(--text-soft); font-size: 0.95rem; }

/* ============ Services ============ */
.services { background: var(--paper-warm); padding: 6.5rem 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
}
.service-card--highlight {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-10px);
}
.service-card--highlight h3, .service-card--highlight p { color: #fff; }
.service-card--highlight .service-list li { color: #C9C5F5; }
.service-card--highlight .service-tag { background: var(--violet); color: #fff; }

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--violet-tint);
  color: var(--violet-deep);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  align-self: flex-start;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.service-card > p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 1.3rem; }
.service-list { list-style: none; margin-top: auto; }
.service-list li {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding: 0.4rem 0;
  padding-left: 1.3rem;
  position: relative;
  border-top: 1px solid var(--line);
}
.service-list li:first-child { border-top: none; }
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.75rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.service-card--highlight .service-list li { border-top-color: rgba(255,255,255,0.12); }

/* ============ Projects ============ */
.projects { max-width: var(--container); margin: 0 auto; padding: 7rem 1.5rem; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover { box-shadow: 0 16px 36px rgba(18,20,26,0.08); transform: translateY(-3px); }
.project-icon {
  display: block;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--violet-tint);
  margin-bottom: 1.2rem;
  position: relative;
}
.project-icon::before {
  content: ""; position: absolute; inset: 12px;
  background: var(--violet-deep);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.project-icon[data-icon="award"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M8.5 13.5 7 22l5-3 5 3-1.5-8.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M8.5 13.5 7 22l5-3 5 3-1.5-8.5'/%3E%3C/svg%3E"); }
.project-icon[data-icon="governance"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.project-icon[data-icon="patent"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.project-icon[data-icon="chart"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E"); }
.project-icon[data-icon="books"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }

.project-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; line-height: 1.35; }
.project-card p { color: var(--text-soft); font-size: 0.94rem; }
.project-card strong { color: var(--ink); }

/* ============ Credentials ============ */
.creds { background: var(--ink); padding: 7rem 1.5rem; }
.creds-title { color: #fff; }
.creds-lead { color: #A79BF5; }
.creds-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.cred-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.cred-item--edu { background: rgba(108,92,231,0.14); border-color: rgba(108,92,231,0.35); }
.cred-hours {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.cred-item h4 { color: #fff; font-size: 0.98rem; line-height: 1.35; margin-bottom: 0.5rem; font-weight: 600; }
.cred-item p { color: #9CA3B8; font-size: 0.82rem; }

/* ============ About ============ */
.about { max-width: var(--container); margin: 0 auto; padding: 7rem 1.5rem; }
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--violet-tint);
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.photo-fallback { display: flex; align-items: center; justify-content: center; }
.about-photo.photo-fallback img { display: none; }
.about-photo.photo-fallback::after {
  content: "AI";
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--violet-deep);
  opacity: 0.35;
}
.about-lead { font-size: 1.06rem; color: var(--text-soft); margin-bottom: 1.8rem; }
.about-facts { list-style: none; margin-bottom: 2.2rem; }
.about-facts li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--text-soft);
}
.about-facts li:last-child { border-bottom: none; }
.about-facts strong { color: var(--ink); }

/* ============ Contact ============ */
.contact { background: linear-gradient(135deg, var(--violet-deep), var(--ink)); padding: 7rem 1.5rem; text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.contact-lead { color: #D8D3F8; font-size: 1.06rem; margin-bottom: 2.6rem; }
.contact-methods { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.contact-method {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1.3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 240px;
  transition: background 0.15s;
}
.contact-method:hover { background: rgba(255,255,255,0.14); }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); font-weight: 700; }
.contact-value { font-size: 1.06rem; color: #fff; font-weight: 600; }

/* ============ Footer ============ */
.footer { background: var(--ink-deep); padding: 1.6rem 1.5rem; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6B7280;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .method-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--highlight { transform: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .creds-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .contact-method { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #netCanvas { display: none; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
