/* =========================================================
 *  VARIABLES
 = *======================================================== */

:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-2: #f0f5f3;
  --text: #17201d;
  --muted: #66736e;
  --line: #d9e3df;

  --accent: #397b70;
  --accent-2: #dcebe6;

  --white: #ffffff;

  --shadow:
  0 24px 70px rgba(25, 55, 48, 0.10);

  --container: 1160px;
}


/* =========================================================
 *  DARK MODE
 = *======================================================== */

html.dark-mode {
  --bg: #181b1a;
  --surface: #202422;
  --surface-2: #272d2a;
  --text: #e7ebe8;
  --muted: #a6afaa;
  --line: #363d39;

  --accent: #6fa99f;
  --accent-2: #293b37;

  --white: #f5f7f5;

  --shadow:
  0 24px 70px rgba(0, 0, 0, .22);
}


/* =========================================================
 *  RESET
 = *======================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
  "DM Sans",
  Arial,
  sans-serif;
  line-height: 1.6;

  transition:
  background .25s ease,
  color .25s ease;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

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


/* =========================================================
 *  CONTAINER
 = *======================================================== */

.container {
  width: min(
    var(--container),
             calc(100% - 48px)
  );

  margin-inline: auto;
}


/* =========================================================
 *  HEADER
 = *======================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: var(--accent-2);

  backdrop-filter: blur(14px);

  border-bottom:
  1px solid var(--line);

  transition:
  background .25s ease,
  border-color .25s ease;
}

.nav {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================================
 *  BRAND
 = *======================================================== */

.brand {
  display: flex;
  align-items: center;

  gap: 10px;

  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: right;

  width: 34px;
  height: 34px;

  border-radius: 9px;

  background: var(--accent);
  color: var(--white);

  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
}

.brand strong {
  display: block;

  font-family: "Manrope", sans-serif;

  font-size: 15px;
  font-weight: 800;

  line-height: 1.1;
}

.brand small {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.2;
}


/* =========================================================
 *  NAVIGATION
 = *======================================================== */

.nav-links {
  display: flex;
  align-items: center;

  gap: 28px;
}

.nav-links > a {
  position: relative;

  color: var(--muted);

  font-size: 13px;
  font-weight: 600;

  transition:
  color .2s ease;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--text);
}

.nav-links > a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -8px;

  height: 2px;

  background: var(--accent);

  border-radius: 999px;
}


/* =========================================================
 *  NAV CTA
 = *======================================================== */

.nav-links .nav-cta {
  padding: 9px 15px;

  border-radius: 8px;

  background: var(--accent);

  color: var(--white);

  transition:
  transform .2s ease,
  box-shadow .2s ease;
}

.nav-links .nav-cta:hover {
  color: var(--white);

  transform: translateY(-1px);

  box-shadow:
  0 8px 18px rgba(57, 123, 112, .20);
}

.nav-links .nav-cta::after {
  display: none;
}


/* =========================================================
 *  LANGUAGE SELECTOR
 = *======================================================== */

.language-selector {
  display: flex;
  align-items: center;

  gap: 7px;
}

.language-option {
  border: 0;

  background: transparent;

  padding: 4px 0;

  color: inherit;

  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;

  cursor: pointer;

  opacity: .55;

  transition:
  opacity .2s ease,
  transform .2s ease;
}

.language-option:hover {
  opacity: 1;
}

.language-option.active {
  opacity: 1;
}

.language-separator {
  opacity: .35;

  user-select: none;
}


/* =========================================================
 *  THEME TOGGLE
 = *======================================================== */

.theme-toggle {
  position: relative;

  width: 48px;
  height: 25px;

  border: 1px solid var(--line);

  border-radius: 999px;

  background: var(--surface);

  color: var(--muted);

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 0 5px;

  cursor: pointer;

  font-size: 13px;

  transition:
  background .25s ease,
  border-color .25s ease,
  color .25s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);

  color: var(--accent);
}

.theme-dot {
  position: absolute;

  left: 4px;

  width: 17px;
  height: 17px;

  border-radius: 50%;

  background: var(--accent);

  transition:
  transform .25s ease,
  background .25s ease;
}

html.dark-mode .theme-toggle {
  justify-content: flex-start;

  padding-left: 26px;
}

html.dark-mode .theme-dot {
  transform: translateX(21px);
}

.theme-toggle > span:last-child {
  font-size: 13px;
  line-height: 1;
}

html.dark-mode .theme-toggle > span:last-child {
  font-size: 0;
}

html.dark-mode .theme-toggle > span:last-child::after {
  content: "☾";

  font-size: 13px;
}


/* =========================================================
 *  MOBILE MENU BUTTON
 = *======================================================== */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 9px;

  border: 1px solid var(--line);

  border-radius: 8px;

  background: var(--surface);

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 100%;
  height: 2px;

  margin: 5px 0;

  background: var(--text);

  border-radius: 999px;
}


/* =========================================================
 *  HERO
 = *======================================================== */

.hero {
  padding:
  105px 0
  90px;
}

