/* ==========================================================================
   Singularity Hypertech — COMMON (shared across pages: tokens, reset, buttons, header, footer)
   ========================================================================== */
/* ==========================================================================
   Singularity Hypertech — Home Page
   Powered by Gravity Infosolution
   Design tokens sourced from Figma variables (get_variable_defs)
   ========================================================================== */

:root {
  /* Brand */
  --brand: #6766ff;
  --brand-2: #5f3de6;
  --brand-3: #6646eb;
  --violet: #a75de7;
  --royal: #7f62f6;
  --cyan: #46e8ff;

  /* Surfaces */
  --dark: #03020b;
  --dark-2: #070127;
  --dark-3: #0b0a1e;
  --card-dark: #0a0820;
  --light: #ffffff;
  --grey-bg: #f6f6f6;
  --grey-2: #f5f5f5;

  /* Text */
  --title-dark: #05011c; /* titles on light */
  --para-dark: #636977; /* paragraphs on light */
  --title-light: #ffffff; /* titles on dark */
  --para-light: #c7c9d4; /* paragraphs on dark */
  --para-muted: #8b8fa3;
  --stroke-light: #e1e2e5;
  --stroke-dark: rgba(255, 255, 255, 0.1);

  /* Type */
  --font:
    "Familjen Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-tight: "Inter Tight", "Inter", var(--font);
  --font-inter: "Inter", var(--font);

  /* Layout */
  --container: 1440px; /* Figma frame width; 64px gutters => 1312px content */
  --radius: 20px;
  --radius-lg: 28px;
  --gradient-btn: linear-gradient(92deg, #6646eb 0%, #8b6bff 55%, #4435ff 100%);
}

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

html {
  /* ------------------------------------------------------------------------
     TYPE SCALE — font sizes are now set in whole pixels, not rem, so they no
     longer track this root value. Edit sizes where they are declared:
       desktop  -> the component stylesheets (this file, shared.css, per page)
       tablet + mobile -> css/typography.css (loaded last on every page)
       Paragraphs / sub-content  16px / 15px / 14px   (desktop / tablet / mobile)
       Section headings          40px / 35px / 30px
     ------------------------------------------------------------------------ */
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--light);
  color: var(--title-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* NOTE: no overflow-x here on purpose — it makes <body> a scroll container,
     which breaks position:sticky for descendants (the Choose rail). The clip
     lives on <html> instead, which is the real scroll root. */
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
/* all section headings + big display numbers use Inter Tight site-wide (per Figma) */
h1,
h2,
h3,
h4,
h5,
h6,
.bento-num,
.why-num {
  font-family: var(--font-tight);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px; /* Figma gutter -> 1312px content */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}

/* Figma "Link – Variant 1": deep purple pill, hairline border, blurred glow top-left */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-inter);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: #fff;
  border-radius: 88px;
  background: linear-gradient(180deg, #3f20be, #190c4d);
  box-shadow: 0 4px 56px 3px rgba(98, 29, 237, 0.35);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: -22px;
  left: 13px;
  width: 134px;
  height: 45px;
  border-radius: 89.5px;
  background: #7f62f6;
  filter: blur(10px); /* Figma blur 18 ≈ CSS blur 9–10 */
  z-index: 2; /* sits over the label, tinting its top like Figma */
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: 0 6px 64px 6px rgba(98, 29, 237, 0.5);
}

/* Figma "Link – Variant 2": frosted white pill, hairline border, white glow top-left */
.btn-glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-inter);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: #010214;
  border-radius: 88px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7));
  box-shadow: 0 4px 56px 3px rgba(200, 176, 247, 0.2);
}
.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.btn-glass::after {
  content: "";
  position: absolute;
  top: -22px;
  left: 13px;
  width: 134px;
  height: 45px;
  border-radius: 89.5px;
  background: #fff;
  filter: blur(10px); /* Figma blur 18 ≈ CSS blur 9–10 */
  z-index: 2;
  pointer-events: none;
}
.btn-glass:hover {
  box-shadow: 0 6px 64px 6px rgba(200, 176, 247, 0.35);
}
.btn-outline {
  color: var(--title-dark);
  background: transparent;
  border: 1px solid var(--stroke-light);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--title-dark);
}
.section-head p {
  margin-top: 16px;
  color: var(--para-dark);
  font-size: 16px;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* side padding keeps the pill's rounded ends off the viewport edge at every width */
  padding: 18px 64px;
  transition: padding 0.3s ease;
}
.site-header.scrolled {
  padding: 10px 64px;
}
/* the glass bar itself — the same pill curve the menu used to have, now wrapping
   the whole header so logo, menu and CTA sit inside one frosted surface */
