:root {
  --bg: #07111a;
  --bg-soft: #0d1b27;
  --card: #122433;
  --ink: #f4f7f8;
  --muted: #9db0bc;
  --accent: #2ec4b6;
  --accent-dark: #1d9a8e;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: radial-gradient(circle at top right, #143246 0%, var(--bg) 42%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 26, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.linkedin-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #04221f;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.linkedin-cta:hover {
  background: #49d8cb;
}

.linkedin-cta-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 72px 0 80px;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.hero h1,
.experience h2,
.expertise h2,
.about h2,
.roles h2,
.contact h2 {
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.experience h2,
.expertise h2,
.about h2,
.roles h2,
.contact h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 10px 0 36px;
}

.hero-roles {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.ghost-btn {
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  font-weight: 600;
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

section {
  padding: 72px 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.exp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  min-height: 150px;
}

.exp-card .label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.exp-card .years {
  font-size: 2.1rem;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}

.highlights li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.role-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}

.role-card h3 {
  font-size: 1.2rem;
}

.role-card .meta {
  color: var(--accent);
  font-size: 0.92rem;
  margin: 6px 0 10px;
}

.role-card p {
  color: var(--muted);
}

.contact-points {
  color: var(--muted);
  margin: 0 0 28px 20px;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: #25d366;
  color: #04221f;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.whatsapp-cta:hover {
  background: #43e685;
}

.consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.consent-banner p {
  color: var(--muted);
  font-size: 0.98rem;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent-actions button {
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.consent-actions .ghost-btn {
  background: transparent;
  padding: 10px 18px;
}

@media (max-width: 900px) {
  .experience-grid,
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #102231;
    border-radius: 16px;
    border: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }
}

.tool-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.tool-intro {
  padding: 56px 0 24px;
}

.tool-intro h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  gap: 24px;
  align-items: start;
  padding: 0 0 72px;
}

/* Widen to two columns only once there is a result to show beside the form. */
.tool-grid:has(.tool-result:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: none;
}

.tool-form,
.tool-result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.tool-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-form .hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.88rem;
}

.tool-form textarea,
.tool-form input[type="text"] {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.5;
  resize: vertical;
}

.tool-form textarea:focus,
.tool-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.file-pick {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.file-pick input {
  display: none;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tool-actions button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.tool-actions .ghost-btn {
  background: transparent;
  cursor: pointer;
}

.tool-actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-error {
  margin-top: 16px;
  color: #ff8f8f;
  font-size: 0.95rem;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.result-header h2 {
  font-size: 1.3rem;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.letter {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.steps-title {
  font-size: 1rem;
  margin: 24px 0 10px;
}

.agent-steps {
  margin: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
}

.agent-steps code {
  color: var(--accent);
}

.agent-steps .step-failed code {
  color: #ff8f8f;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .experience-grid,
  .highlights {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .consent-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
