/* SecPath website — shared tokens, type, buttons, nav, footer.
   Values mirror the Figma variables in file AhUsIWkBGGnyFZIvzFBjia
   ("Website", "Collection", "Tailwind" and "Typography" collections). */

:root {
  /* color */
  --bg-base: #0d0c0e;
  --bg-raised: #131315;
  --bg-overlay: rgba(13, 12, 14, 0.72);
  --surface-selected: rgba(255, 255, 255, 0.06);
  --field-chip: rgba(255, 255, 255, 0.09);
  --text-primary: #ffffff;
  --text-secondary: #a4a4a4;
  --text-tertiary: #8e8e8e;
  --text-accent: #598eff;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-pending: rgba(255, 255, 255, 0.28);
  --accent: #3366ff;
  --accent-tint: rgba(51, 102, 255, 0.1);
  --blue-50: #eef4ff;
  --blue-300: #8eb6ff;
  --blue-400: #598eff;
  --blue-500: #3366ff;
  --blue-600: #1b43f5;
  --blue-700: #142fe1;
  --blue-950: #141a57;
  --green-500: #22c55e;
  --alpha-50: rgba(255, 255, 255, 0.06);
  --alpha-100: rgba(255, 255, 255, 0.09);
  --alpha-200: rgba(255, 255, 255, 0.2);
  --alpha-300: rgba(255, 255, 255, 0.28);
  --neutral-200: #e8e8e8;
  --neutral-300: #d2d2d2;
  --neutral-800: #3b3b3b;

  /* spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* grid */
  --container-max: 1440px;
  --content-max: 1200px;
  --gutter: 24px;
  --page-padding: 120px;
  --hero-top: 168px;
  --nav-h: 72px;

  /* effects (Website/Depth/*) */
  --depth-mid: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 64px rgba(0, 0, 0, 0.5);
  --menu-shadow: 0 32px 40px rgba(0, 0, 0, 0.6), 0 4px 6px rgba(0, 0, 0, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

img,
svg {
  display: block;
  max-width: none;
}

/* ---------- layout ---------- */

/* Full-bleed section; its .wrap is the 1440 Figma frame with 120px page padding. */
.sec {
  position: relative;
  width: 100%;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

/* ---------- type (Website/* text styles) ---------- */

.t-display {
  font-size: 80px;
  font-weight: 600;
  line-height: 84px;
  letter-spacing: -0.03em;
}

.t-h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.025em;
}

.t-h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 46px;
  letter-spacing: -0.02em;
}

.t-h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.01em;
}

.t-h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.005em;
}