.nav-inner {
  max-width: 1312px;
  padding: 9px 9px 9px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px -18px rgba(0, 0, 0, 0.55);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.site-header.on-light .nav-inner {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(10, 10, 25, 0.1);
  box-shadow: 0 10px 34px -20px rgba(10, 10, 25, 0.35);
}
/* lockup is built in markup (not a flat SVG) so "Powered by" can sit under the
   wordmark instead of under the icon, and so it recolours with the theme */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 0 0 auto;
}
.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.brand-word {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  white-space: nowrap;
  transition: color 0.3s ease;
}
/* indented past the icon so it starts under "Singularity / Hypertech" */
.brand-powered {
  margin-left: 54px; /* icon 44 + 10 gap */
  font-family: var(--font-inter);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.brand-powered strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.site-header.on-light .brand-word {
  color: var(--title-dark);
}
.site-header.on-light .brand-powered {
  color: #5b5b6b;
}
.site-header.on-light .brand-powered strong {
  color: var(--title-dark);
}

.nav-pill {
  display: flex;
  gap: 4px;
  padding: 0;
  border-radius: 999px;
  background: none;
  border: 0;
  backdrop-filter: none;
}
.nav-pill a {
  color: #e9e9f2;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-pill > a:hover,
.nav-item > a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* light-section theme: dark menu text; the frosted surface lives on .nav-inner */
.site-header.on-light .nav-pill > a,
.site-header.on-light .nav-item > a {
  color: #2a2a3a;
}
.site-header.on-light .nav-pill > a:hover,
.site-header.on-light .nav-item > a:hover {
  background: rgba(10, 10, 25, 0.06);
  color: var(--title-dark);
}

/* --- dropdowns --------------------------------------------------------- */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
/* Resources has no page of its own, so its label is plain text, not a link -
   it needs to read the same as the real nav links beside it */
.nav-label {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #e9e9f2;
  cursor: default;
  transition: color 0.2s;
}
.site-header.on-light .nav-label {
  color: var(--title-dark);
}
.nav-caret {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #cfcfe0;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}
.site-header.on-light .nav-caret {
  color: #5b5b6b;
}
.nav-caret:hover,
.site-header.on-light .nav-caret:hover {
  background: none;
  color: inherit;
}
.nav-caret svg {
  width: 12px;
  height: 12px;
}
.nav-item.open .nav-caret {
  transform: rotate(180deg);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 262px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(10, 8, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
/* hover bridge, so the pointer can cross the gap without the menu closing */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu,
.nav-item.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* a little air between rows so the hover and current-page pills never
     touch and read as one merged block */
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #d8d8e6;
  white-space: normal;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-pill a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.site-header.on-light .nav-pill > a[aria-current="page"],
.site-header.on-light .nav-item > a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.07);
  color: var(--title-dark);
}
.nav-menu a[aria-current="page"] {
  background: rgba(124, 92, 255, 0.22);
  color: #fff;
}


.nav-cta {
  padding: 12px 26px;
  font-size: 15px;
}
/* the 134px Figma glow is sized for the 220px hero pills; on this 120px
   button it spread across the whole top as a flat band. Same proportion
   (~61% wide, top-left) so it reads like every other purple button. */
.nav-cta.btn-primary::after,
.news-form .btn-primary::after {
  top: -16px;
  left: 8px;
  width: 74px;
  height: 32px;
  filter: blur(8px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}
.site-header.on-light .nav-toggle span {
  background: #05011c;
}
/* hamburger -> ✕ when the menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* while the menu is open the bars stay white even over a light section */
.site-header.on-light .nav-toggle[aria-expanded="true"] span {
  background: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #010214;
  color: #fff;
  padding: 100px 0 30px;
}
.footer-grid {
  display: grid;
  /* brand + three link columns (Company and Resources share the first);
     the newsletter sits under the brand */
  /* wide brand column; the short Company/Resources links need little room */
  grid-template-columns: 1.9fr 0.7fr 1fr 1fr;
  gap: 40px 32px;
  align-items: start;
}
.footer-col-title {
  display: none; /* Figma: the white first link heads each column */
  margin: 0 0 14px;
  font-family: "Inter", var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #ffffff;
}
/* Company links with Resources stacked under them */
.footer-col-group {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-news {
  grid-column: 1;
  margin-top: -12px;
}
/* ---- brand lockup: 48px colour icon + white wordmark, no subtitle ---- */
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 44px;
}
.footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
/* indented past the 48px icon so it reads under the wordmark */
.footer-powered {
  display: none; /* Figma footer lockup has no subtitle */
  margin-left: 60px;
  font-family: var(--font-inter);
  font-size: 9px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}
.footer-powered strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}
.footer-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.footer-wordmark {
  font-family: var(--font);
  font-weight: 500;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
}
.office {
  margin-bottom: 28px;
}
.office-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #313131;
  padding: 5px 13px;
  border-radius: 33px;
  font-family: "Inter", var(--font);
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  margin-bottom: 18px;
}
.office-line {
  font-family: "Inter", var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  max-width: 440px;
}
.office-line strong {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}
/* Figma: the email line (a direct child of the brand block) is bold 16px,
   matching the phone number */
.footer-brand > .office-line {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.office-line .ic {
  flex: 0 0 auto;
  display: inline-flex;
  color: #fff;
}
.office-line .ic svg {
  width: 20px;
  height: 20px;
  display: block;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links a {
  font-family: "Inter", var(--font);
  color: #babbc4;
  font-size: 16px;
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-links ul li:first-child a {
  color: #fff;
}
.footer-links a:hover {
  color: #fff;
}
.news-label {
  font-family: "Inter", var(--font);
  color: #babbc4;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 22px;
}
.news-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
}
.news-form .field {
  flex: 1;
  display: flex;
  align-items: center;
  background: #151626;
  border-radius: 37px;
  padding: 16px;
  height: 52px;
}
.news-form input {
  flex: 1;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  outline: none;
}
.news-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
/* the Subscribe pill is the site's purple primary button (.btn-primary); this
   only fixes its height to the 52px input beside it */
.news-form .btn {
  height: 52px;
  padding: 0 30px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.social {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "Familjen Grotesk", var(--font);
  color: #8d90a5;
  font-size: 14px;
}
.social .social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #585463;
  display: grid;
  place-items: center;
  color: #fff;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.social a svg {
  width: 20px;
  height: 20px;
  display: block;
}
.social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
/* copyright line, right of the social icons */
.footer-copy {
  margin: 0;
  font-family: "Inter", var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: #8d90a5;
  text-align: right;
}
/* fixed floating back-to-top, bottom-right on every screen; fades in after scrolling */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 8, 26, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top svg {
  width: 22px;
  height: 22px;
}
.to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
}

@media (max-width: 860px) {
  .footer-copy {
    text-align: left;
  }
}
