/* ===== Design tokens (MindsetForge design language) ===== */
:root {
  --bg: #0A0A0F;
  --surface: #13131A;
  --surface-elevated: #1C1C27;
  --surface-highest: #252535;
  --border: #2A2A3A;
  --border-subtle: #1E1E2E;

  --primary: #9B40FF;
  --primary-container: rgba(155, 64, 255, 0.10);
  --primary-glow: rgba(155, 64, 255, 0.20);
  --secondary: #00E5FF;
  --secondary-container: rgba(0, 229, 255, 0.10);

  --text: #F0EFF8;
  --text-secondary: #8B8BA0;
  --text-muted: #4A4A60;

  --grad: linear-gradient(135deg, #9B40FF, #00E5FF);

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1080px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 30px var(--primary-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--primary-glow); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 16px; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: #fff;
  border-radius: 9px;
  background: var(--bg);
  border: 1.5px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.brand__name { font-size: 15px; color: var(--text); }
.brand--sm .brand__name { font-size: 14px; }

.nav__links { display: flex; gap: 28px; }
.nav__links a { position: relative; font-size: 15px; color: var(--text-secondary); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu:not([hidden]) { display: flex; }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }
.mobile-menu a { padding: 12px 4px; color: var(--text-secondary); font-size: 16px; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 10px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle at 30% 30%, var(--primary-glow), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(0, 229, 255, 0.12), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__title { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.02em; }
.hero__title .grad { background-size: 220% auto; animation: heroGrad 7s ease-in-out infinite; }
@keyframes heroGrad {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Hero constellation graphic */
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__diagram-glow {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(155, 64, 255, 0.30), transparent 62%);
  filter: blur(28px);
  pointer-events: none;
}
.hero__diagram { position: relative; width: 100%; max-width: 460px; height: auto; overflow: visible; }
.hero__diagram .node { animation: nodeBreath 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nodeBreath {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}
.hero__hub-halo { animation: hubPulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hubPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .grad,
  .hero__diagram .node,
  .hero__hub-halo { animation: none; }
  .hero__pulses { display: none; }
}
.hero__sub {
  margin-top: 24px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chip {
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
}
.chip strong { color: var(--text); font-weight: 700; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.section__lead { margin-top: 14px; color: var(--text-secondary); font-size: 17px; }

/* ===== Projects ===== */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 96px;
}
.project:last-child { margin-bottom: 0; }
.project--reverse .project__media { order: 2; }

.project__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.project__placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, var(--primary-glow), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0,229,255,0.14), transparent 55%),
    var(--surface-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.project__placeholder-mark { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text); }
.project__placeholder-sub { font-size: 14px; color: var(--text-secondary); }

.project__media--shots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  overflow: visible;
  background: none;
  border-radius: 0;
}
.shot {
  position: relative;
  width: 33%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.shot--1 { transform: rotate(-6deg); margin-right: -5%; z-index: 1; }
.shot--2 { z-index: 3; transform: scale(1.12); }
.shot--3 { transform: rotate(6deg); margin-left: -5%; z-index: 1; }
.project:hover .shot--2 { transform: scale(1.16); }

.project__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-container);
  border: 1px solid rgba(155,64,255,0.25);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.project__title { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 14px; }
.project__desc { color: var(--text-secondary); font-size: 16px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}
.metrics li {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.metrics strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--text); }
.metrics span { font-size: 13px; color: var(--text-secondary); }

.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
}

.project__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; align-items: center; }
.link { color: var(--primary); font-weight: 600; font-size: 15px; transition: opacity 0.2s ease; }
.link:hover { opacity: 0.8; }
.link--muted { color: var(--text-secondary); font-weight: 500; }
.link--muted:hover { color: var(--text); opacity: 1; }

/* ===== Proof strip ===== */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.proof li {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}
.proof span { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: start; }
.about__aside { display: flex; flex-direction: column; gap: 20px; }
.about__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}
.about__text h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 22px; letter-spacing: -0.02em; }
.about__text p { color: var(--text-secondary); font-size: 16px; margin-bottom: 18px; }
.about__links { display: flex; gap: 24px; margin-top: 8px; }
.about__card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about__card h3 { font-size: 18px; margin-bottom: 18px; }
.stack--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stack--grid li { text-align: center; }

/* ===== Services cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(155,64,255,0.4); }
.card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  background: var(--primary-container);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 15px; }

/* ===== CTA ===== */
.section--cta { position: relative; overflow: hidden; }
.cta { position: relative; text-align: center; max-width: 680px; margin: 0 auto; }
.cta__glow {
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, var(--primary-glow), transparent 60%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -0.02em; }
.cta__lead { margin-top: 16px; color: var(--text-secondary); font-size: 17px; }
.cta__actions { margin-top: 32px; }
.cta__socials { margin-top: 26px; display: flex; gap: 24px; justify-content: center; }

/* ===== Contact form ===== */
.contact-form {
  margin: 32px auto 0;
  max-width: 520px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-container);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-status { font-size: 14px; text-align: center; min-height: 20px; }
.form-status.is-error { color: var(--error, #FF5E6C); }
.form-status.is-success { color: var(--success, #4CAF7D); }
.form-alt { margin-top: 22px; font-size: 14px; color: var(--text-secondary); text-align: center; }
.form-alt a { color: var(--primary); font-weight: 600; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border-subtle); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__copy { color: var(--text-muted); font-size: 13px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--text); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__copy { max-width: 640px; margin: 0 auto; }
  .hero__actions, .chips { justify-content: center; }
  .hero__visual { order: 2; }
  .hero__diagram { max-width: 380px; }

  .project, .about { grid-template-columns: 1fr; gap: 32px; }
  .project--reverse .project__media { order: 0; }
  .project { margin-bottom: 64px; }
  .project__media--shots { padding: 8px 6%; }

  .cards { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: repeat(2, 1fr); }

  .about__aside { flex-direction: row; align-items: center; }
  .about__portrait { max-width: 160px; }
}

@media (max-width: 560px) {
  .hero { padding: 130px 0 70px; }
  .hero__diagram { max-width: 300px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .stack--grid { grid-template-columns: repeat(2, 1fr); }
  .about__aside { flex-direction: column; align-items: stretch; }
  .about__portrait { max-width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .btn--lg { width: 100%; font-size: 14px; word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