.t-body-l {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.t-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.t-body-s {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.t-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.t-label-s {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.01em;
}

.c-primary { color: var(--text-primary); }
.c-secondary { color: var(--text-secondary); }
.c-tertiary { color: var(--text-tertiary); }
.c-accent { color: var(--text-accent); }

/* ---------- Button (component set 6771:121) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border-radius: var(--r-md);
  white-space: nowrap;
  color: var(--text-primary);
  cursor: pointer;
  border: 0;
}

.btn--l {
  padding: var(--sp-3) var(--sp-5);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.18px;
}

.btn--m {
  padding: var(--sp-2) var(--sp-4);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.16px;
}

.btn--primary { background: var(--blue-500); }
.btn--primary:hover { background: var(--blue-600); }
.btn--primary:active { background: var(--blue-700); }

.btn--secondary {
  background: var(--alpha-50);
  box-shadow: inset 0 0 0 1px var(--alpha-200);
}
.btn--secondary:hover {
  background: var(--alpha-100);
  box-shadow: inset 0 0 0 1px var(--alpha-300);
}
.btn--secondary:active {
  background: var(--alpha-50);
  box-shadow: inset 0 0 0 1px var(--alpha-200);
}

.btn--primary:focus-visible,
.btn--secondary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--blue-400);
}

.btn--link {
  padding: var(--sp-1) 0;
  color: var(--blue-400);
  background: none;
}
.btn--link.btn--l {
  padding: var(--sp-1) 0;
}
.btn--link.btn--m {
  padding: var(--sp-1) 0;
}
.btn--link:hover { color: var(--blue-300); gap: var(--sp-3); }
.btn--link:active { color: var(--blue-300); }
.btn--link:focus-visible {
  outline: none;
  padding: var(--sp-1);
  margin: calc(var(--sp-1) * -1);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 2px var(--blue-400);
}

/* Arrow icon inside Link buttons (icon/arrow-right, 18px for L, 16px for M) */
.btn__arrow {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.btn--l .btn__arrow { width: 18px; height: 18px; }
.btn--m .btn__arrow { width: 16px; height: 16px; }
.btn__arrow img {
  position: absolute;
  inset: 20.83%;
  width: 58.34%;
  height: 58.34%;
  overflow: visible;
}
.btn--l .btn__arrow img { inset: calc(20.83% - 1.71px); width: calc(58.34% + 3.43px); height: calc(58.34% + 3.43px); }
.btn--m .btn__arrow img { inset: calc(20.83% - 1.43px); width: calc(58.34% + 2.86px); height: calc(58.34% + 2.86px); }

/* ---------- Status pill · Coming soon (6795:1326) ---------- */

.pill-soon {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border: 1px dashed var(--border-pending);
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.12px;
  white-space: nowrap;
}
.pill-soon img { width: 14px; height: 14px; }

/* ---------- Product mark (6795:1317) ---------- */

.pmark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
}
.pmark img { width: 18px; height: 18px; }
.pmark--pending {
  background: none;
  border: 1px dashed var(--border-pending);
}

/* ---------- Nav · desktop (6798:1493) ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-4) var(--page-padding);
}

.logo {
  position: relative;
  display: block;
  flex-shrink: 0;
}
.logo--nav { width: 133.68px; height: 30px; }
.logo--nav .logo__mark { position: absolute; left: 0; top: 0; width: 26px; height: 30px; }
.logo--nav .logo__text { position: absolute; left: 32.91px; top: 5.6px; width: 100.77px; height: 17.113px; }
.logo--footer { width: 124.768px; height: 28px; }
.logo--footer .logo__mark { position: absolute; left: 0; top: 0; width: 24.267px; height: 28px; }
.logo--footer .logo__text { position: absolute; left: 30.72px; top: 5.23px; width: 94.052px; height: 15.971px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.nav__link img { width: 16px; height: 16px; }
.nav__link.is-current { color: var(--text-primary); }
.nav__link .chev-up { display: none; }
.nav__item.is-open > .nav__link { color: var(--text-primary); }
.nav__item.is-open > .nav__link .chev-down { display: none; }
.nav__item.is-open > .nav__link .chev-up { display: block; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav__login {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

/* Dropdown menus (Products menu 6817:2173, Resources menu 8164:12908) */
.menu {
  position: absolute;
  top: 64px;
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--menu-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.menu--products { left: 464.34px; }
.menu--resources { left: 889.34px; width: 382px; }
.nav__item.is-open > .menu { display: flex; }

.menu-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  width: 364px;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  cursor: pointer;
}
.menu--resources .menu-row { width: 100%; }
.menu-row:hover { background: var(--surface-selected); }
.menu-row__text {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 1px;
}
.menu-row__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.menu-row__head.is-muted { color: var(--text-secondary); }
.menu-row__desc {
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}
.menu-row--static { cursor: default; }
.menu-row--static:hover { background: none; }
.menu__divider {
  width: 364px;
  height: 1px;
  background: var(--border-subtle);
}
.menu__footer {
  display: flex;
  padding: var(--sp-2) 0 0 var(--sp-3);
}

/* Transparent click-to-close backdrop (8030:3394) */
.nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  background: rgba(0, 0, 0, 0.01);
}
.nav.has-open + .nav__backdrop { display: block; }

/* ---------- Footer · desktop (6817:2212) ---------- */

.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
}
.footer .wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-6);
}
.footer__top {
  display: flex;
  align-items: flex-start;
  gap: var(--gutter);
  width: 100%;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 282px;
  flex-shrink: 0;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: 14px;
  white-space: nowrap;
}
.footer__col--grow { flex: 1 0 0; min-width: 1px; }
.footer__col--hug { flex-shrink: 0; }
.footer__title {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 20px;
}
.footer__link {
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 22px;
}
.footer__tagline {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.12px;
  white-space: nowrap;
}
.footer__lang {
  display: flex;
  gap: var(--sp-4);
}