.hero-grid {
  display: grid;

  grid-template-columns:
  1.05fr
  .95fr;

  align-items: center;

  gap: 80px;
}

.eyebrow {
  margin: 0 0 15px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;

  margin: 0;

  font-family:
  "Manrope",
  sans-serif;

  font-size:
  clamp(42px, 6vw, 72px);

  line-height: 1.02;

  letter-spacing: -.045em;
}

.hero h1 span {
  display: block;

  color: var(--accent);
}

.hero-description {
  max-width: 600px;

  margin: 25px 0 0;

  color: var(--muted);

  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-top: 32px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding:
  0 20px;

  border-radius: 8px;

  font-size: 13px;
  font-weight: 700;

  transition:
  transform .2s ease,
  background .2s ease,
  color .2s ease,
  border-color .2s ease,
  box-shadow .2s ease;
}

.button-primary {
  background: var(--accent);

  color: var(--white);

  box-shadow:
  0 12px 25px rgba(57, 123, 112, .18);
}

.button-primary:hover {
  transform: translateY(-2px);

  box-shadow:
  0 16px 30px rgba(57, 123, 112, .24);
}

html.dark-mode .button-primary {
  box-shadow:
  0 12px 25px rgba(0, 0, 0, .20);
}

.button-secondary {
  border: 1px solid var(--line);

  background: transparent;

  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);

  color: var(--accent);

  transform: translateY(-1px);
}


/* =========================================================
 *  HERO TRUST
 = *======================================================== */

.hero-trust {
  display: flex;
  flex-wrap: wrap;

  gap: 18px;

  margin-top: 32px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 600;
}

.hero-trust span {
  display: flex;
  align-items: center;

  gap: 7px;
}

.hero-trust span::before {
  content: "✓";

  color: var(--accent);

  font-weight: 800;
}


/* =========================================================
 *  HERO VISUAL
 = *======================================================== */

.hero-visual {
  position: relative;
}

.browser-card {
  position: relative;

  overflow: hidden;

  background: var(--surface);

  border:
  1px solid var(--line);

  border-radius: 18px;

  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;

  gap: 7px;

  height: 44px;

  padding: 0 16px;

  border-bottom:
  1px solid var(--line);

  background: var(--surface-2);
}

.browser-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--muted);

  opacity: .5;
}

.browser-address {
  flex: 1;

  margin-left: 8px;

  padding: 5px 10px;

  border-radius: 6px;

  background: var(--bg);

  color: var(--muted);

  font-size: 10px;
}

.browser-content {
  min-height: 330px;

  padding: 42px;
}

.browser-content small {
  color: var(--accent);

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .08em;
}

.browser-content h2 {
  max-width: 360px;

  margin: 12px 0 0;

  font-family:
  "Manrope",
  sans-serif;

  font-size:
  clamp(30px, 4vw, 46px);

  line-height: 1.05;

  letter-spacing: -.04em;
}

.browser-content p {
  max-width: 340px;

  margin: 18px 0 0;

  color: var(--muted);

  font-size: 13px;
}

.browser-line {
  width: 120px;
  height: 6px;

  margin-top: 30px;

  border-radius: 999px;

  background: var(--accent);
}

.floating-note {
  position: absolute;

  padding: 10px 14px;

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 9px;

  box-shadow:
  0 12px 35px rgba(30, 55, 48, .12);

  color: var(--muted);

  font-size: 10px;
  font-weight: 700;
}

.note-one {
  top: 18%;
  right: -20px;
}

.note-two {
  right: -32px;
  bottom: 17%;
}


/* =========================================================
 *  INTRO
 = *======================================================== */

.intro {
  padding: 85px 0;

  border-top:
  1px solid var(--line);

  border-bottom:
  1px solid var(--line);

  background: var(--surface);
}

.intro p {
  max-width: 850px;

  margin: 0;

  font-family:
  "Manrope",
  sans-serif;

  font-size:
  clamp(30px, 4.2vw, 50px);

  line-height: 1.12;

  letter-spacing: -.035em;
}

.intro strong {
  color: var(--accent);
}


/* =========================================================
 *  SECTIONS
 = *======================================================== */

.section {
  padding: 110px 0;
}

.section-header {
  max-width: 700px;

  margin-bottom: 55px;
}

.section-title {
  margin: 0;

  font-family:
  "Manrope",
  sans-serif;

  font-size:
  clamp(34px, 5vw, 54px);

  line-height: 1.05;

  letter-spacing: -.04em;
}

.section-description {
  max-width: 650px;

  margin: 20px 0 0;

  color: var(--muted);

  font-size: 15px;
}


/* =========================================================
 *  SERVICES
 = *======================================================== */

.services-grid {
  display: grid;

  grid-template-columns:
  repeat(3, 1fr);

  gap: 20px;
}

.service-card {
  min-height: 290px;

  padding: 30px;

  background: var(--surface);

  border:
  1px solid var(--line);

  border-radius: 14px;

  transition:
  transform .25s ease,
  border-color .25s ease,
  box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);

  border-color: var(--accent);

  box-shadow:
  0 18px 45px rgba(30, 55, 48, .08);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  margin-bottom: 55px;

  border-radius: 8px;

  background: var(--accent-2);

  color: var(--accent);

  font-size: 11px;
  font-weight: 800;
}

