/* SECTION: VARIABLES */
:root {
  color-scheme: dark;

  /* Colors */
  --bg-color-main: #000000;
  --text-color-primary: #f1f1f1;
  --text-color-white: #ffffff;
  --text-color-muted: rgba(255, 255, 255, 0.6);

  /* Fonts */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', 'Poppins', sans-serif;
}


/* SECTION: GLOBAL / RESET */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #000;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-color-main);
  /* Font Loading Strategy: System fonts as immediate fallback, Google Fonts swap in when loaded */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: var(--text-color-primary);
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  padding-top: 5rem;
  contain: layout style paint;
}

.fonts-loaded body {
  font-family: var(--font-primary);
}

.fonts-loaded h1,
.fonts-loaded h2,
.fonts-loaded h3,
.fonts-loaded .faq-title,
.fonts-loaded .construction-title {
  font-family: var(--font-display);
}

body::-webkit-scrollbar {
  display: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  z-index: 100;
  background: var(--bg-color-main);
  box-sizing: border-box;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  will-change: transform;
  overflow: visible;
}

.header-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1;
  grid-column: 1;
  margin: 0;
  padding: 0;
}

.logo {
  height: 19px;
  width: 259px;
  display: block;
  filter: brightness(0) invert(1);
  margin: 0;
  padding: 0;
  aspect-ratio: 259 / 37;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  font-family: var(--font-primary);
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
  width: 100%;
  position: relative;
  z-index: 1;
  grid-column: 2;
}



nav a {
  color: var(--text-color-white);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  height: 100%;
  opacity: 0.8;
  visibility: visible;
  will-change: transform;
  transform: translateZ(0);
  /* GPU acceleration */
  backface-visibility: hidden;
  flex-shrink: 0;
}

nav a:hover {
  opacity: 1;
}

main {
  text-align: left;
  font-size: clamp(0.819rem, 2.736vw, 1.638rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  flex-grow: 1;
  width: 100%;
}




.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 1px;
  /* Skinnier lines */
  background-color: #f1f1f1;
  margin: 8px 0;
  /* Increased spacing for 2-line look */
  transition: 0.3s;
}

@media screen and (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  .header-container {
    display: flex;
    /* Revert to flex on mobile for simpler spacing */
    justify-content: space-between;
    grid-template-columns: none;
  }

  nav {
    grid-column: auto;
  }

  .logo-link {
    grid-column: auto;
  }

  .mobile-menu-btn {
    grid-column: auto;
  }




  /* Fix logo resizing issues - ensure minimum size */
  .logo {
    height: 1.3rem;
    width: auto;
    max-width: 259px;
    position: relative;
    z-index: 200;
    filter: brightness(0) invert(1);
    /* Keep logo visible above menu overlay */
    aspect-ratio: 259 / 37;
    object-fit: contain;
  }

  /* Logo link transition for smooth hide/show */
  .logo-link {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  /* Hide logo when mobile menu is active */
  .logo-link.hidden {
    opacity: 0;
    visibility: hidden;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 200;
    /* Ensure button is above everything */
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    /* Cover entire screen */
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    /* Quick fade */
    z-index: 199;
    backdrop-filter: blur(5px);
    gap: 30px;
  }

  nav.active {
    opacity: 1;
    visibility: visible;
  }

  nav a {
    font-size: 1.25rem;
    margin: 0;
    height: auto;
    /* Fix inherited 100% height from desktop */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  }

  nav.active a {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* SECTION: POLICIES */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 10rem 2rem;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
}

.policy-container h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.policy-container h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
}

.policy-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(241, 241, 241, 0.8);
  font-weight: 300;
}

.policy-container ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: rgba(241, 241, 241, 0.8);
}

.policy-container li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 300;
}

.policy-container h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
}

.policy-container a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.policy-container a:hover {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .policy-container {
    padding: 2rem 1.5rem 8rem 1.5rem;
  }

  .policy-container h1 {
    font-size: 2rem;
  }

  .policy-container h2 {
    font-size: 1.25rem;
  }
}





/* SECTION: FAQ */
.faq-section {
  width: 100%;
  background-color: #000000;
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 3rem;
  padding-right: 3rem;
  min-height: calc(100vh - 5rem);
  box-sizing: border-box;
}

.faq-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.faq-left {
  width: 100%;
}

.faq-right {
  width: 100%;
}

.faq-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  letter-spacing: -0.02em;
  text-transform: none;
  text-align: left;
}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  width: 100%;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 0;
  padding-right: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  color: #ffffff;
  transition-property: opacity;
  transition-duration: 0.3s;
  transition-timing-function: ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  opacity: 0.8;
}

.faq-question:focus-visible {
  outline: none;
  background-color: transparent;
}

.faq-question:active {
  background-color: transparent;
  opacity: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition-property: transform;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}

.faq-question-text {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  font-weight: 500;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
  flex-grow: 1;
  text-align: left;
}

