@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --header-height: 90px;
  --text-color-global: rgba(0, 0, 0, 0.8);
  --text-muted: rgba(0, 0, 0, 0.55);
  --accent: rgb(192, 166, 49);
  --accent-soft: rgba(192, 166, 49, 0.12);
  --border: #e6e4dd;
  --surface: #faf9f6;
  --dropdown-width: 130px;
  --maxw: 1120px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-color-global);
  scroll-padding-top: var(--header-height);
}

/* Accessibility: skip link + visible focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}
a:focus-visible,
button:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#container {
  width: 100%;
  position: relative;
}

/* ---------- Header / nav ---------- */
header {
  display: flex;
  position: fixed;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-inline: 9vw;
  transition: 0.3s;
  z-index: 100;
  background-color: white;
}

#nav-logo {
  position: relative;
  line-height: var(--header-height);
}
#nav-logo p {
  font-size: 30px;
  font-weight: 600;
}
#nav-logo span {
  position: absolute;
  font-size: 5em;
  right: -20px;
  top: -15px;
  color: var(--accent);
}

#nav-menu-list {
  display: flex;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  color: var(--text-color-global);
  font-weight: 500;
  padding-inline: 15px;
  margin-inline: 20px;
  text-wrap: nowrap;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* ---------- Dropdown language switcher ---------- */
.dropdown {
  position: relative;
  background-color: white;
  width: var(--dropdown-width);
}
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  padding: 0.75rem;
  width: 100%;
  border-radius: 0.25rem;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.21);
  background: white;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
  pointer-events: none;
}
.dropdown-button {
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  border-radius: 0.25rem;
  padding: 8px 16px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color-global);
  font-weight: 500;
}
.dropdown-button::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}
.dropdown.active .dropdown-button::after {
  transform: rotate(180deg);
}
.dropdown.active > .dropdown-button + .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-item {
  margin-block: 2px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 0.25rem;
}
.dropdown-item:hover {
  background-color: rgb(238, 237, 237);
}

/* ---------- Reveal + typed cursor ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.typed-text::after {
  content: "|";
  margin-left: 2px;
  color: var(--accent);
  opacity: 1;
}
.typed-text.blinking::after {
  animation: blink 0.9s steps(2, start) infinite;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

main {
  padding-inline: 10vw;
}
section {
  max-width: var(--maxw);
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.featured-box {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}
.featured-text-card span {
  background-color: var(--accent);
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  border-radius: 5px;
}
.featured-text-heading {
  margin-block: 22px 14px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero-typed-line {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 22px;
}
.typed-prefix {
  color: var(--text-muted);
}
.typed-text {
  color: var(--accent);
  font-weight: 600;
}
.featured-text-info {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
}

/* ---------- Shared section heads ---------- */
.section-head {
  margin-bottom: 40px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2,
.paths h2,
.about h2,
.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-lead {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* ---------- Fork: two client paths ---------- */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-block: 80px;
}
.fork-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px 30px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fork-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}
.fork-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.fork-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.fork-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.fork-link::after {
  content: " →";
}

/* ---------- Promise band ---------- */
.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-block: 60px;
  border-block: 1px solid var(--border);
}
.promise-line h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.promise-line p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Tiers ---------- */
.tiers {
  padding-block: 90px;
}
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 26px;
  position: relative;
}
.tier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  border-radius: 12px 12px 0 0;
}
.tier-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.tier-for {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.tier-card > p:last-child {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Projects ---------- */
.projects {
  padding-block: 40px 90px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  background: var(--surface);
}
.project-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.project-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- About ---------- */
.about {
  padding-block: 80px;
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 720px;
}
.about-inner p {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact {
  padding-block: 90px 110px;
  text-align: center;
}
.contact-inner {
  max-width: 620px;
  margin-inline: auto;
}
.contact-inner p {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(192, 166, 49, 0.35);
}

footer {
  padding: 30px 10vw;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  #nav-menu-list {
    display: none;
  }
  .paths,
  .promise,
  .tiers-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