.service-card h3 {
  margin: 0;

  font-family:
  "Manrope",
  sans-serif;

  font-size: 22px;

  line-height: 1.15;
}

.service-card p {
  margin: 14px 0 0;

  color: var(--muted);

  font-size: 13px;
}

.service-tag {
  display: inline-block;

  margin-top: 24px;

  padding: 5px 9px;

  border-radius: 999px;

  background: var(--surface-2);

  color: var(--muted);

  font-size: 10px;
  font-weight: 700;
}


/* =========================================================
 *  ABOUT
 = *======================================================== */

.about {
  background: var(--surface);
}

.about-grid {
  display: grid;

  grid-template-columns:
  .9fr
  1.1fr;

  gap: 90px;

  align-items: start;
}

.about-description {
  margin: 0;

  color: var(--muted);

  font-size: 15px;
}

.principles {
  display: grid;

  grid-template-columns:
  repeat(2, 1fr);

  gap: 14px;

  margin-top: 35px;
}

.principle {
  padding: 18px;

  border-top:
  1px solid var(--line);

  color: var(--text);

  font-size: 13px;
  font-weight: 600;
}


/* =========================================================
 *  PROCESS
 = *======================================================== */

.process-grid {
  display: grid;

  grid-template-columns:
  repeat(4, 1fr);

  gap: 0;
}

.process-step {
  position: relative;

  padding: 0 28px 0 0;
}

.process-step:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 16px;
  right: 28px;

  width: calc(100% - 75px);
  height: 1px;

  background: var(--line);
}

.process-number {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  margin-bottom: 25px;

  border-radius: 50%;

  background: var(--accent-2);

  color: var(--accent);

  font-size: 11px;
  font-weight: 800;
}

.process-step h3 {
  margin: 0;

  font-family:
  "Manrope",
  sans-serif;

  font-size: 18px;
}

.process-step p {
  margin: 10px 0 0;

  color: var(--muted);

  font-size: 12px;
}


/* =========================================================
 *  CONTACT
 = *======================================================== */

.contact {
  padding-bottom: 120px;
}

.contact-box {
  display: grid;

  grid-template-columns:
  1fr
  .8fr;

  gap: 70px;

  padding: 65px;

  background: var(--accent-2);

  border-radius: 18px;

  border:
  1px solid var(--line);
}

.contact-box .section-title {
  max-width: 650px;
}

.contact-description {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
}


/* =========================================================
 *  FOOTER
 = *======================================================== */


.site-footer {
  background: var(--accent-2);
  border-top: 1px solid var(--line);
}


.footer {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.footer a {
  color: var(--text);
}

/* =========================================================
 *  FOCUS / ACCESSIBILITY
 = *======================================================== */

a:focus-visible,
button:focus-visible {
  outline:
  3px solid var(--accent);

  outline-offset: 3px;
}


/* =========================================================
 *  MOBILE
 = *======================================================== */

@media (max-width: 900px) {

  .nav {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;

    top: 70px;
    left: 24px;
    right: 24px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 14px;

    background: var(--surface);

    border:
    1px solid var(--line);

    border-radius: 12px;

    box-shadow:
    0 18px 45px rgba(30, 55, 48, .12);
  }

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

  .nav-links > a {
    padding: 12px 10px;
  }

  .nav-links > a.active::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: 5px;

    text-align: center;
  }

  .language-selector {
    justify-content: center;

    margin: 12px 0;
  }

  .theme-toggle {
    align-self: center;

    margin: 5px 0 3px;
  }

  .hero {
    padding:
    75px 0
    70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .note-one {
    right: -8px;
  }

  .note-two {
    right: -8px;
  }

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

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 35px;
  }

  .about-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;

    gap: 45px 25px;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .contact-box {
    grid-template-columns: 1fr;

    gap: 35px;

    padding: 45px;
  }
}


/* =========================================================
 *  SMALL MOBILE
 = *======================================================== */

@media (max-width: 600px) {

  .container {
    width: min(
      var(--container),
               calc(100% - 32px)
    );
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    top: 66px;

    left: 16px;
    right: 16px;
  }

  .hero {
    padding:
    60px 0
    55px;
  }

  .hero h1 {
    font-size:
    clamp(38px, 12vw, 54px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;

    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .hero-trust {
    gap: 10px 16px;
  }

  .browser-content {
    min-height: 290px;

    padding: 30px;
  }

  .browser-content h2 {
    font-size: 34px;
  }

  .floating-note {
    display: none;
  }

  .intro {
    padding: 65px 0;
  }

  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 38px;
  }

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

  .process-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .process-step {
    padding: 0;
  }

  .contact {
    padding-bottom: 80px;
  }

  .contact-box {
    padding: 32px 25px;

    border-radius: 14px;
  }

  .footer {
    min-height: auto;

    flex-wrap: wrap;

    padding-top: 25px;
    padding-bottom: 25px;
  }
}
