/* ==========================================================================
   gabriel-v2 — base: tokens, reset, typography, header, buttons, footer
   ========================================================================== */

:root {
  /* Color */
  --ink: #0b0e0c;
  --ink-soft: #22262a;
  --paper: #ffffff;
  --paper-tint: #f6f8f7;
  --line: #e5e9e6;
  --line-dark: rgba(255, 255, 255, 0.1);
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --green: #10b981;
  --green-deep: #059669;
  --green-ink: #0c7a5a;
  --green-soft: rgba(16, 185, 129, 0.09);
  --pink: #ec4899;
  --orange: #f97316;
  --coral: #ff705a;
  --grad-warm: linear-gradient(92deg, #ec4899 0%, #f97316 100%);
  --grad-brand: linear-gradient(92deg, #10b981 0%, #059669 100%);
  --grad-tri: linear-gradient(92deg, #ec4899 0%, #f97316 50%, #10b981 100%);

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Manrope", "Inter", system-ui, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(72px, 9vw, 140px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }

::selection { background: rgba(16, 185, 129, 0.22); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared section scaffolding ---------- */

.section { padding-block: var(--section-pad); }

.section--tint { background: var(--paper-tint); }

.section--dark {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(16, 185, 129, 0.07), transparent 60%),
    #0b0e0c;
  color: #f4f6f5;
}

.section-head { margin-bottom: clamp(40px, 5vw, 72px); }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  max-width: 22ch;
}

.section--dark .section-title { color: #fff; }

.section-sub {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--gray-600);
  font-size: 1.0625rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 22px;
}

.eyebrow .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gray-500);
  background: #fff;
}

.eyebrow--light { color: var(--green); }
.eyebrow--light .index { border-color: var(--line-dark); background: transparent; color: rgba(255, 255, 255, 0.55); }

/* ---------- Shared section head (Selected platforms pattern) ---------- */

.sec-head {
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 52rem;
}

.sec-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral, #ff705a);
}

.sec-head__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  flex-shrink: 0;
  background: currentColor;
  border-radius: 2px;
}

.sec-head__title {
  margin: 0 0 14px;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 22ch;
  color: var(--ink, #0b0e0c);
}

.sec-head__desc {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-600, #4b5563);
}

.sec-head--on-dark .sec-head__eyebrow {
  color: var(--coral, #ff705a);
}

.sec-head--on-dark .sec-head__title {
  color: #fff;
}

.sec-head--on-dark .sec-head__desc {
  color: rgba(244, 246, 245, 0.65);
}

.sec-head--flush {
  margin-bottom: 0;
}

em { font-style: normal; color: var(--green-ink); }
.section--dark em { color: var(--green); }

/* ---------- gradient text utilities ---------- */

.text-grad,
.text-grad--warm,
.text-grad--brand {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: normal;
}

.text-grad--brand { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 14, 12, 0.22); }

.btn--brand { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.45); }
.btn--brand:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -6px rgba(16, 185, 129, 0.55); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--wide { width: 100%; }

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 100%;
  background: var(--green);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 14, 12, 0.05);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header__logo {
  display: inline-flex;
  width: 30px;
  height: 30px;
  color: var(--green-deep);
}
.site-header__logo svg { width: 100%; height: 100%; }
.site-header__logo--light { color: var(--green); }

.site-header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 1.9vw, 28px);
}

.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}

.site-header__nav a:hover { color: var(--ink); }

.site-header__nav sup {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--green-ink);
  margin-left: 2px;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}

.site-header__status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}

.site-header__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  flex-shrink: 0;
}
.site-header__burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: calc(62px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(11, 14, 12, 0.1);
  max-height: calc(100dvh - 62px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -18px, 0);
  transform-origin: top right;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.38s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.mobile-menu a {
  padding: 15px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--paper-tint);
  min-height: 48px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease;
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.11s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.14s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.17s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: 0.23s; }
.mobile-menu.is-open a:nth-child(8) { transition-delay: 0.26s; }
.mobile-menu.is-open a:nth-child(9) { transition-delay: 0.29s; }

