/* ---------- Design tokens ---------- */
:root {
  --teal-300: #5eead4;
  --teal-400: #2dd4a6;
  --teal-500: #16b489;
  --teal-600: #0f8c6b;
  --slate-400: #7c8ba3;
  --slate-500: #5a6c85;

  --bg-950: #0a0e13;
  --bg-900: #0d131a;
  --surface-800: #131b24;
  --surface-700: #1a232e;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #f2f6f4;
  --text-secondary: #b9c4cc;
  --text-muted: #7d8b96;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-950);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-500);
  color: #06120e;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.site-nav a {
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--teal-300); }
.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--teal-400); color: var(--teal-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 18% -10%, rgba(45, 212, 166, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(90, 108, 133, 0.14), transparent 55%);
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--slate-400);
  margin-bottom: 26px;
}
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #06120e;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--teal-400); color: var(--teal-300); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-900); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 18px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 560px;
}

.about-grid {
  display: grid;
  gap: 22px;
  max-width: 760px;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
}
.about-grid p { color: var(--text-secondary); font-size: 1.05rem; }
.about-grid .lede { color: var(--text-primary); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface-800);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px 32px;
}
.expertise-col h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--teal-300);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.tag-list { display: flex; flex-direction: column; gap: 9px; }
.tag-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.section-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 40px;
}

/* ---------- Experience ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.stat {
  border-left: 2px solid var(--teal-500);
  padding-left: 20px;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--text-primary);
}
.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ---------- Contact ---------- */
.contact-section { text-align: left; }
.contact-actions { margin: 36px 0 28px; }
.contact-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.contact-links a { border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; transition: color 0.2s ease, border-color 0.2s ease; }
.contact-links a:hover { color: var(--teal-300); border-color: var(--teal-400); }
.contact-location { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 32px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner a { transition: color 0.2s ease; }
.footer-inner a:hover { color: var(--teal-300); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Simple page (privacy) ---------- */
.simple-page {
  padding: 160px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}
.simple-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.simple-page .updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}
.simple-page h2 {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--teal-300);
  margin: 36px 0 12px;
}
.simple-page p, .simple-page li {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 10px;
}
.simple-page ul { padding-left: 20px; list-style: disc; }
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--teal-300);
  border-bottom: 1px solid var(--teal-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-nav { gap: 16px; font-size: 0.85rem; }
  .site-nav a:not(.lang-toggle) { display: none; }
  .hero { padding: 110px 0 80px; }
  .section { padding: 72px 0; }
}

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