@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:        #0c1118;
  --ink-2:      #141c26;
  --ink-3:      #1a2535;
  --teal:       #1a7a8a;
  --teal-light: #25a3b7;
  --teal-glow:  #2ec4d9;
  --text:       #f0f4f8;
  --text-dim:   #c4cdd9;
  --text-faint: #8a9ab0;
  --line:       rgba(255,255,255,0.1);
  --surface-2:  rgba(255,255,255,0.07);
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --mono:       'DM Mono', 'Courier New', monospace;
  --radius:     16px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
::selection { background: var(--teal); color: #fff; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; height: var(--nav-h);
  z-index: 100; display: flex; align-items: center;
  background: rgba(12,17,24,0.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-container {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 32px; display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: var(--serif); font-size: 1.5rem; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--teal), var(--teal-glow));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-family: var(--mono); font-weight: 500; color: #fff;
}
.nav-menu { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav-menu a {
  text-decoration: none; color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
  padding: 8px 16px; border-radius: 8px;
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { background: var(--teal) !important; color: #fff !important; }
.nav-cta:hover { background: var(--teal-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: calc(var(--nav-h) + 40px) 32px 60px;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26,122,138,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(26,122,138,0.1) 0%, transparent 50%),
    var(--ink);
}

.hero-content { position: relative; z-index: 1; max-width: 860px; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--teal-glow);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 2rem; padding: 6px 16px;
  border: 1px solid rgba(46,196,217,0.35); border-radius: 100px;
  background: rgba(46,196,217,0.06);
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-glow); display: block;
}

.hero-content h1 {
  font-family: var(--serif); font-size: clamp(2.4rem,6vw,5rem);
  line-height: 1.1; margin-bottom: 1.5rem; color: var(--text);
}
.hero-content h1 em { font-style: italic; color: var(--teal-glow); }
.hero-content > p {
  font-size: clamp(1.1rem,2vw,1.3rem); color: var(--text-dim);
  max-width: 620px; margin: 0 auto 2.5rem; line-height: 1.75; font-weight: 300;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 1rem;
  font-weight: 600; text-decoration: none;
}
.btn-primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 4px 24px rgba(26,122,138,0.4);
}
.btn-primary:hover { background: var(--teal-light); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-glow); }

.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 4rem;
  padding-top: 2.5rem; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-stat-number {
  display: block; font-family: var(--serif); font-size: 2.4rem;
  color: var(--text); margin-bottom: 0.25rem;
}
.hero-stat-label {
  font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── SECTIONS ── */
section { padding: 120px 32px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--teal-glow);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.section-label::before { content: '//'; opacity: 0.5; }
.section-header { margin-bottom: 4rem; }
.section-header h2 {
  font-family: var(--serif); font-size: clamp(2rem,4vw,3.2rem);
  color: var(--text); line-height: 1.15; margin-bottom: 1rem;
}
.section-header p { font-size: 1.15rem; color: var(--text-dim); max-width: 620px; font-weight: 300; }

/* ── ABOUT ── */
#about { background: var(--ink-2); }
.about-intro {
  font-size: 1.15rem; color: var(--text-dim); max-width: 780px;
  line-height: 1.85; font-weight: 300; margin-bottom: 3.5rem;
  border-left: 3px solid var(--teal); padding-left: 1.5rem;
}
.capabilities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cap-item {
  background: var(--ink-2); padding: 1.5rem 1.8rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.cap-item:hover { background: var(--ink-3); }
.cap-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(26,122,138,0.2); border: 1px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 3px; color: var(--teal-glow);
  font-size: 0.7rem; font-weight: 700;
}
.cap-item p { font-size: 1rem; color: var(--text-dim); line-height: 1.6; }

/* ── TOOLS ── */
#publications { background: var(--ink); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.tool-card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.tool-card:hover { border-color: var(--teal); }
.tool-header {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  padding: 2rem;
}
.tool-header h3 { font-family: var(--serif); font-size: 1.9rem; color: #fff; margin-bottom: 0.35rem; }
.tool-header p { font-size: 0.95rem; color: rgba(255,255,255,0.85); font-weight: 300; }
.tool-content { padding: 1.75rem 2rem; }
.tool-stats { display: flex; justify-content: space-around; gap: 1rem; }
.tool-stat { text-align: center; }
.tool-stat-number { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--text); margin-bottom: 0.3rem; }
.tool-stat-label { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── SERVICES ── */
#consultancy { background: var(--ink-2); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 1.5rem; }
.service-card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
}
.service-card:hover { border-color: rgba(26,122,138,0.5); }
.service-icon { font-size: 2.2rem; margin-bottom: 1.25rem; display: block; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 1.2rem; line-height: 1.3; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: 0.5rem; }
.service-card li {
  font-size: 1rem; color: var(--text-dim);
  padding: 0.65rem 0 0.65rem 1.5rem; position: relative; line-height: 1.55;
  border-bottom: 1px solid var(--line);
}
.service-card li::before { content: '›'; position: absolute; left: 0.3rem; color: var(--teal-glow); font-size: 1.1rem; line-height: 1.5; font-weight: 700; }

/* ── CONTACT ── */
#contact { background: var(--ink); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-sidebar h3 { font-family: var(--serif); font-size: 1.9rem; color: var(--text); margin-bottom: 1rem; }
.contact-sidebar > p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 2rem; }
.contact-detail { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-detail-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-text { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.contact-detail-text span { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-detail-text a, .contact-detail-text p { color: var(--text-dim); text-decoration: none; font-size: 1rem; }
.contact-detail-text a:hover { color: var(--teal-glow); }

.contact-form {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 2.5rem; display: grid; gap: 1.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-messages { border-radius: 10px; padding: 1rem 1.25rem; font-size: 1rem; display: none; }
.form-messages.success { display: block; background: rgba(26,122,138,0.15); color: var(--teal-glow); border: 1px solid rgba(26,122,138,0.3); }
.form-messages.error { display: block; background: rgba(200,50,50,0.1); color: #f08080; border: 1px solid rgba(200,50,50,0.25); }

.input-field input, .input-field select, .input-field textarea {
  width: 100%; padding: 13px 16px; background: var(--ink-3);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  color: var(--text); font-size: 1rem; font-family: var(--sans);
  outline: none;
}
.input-field select option { background: var(--ink-3); color: var(--text); }
.input-field input::placeholder, .input-field textarea::placeholder { color: var(--text-faint); }
.input-field input:focus, .input-field select:focus, .input-field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,122,138,0.15);
}
.input-field textarea { min-height: 110px; resize: vertical; }
.btn-submit {
  background: var(--teal); color: #fff; padding: 14px 28px; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 600; font-family: var(--sans);
  cursor: pointer; box-shadow: 0 4px 20px rgba(26,122,138,0.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--teal-light); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── FOOTER ── */
footer {
  background: var(--ink-2); border-top: 1px solid var(--line);
  padding: 2rem 32px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.1rem; color: var(--text-dim); }
.footer-copy { font-family: var(--mono); font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.04em; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 80px 20px; }
  .hamburger { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(12,17,24,0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--line);
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px 20px; width: 100%; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .hero-stats { gap: 2rem; }
}