.mobile-menu a sup {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--green-ink);
  margin-left: 4px;
}

/* ---------- footer ---------- */

.footer {
  background: #0b0e0c;
  color: rgba(244, 246, 245, 0.82);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
  align-items: start;
}

.footer__brand p {
  margin-top: 18px;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 36ch;
  color: rgba(244, 246, 245, 0.6);
}

.footer__brand .site-header__name { color: #fff; }

.footer__cta {
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid rgba(244, 246, 245, 0.22);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.footer__cta:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(16, 185, 129, 0.08);
}

.footer__col { display: flex; flex-direction: column; gap: 12px; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 246, 245, 0.45);
  margin-bottom: 6px;
}

.footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 12px;
}

.footer__col a {
  font-size: 0.9375rem;
  color: rgba(244, 246, 245, 0.78);
  transition: color 0.25s var(--ease);
  width: fit-content;
}

.footer__col a:hover { color: var(--green); }

.footer__col a sup {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--green);
  margin-left: 2px;
}

.footer__email {
  font-size: 1rem;
  font-weight: 600;
  color: #fff !important;
}

.footer__email:hover { color: var(--green) !important; }

.footer__loc {
  font-size: 0.9375rem;
  color: rgba(244, 246, 245, 0.5);
}

.footer__contact { gap: 14px; }

.footer__presence {
  gap: 10px;
}

.footer__presence-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.footer__presence-list li {
  position: relative;
  padding-left: 17px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(244, 246, 245, 0.82);
}

.footer__presence-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.footer__presence > p,
.footer__rates p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(244, 246, 245, 0.52);
}

.footer__rates {
  margin-top: 5px;
  border-top: 1px solid rgba(244, 246, 245, 0.1);
  padding-top: 11px;
}

.footer__rates summary {
  width: fit-content;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(244, 246, 245, 0.82);
  transition: color 0.25s var(--ease);
}

.footer__rates summary:hover,
.footer__rates[open] summary {
  color: var(--green);
}

.footer__rates p {
  max-width: 34ch;
  padding-top: 10px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: rgba(244, 246, 245, 0.5);
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ---------- back to top ---------- */

.back-to-top {
  position: fixed;
  right: max(clamp(16px, 3vw, 28px), env(safe-area-inset-right, 0px));
  bottom: max(clamp(16px, 3vw, 28px), env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 18px;
  border-radius: 999px;
  background: #0b0e0c;
  color: #fff;
  border: 1px solid rgba(244, 246, 245, 0.12);
  box-shadow: 0 12px 32px rgba(11, 14, 12, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible[hidden] {
  display: inline-flex;
}

.back-to-top__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-to-top__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  color: var(--green);
}

.back-to-top__icon svg {
  width: 14px;
  height: 14px;
}

.back-to-top:hover {
  background: #121612;
  border-color: rgba(16, 185, 129, 0.45);
}

.back-to-top:hover .back-to-top__icon {
  background: var(--green);
  color: #0b0e0c;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (min-width: 1025px) and (max-width: 1360px) {
  .site-header {
    gap: 14px;
    padding-inline: 24px;
  }

  .site-header__nav {
    gap: clamp(11px, 1.35vw, 18px);
  }

  .site-header__nav a {
    font-size: 0.8rem;
  }

  .site-header__status {
    display: none;
  }

  .site-header__right {
    gap: 10px;
  }

  .site-header__cta {
    padding: 11px 20px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1024px) {
  .site-header {
    gap: 12px;
    padding-inline: max(16px, var(--gutter));
  }

  .site-header__nav { display: none; }
  .site-header__status { display: none; }
  .site-header__burger { display: inline-flex; }
  .site-header__right { gap: 10px; margin-left: auto; }
  .site-header__cta { padding: 9px 14px; font-size: 0.8125rem; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-header__name { font-size: 0.9375rem; }
  .site-header__cta { display: none; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__nav-grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }

  .back-to-top__label { display: none; }
  .back-to-top { padding: 12px; min-width: 48px; min-height: 48px; justify-content: center; }
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