/* Smooth accordion animation using CSS Grid */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition-property: grid-template-rows;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
}

.faq-item.active>.faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
  min-height: 0;
}

.faq-answer p {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(0.875rem, 1.05vw, 0.95rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 1.5rem;
  padding-left: calc(18px + 0.75rem);
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
}

.faq-item.active .faq-icon svg {
  transform: rotate(180deg);
}

/* Desktop layout */
@media screen and (min-width: 768px) {
  .faq-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 4rem;
    row-gap: 0;
  }

  .faq-left {
    flex-basis: 35%;
    flex-grow: 0;
    flex-shrink: 0;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }

  .faq-right {
    flex-basis: 60%;
    flex-grow: 0;
    flex-shrink: 0;
  }
}

/* Mobile layout */
@media screen and (max-width: 767px) {
  .faq-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .faq-title {
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* SECTION: FOOTER */
footer {
  width: 100%;
  background: #000;
  padding: 1.5rem 3rem;
  margin-top: auto;
  border-top: none;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: opacity 0.3s ease;
  opacity: 0.7;
  letter-spacing: normal;
  text-transform: none;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
  footer {
    padding: 1rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* SECTION: FEATURES / BENTO GRID */
.features-section {
  width: 100%;
  background: #0a0a0a;
  padding: 6rem 3rem;
  min-height: auto;
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.features-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  font-family: var(--font-primary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  grid-auto-rows: 200px;
  grid-auto-flow: row dense;
}

.bento-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  border-color: #3f3f46;
}

.bento-typography:hover,
.bento-global:hover {
  transform: scale(1.02);
}

.bento-layouts:hover,
.bento-speed:hover,
.bento-security:hover,
.bento-mobile:hover {
  transform: scale(0.98);
}

.bento-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-text {
  margin-top: auto;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: normal;
  text-transform: none;
}

.bento-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}

.icon-inline {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Typography Card - 2x2 */
.bento-typography {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.type-tester {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-letter {
  font-family: var(--font-display);
  font-size: 6rem;
  color: #fff;
  font-weight: 500;
  display: inline-block;
  animation: typeScale 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes typeScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }
}

/* Layouts Card - 2x1 */
.bento-layouts {
  grid-column: 3 / 5;
  grid-row: 1;
}

.layout-animation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-grid {
  display: grid;
  gap: 0.375rem;
  width: 100%;
  max-width: 140px;
  height: 100%;
  transition: grid-template-columns 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  grid-template-columns: repeat(2, 1fr);
}

.layout-grid.layout-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.layout-grid.layout-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.layout-grid.layout-cols-1 {
  grid-template-columns: 1fr;
}

.layout-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  height: 20px;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Network Card - 2x2 */
.bento-global {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}

.global-network {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.globe-icon {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 10;
}

.pulse-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  animation: pulse 3s ease-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 0.8s;
}

.pulse-ring:nth-child(4) {
  animation-delay: 1.6s;
}

.pulse-ring:nth-child(5) {
  animation-delay: 2.4s;
}

.pulse-ring:nth-child(6) {
  animation-delay: 3.2s;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Speed Card - 2x1 */
.bento-speed {
  grid-column: 3 / 5;
  grid-row: 2;
}

.speed-indicator {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.speed-value {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-primary);
  letter-spacing: normal;
  text-transform: none;
}

.speed-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: normal;
  text-transform: none;
}

.speed-bar {
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.speed-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 9999px;
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.speed-bar-fill.loaded {
  width: 100%;
}

/* Security Card - 3x1 */
.bento-security {
  grid-column: 1 / 4;
  grid-row: 3;
}

.security-badge {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.shield {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.shield.active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.shield svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.shield.active svg {
  color: #fff;
}

/* Mobile Card - 3x1 */
.bento-mobile {
  grid-column: 4 / 7;
  grid-row: 3;
}

.mobile-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-icon svg {
  width: 64px;
  height: 64px;
  color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .features-section {
    padding: 4rem 1.5rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .bento-typography,
  .bento-global,
  .bento-layouts,
  .bento-speed,
  .bento-security,
  .bento-mobile {
    grid-column: span 1;
    grid-row: span 1;
  }

  .type-letter {
    font-size: 4rem;
  }
}

/* SECTION: UNDER CONSTRUCTION */
.under-construction {
  width: 100%;
  min-height: calc(100vh - 10rem);
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  padding: 6rem 3rem;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  align-self: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* When under construction is in hero position (before FAQ), reduce min-height */
main>.under-construction:first-child {
  min-height: 60vh;
}

.construction-emoji {
  font-size: 5rem;
  margin-bottom: 2rem;
}

.construction-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-color-white);
  margin: 0 auto 1rem auto;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.construction-message {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-color-muted);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .under-construction {
    padding: 4rem 1.5rem;
    min-height: calc(100vh - 8rem);
  }

  .construction-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
  }
}