/* ---------- Nav · mobile (6798:1494) menu button ---------- */

.nav__login-m { display: none !important; }

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
}
.nav__burger img { width: 22px; height: 22px; }

/* ==========================================================================
   Responsive. Figma defines the 1440 desktop frames and the 390 "Nav · mobile";
   below 1440 the same layouts go fluid, and on small screens they stack.
   Breakpoints: laptop <=1279, tablet <=1023, phone <=767.
   ========================================================================== */

@media (max-width: 1279px) {
  :root { --page-padding: 64px; }
  .menu--products { left: auto; right: 50%; transform: translateX(30%); }
  .menu--resources { left: auto; right: var(--page-padding); }

  /* Footer: brand on its own row, the six link columns share the width evenly */
  .footer__top {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sp-6) var(--gutter);
  }
  .footer__brand { grid-column: 1 / -1; width: auto; }
}

@media (max-width: 1023px) {
  :root {
    --page-padding: 32px;
    --nav-h: 64px;
    --hero-top: 128px;
  }

  .t-display { font-size: 60px; line-height: 64px; }
  .t-h1 { font-size: 44px; line-height: 48px; }
  .t-h2 { font-size: 32px; line-height: 38px; }

  /* Nav · mobile: logo + Get SecPath + menu button; links open in a panel */
  .nav__inner {
    padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
  }
  .logo--nav { width: 106.944px; height: 24px; }
  .logo--nav .logo__mark { width: 20.8px; height: 24px; }
  .logo--nav .logo__text { left: 26.33px; top: 4.48px; width: 80.616px; height: 13.69px; }
  .nav__actions { gap: var(--sp-1); }
  .nav__login { display: none; }
  .nav__burger { display: flex; }
  .nav__links { display: none; }

  /* backdrop-filter would make the nav the containing block of the fixed panel */
  .nav.is-mobile-open {
    background: var(--bg-base);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.is-mobile-open .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--sp-4) var(--sp-7);
    overflow-y: auto;
    background: var(--bg-base);
  }
  .nav.is-mobile-open .nav__links > .nav__link,
  .nav.is-mobile-open .nav__item > .nav__link {
    width: 100%;
    padding: var(--sp-4) 0;
    font-size: 16px;
    line-height: 22px;
    border-bottom: 1px solid var(--border-subtle);
    justify-content: space-between;
  }
  .nav.is-mobile-open .menu {
    position: static;
    width: 100%;
    margin: var(--sp-2) 0;
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .nav.is-mobile-open .menu-row,
  .nav.is-mobile-open .menu__divider { width: 100%; }
  .nav.is-mobile-open .nav__login-m { display: flex !important; color: var(--text-primary); }
  .nav__backdrop { display: none !important; }

  /* Footer: brand on top, link columns in a grid */
  .footer .wrap { gap: var(--sp-7); padding-top: var(--sp-8); }
  .footer__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6) var(--gutter);
  }
  .footer__brand { grid-column: 1 / -1; width: auto; }
}

@media (max-width: 767px) {
  :root {
    --page-padding: 16px;
    --hero-top: 112px;
  }

  .t-display { font-size: 44px; line-height: 48px; }
  .t-h1 { font-size: 36px; line-height: 40px; }
  .t-h2 { font-size: 28px; line-height: 34px; }
  .t-h3 { font-size: 20px; line-height: 26px; }
  .t-body-l { font-size: 16px; line-height: 26px; }

  .btn--l { padding: var(--sp-3) var(--sp-5); }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col { white-space: normal; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
}
