:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --text: #0f1222;
  --muted: #60657a;
  --line: #e6e8f3;
  --accent: #5b5ceb;
  --accent-contrast: #ffffff;
  --shadow-sm: 0 8px 20px rgba(17, 21, 40, 0.06);
  --shadow-md: 0 20px 44px rgba(17, 21, 40, 0.12);
}

html[data-theme='dark'] {
  --bg: #0d1020;
  --surface: #151a31;
  --text: #eef0ff;
  --muted: #a7adc8;
  --line: #262d4f;
  --accent: #7b7cff;
  --accent-contrast: #0b1020;
  --shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 24px 48px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus-visible { left: 10px; }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 5.2rem 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}
.brand { font-weight: 700; letter-spacing: 0.01em; }
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a {
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.65rem; }

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nav-cta {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; margin: 0.8rem 0 0.9rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.2; margin: 0.6rem 0 0.8rem; }
h3 { margin: 0 0 0.5rem; }

.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 2rem; align-items: center; }
.hero-subtitle { color: var(--muted); max-width: 62ch; }
.hero-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-proof { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }

.btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: transparent; box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--surface); color: var(--text); }

.cred-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.cred-item {
  margin: 0;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 75%, transparent);
  font-weight: 600;
}
.cred-item:last-child { border-bottom: none; }
.cred-item a { color: var(--accent); }

.section-head { margin-bottom: 1.4rem; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.card p { color: var(--muted); margin: 0; }

.featured {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
}
.featured-list { margin: 0.6rem 0 1.2rem 1rem; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.6rem; align-items: center; }
.about-photo {
  width: min(100%, 330px);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 18px 42px color-mix(in oklab, #000 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--line));
  background: linear-gradient(
    155deg,
    color-mix(in oklab, var(--accent) 28%, transparent),
    color-mix(in oklab, var(--line) 92%, var(--surface))
  );
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  border-radius: 20px;
}
.about-text p { color: var(--muted); }

.cta-section .cta-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--muted);
}
.social-links a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 4rem 0; }

  .nav-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'links'
      'actions';
    row-gap: 0.62rem;
    padding: 0.78rem 0;
  }

  .brand { grid-area: brand; }

  .nav-links {
    grid-area: links;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
    font-size: 0.87rem;
  }

  .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.52rem 0.46rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
  }

  .nav-actions {
    grid-area: actions;
    width: 100%;
    gap: 0.55rem;
  }

  .theme-toggle,
  .nav-cta {
    min-height: 46px;
    border-radius: 12px;
  }

  .theme-toggle {
    width: auto;
    flex: 0 0 50px;
    height: auto;
  }

  .nav-cta {
    padding: 0.62rem 0.9rem;
    font-size: 0.92rem;
    flex: 1;
    justify-content: center;
  }

  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-actions {
    flex-direction: column;
  }

  .theme-toggle,
  .nav-cta {
    width: 100%;
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
