/* ===========================
   SELF-HOSTED FONTS (WOFF2 variable)
   =========================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/static/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Dark palette */
  --black: #0a0a0a;
  --off-black: #111111;
  --surface: #161616;
  --surface-hover: #1c1c1c;
  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.15);

  /* Accent */
  --accent: #E8FF47;
  --accent-dim: rgba(232, 255, 71, 0.08);
  --accent-hover: #ffba47;
  --accent-dark: #7a8c17;
  --accent-deep: #384412;

  /* Brand blue (kept for logo border) */
  --color-primary: #254b7c;
  --color-primary-dark: #1b385e;

  /* Text */
  --text-primary: #f0ede6;
  --text-secondary: #888880;
  --text-content: #c0c0b9;
  --text-muted: #444440;

  --menu-font-size: 1rem;
}

/* ===========================
   BASE RESET
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  scrollbar-gutter: stable;
}

body.site-body {
  background-color: var(--black);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Fixed background via pseudo-element (avoids forced reflows from background-attachment: fixed) */
body.site-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.5)), url('../images/abstract_dark_bg_2sm.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

::selection {
  background-color: var(--accent);
  color: var(--black);
}

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

ul {
  list-style: none;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* Adjust the 100px to match your actual header height */
[id] {
  scroll-margin-top: 130px;
}

/* ===========================
   GENERAL LAYOUTS & UTILITIES
   =========================== */
.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Scroll-driven reveal animation (CSS-only, no JS needed) */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: reveal-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Fallback for browsers without scroll-driven animation support (e.g. Safari) */
@supports not (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Solid dark accent text */
.text-accent-dark {
  color: var(--accent-dark);
}

.text-white {
  color: #ffffff;
}

/* Uderline */
.text-under {
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-color: #ececeb;
}

/* Gradient text — accent green */
.gradient-text {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(135deg, var(--accent), #b8cc38);
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  overflow: visible;
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 3rem;
  }
}

.logo-link {
  display: block;
  transition: opacity 0.2s, filter 0.3s ease;
  position: relative;
  z-index: 60;
}

.logo-link:hover {
  opacity: 1;
  filter: hue-rotate(-22deg) brightness(0.95) saturate(0.9);
}

.logo-img {
  height: 4.8rem;
  width: auto;
  border-radius: 0.375rem;
  position: relative;
  top: 0.8rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.9));
}


.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 767px) {
  .desktop-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform-origin: top;
    gap: 0;
  }

  .desktop-nav.hidden {
    display: none;
  }
}

.dropdown-group {
  position: relative;
}

.nav-link {
  font-size: var(--menu-font-size);
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link:focus {
  outline: none;
}

.nav-link:hover {
  color: var(--text-primary);
}

.dropdown-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

.dropdown-group:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.dropdown-group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  display: flex;
  width: 480px;
  position: relative;
}

.mega-menu-inner::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border-bright);
  border-top: 1px solid var(--border-bright);
}

.mega-menu-column {
  flex: 1;
  padding: 0 1.25rem;
}

.mega-menu-heading {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.mega-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mega-menu-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
  transition: color 0.2s;
  display: block;
}

.mega-menu-link:hover {
  color: var(--text-primary);
}

.get-started-btn {
  display: none;
  background: var(--accent);
  color: var(--black);
  padding: 0.625rem 1.5rem;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  box-shadow: none;
}

.get-started-btn:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.menu-trigger {
  padding: 0.5rem;
  color: var(--text-primary);
  border-radius: 0;
  transition: color 0.2s;
}

.menu-trigger:hover {
  color: var(--accent);
}

.menu-icon-top,
.menu-icon-mid,
.menu-icon-bot {
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Unified Mobile Adjustments for Inner Nav Elements */
@media (max-width: 767px) {
  .nav-link {
    padding: 1rem 0;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 500;
  }

  .dropdown-group {
    width: 100%;
  }

  /* Expand mega menu inherently on mobile */
  .dropdown-menu.mega-menu,
  .dropdown-group:hover .dropdown-menu.mega-menu {
    position: relative;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    top: auto;
    left: auto;
  }

  .mega-menu-inner {
    padding: 0;
    width: 100%;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .mega-menu-inner::before {
    display: none;
  }

  .mega-menu-column {
    padding: 0;
  }

  .mega-menu-heading {
    display: none;
    /* Hide internal categorizations on mobile */
  }

  .mega-menu-link {
    padding: 1rem 0 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    display: block;
    width: 100%;
  }

  .mega-menu-list li:last-child .mega-menu-link {
    border-bottom: none;
    /* Let the next outer nav-link handle the border if needed, or keep unified */
  }

  .get-started-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform-origin: top;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-link {
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--text-primary);
}

.mobile-sub-link {
  padding-left: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.mobile-sub-link::before {
  content: '—';
  margin-right: 0.5rem;
  color: var(--accent);
}

.mobile-sub-link:hover {
  color: var(--text-secondary);
}

.style-btn {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  background: var(--accent);
  color: var(--black);
  padding: 1rem 1.5rem;
  border-radius: 0;
  text-align: center;
  border-bottom: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Desktop breakpoint */
@media (min-width: 768px) {
  .logo-img {
    height: 6rem;
    top: 1.2rem;
  }

  .desktop-nav.hidden {
    display: flex !important;
    /* Always show nav on desktop */
  }

  .desktop-nav {
    flex: 1;
  }

  /* Center the links by balancing auto-margins */
  .desktop-nav>.dropdown-group:first-child {
    margin-left: auto;
  }

  .get-started-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .menu-trigger {
    display: none;
  }
}

/* Scrolled Header — dark frosted glass */
header.scrolled {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-bright);
}

header.scrolled .nav-link {
  color: var(--text-secondary) !important;
}

header.scrolled .nav-link:hover {
  color: var(--text-primary) !important;
}

header.scrolled .menu-trigger {
  color: var(--text-primary) !important;
}

header.scrolled .get-started-btn {
  background: var(--accent) !important;
  color: var(--black) !important;
}

header.scrolled .get-started-btn:hover {
  background: var(--accent-hover) !important;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .btn {
    padding: 1rem 2.25rem;
    font-size: 0.875rem;
  }
}

.btn-primary.dark {
  background: var(--accent);
  color: var(--black);
  box-shadow: none;
}

.btn-primary.dark:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}



/* ===========================
   MAIN LAYOUT
   =========================== */
.site-main {
  flex-grow: 1;
  padding-top: 4.5rem;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 0 5rem;
  text-align: left;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Radial accent glow */
.hero-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse 60% 50% at center, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid lines */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  width: 100%;
  max-width: 80rem;
  padding: 0 1.5rem;
  margin: 0 auto;
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Custom WebApp Hero Layout */
.hero-webapp-grid .spotlight-content {
  order: 1;
}

.hero-webapp-grid .bento-visual {
  order: 2;
}

@media (min-width: 1024px) {
  .hero-webapp-grid.spotlight-grid {
    grid-template-columns: 1.5fr 0.5fr;
    gap: 6rem;
    align-items: flex-start;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border-bright);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  box-shadow: none;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(235, 144, 9, 0.6);
  box-shadow: 0 0 8px rgba(231, 61, 75, 0.6);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: +0.02em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.title-line-1 {
  display: block;
  margin-bottom: 0.25em;
  /* Increases spacing to the line below */
}

.title-line-2 {
  display: block;
  white-space: nowrap;
}

.hero-seo-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-seo-title {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-content);
  font-weight: 300;
  text-align: justify;

  /*max-width: 32rem;*/
  margin: 0 0 3rem 0;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: flex-end;
  align-items: flex-end;
}

.hero-actions .btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .hero-actions .btn {
    padding: 1rem 2.25rem;
    font-size: 0.875rem;
  }
}

.hero-visual-wrapper {
  margin-top: 5rem;
  width: 100%;
  max-width: 72rem;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-wrapper:hover {
  transform: translateY(-4px);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 21 / 9;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.85) contrast(1.1);
}

.hero-visual-wrapper:hover .hero-img {
  transform: scale(1.03);
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black), transparent 60%);
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-section {
  padding: 3rem 0 2rem 0;
  background: transparent;
}

@media (min-width: 768px) {
  .services-section {
    padding: 4rem 0 3rem 0;
  }
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  padding: 1rem 0 1.5rem;
  color: var(--text-content);
  font-weight: 300;
  max-width: 90rem;
  /* Kept it a bit tighter for better reading length */
  line-height: 1.7;
  text-align: justify;
}

.section-subtitle.no-padding {
  padding-top: 0;
  padding-bottom: 3rem;
}

.subtitle-list {
  list-style: none;
  padding: 0 0 2.5rem;
  margin: 0;
  max-width: 60rem;
}

@media (min-width: 768px) {
  .subtitle-list {
    padding-left: 3rem;
    padding-top: 3rem;
  }
}

.subtitle-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-content);
  font-size: 1.05rem;
  line-height: 1.6;
}

.subtitle-list .list-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 0.2rem;
}

.subtitle-list .icon-tiny {
  width: 1.25rem;
  height: 1.25rem;
}

.subtitle-list .list-content strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

/* Services Intro Grid (list + image) */
.services-intro-grid .bento-visual {
  order: 2;
}

@media (min-width: 1024px) {
  .services-intro-grid.spotlight-grid {
    grid-template-columns: 1.5fr 0.5fr;
    gap: 4rem;
    align-items: center;
  }
}

/* ===========================
   BENTO GRID
   =========================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  grid-auto-rows: minmax(320px, auto);
  background: var(--border);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bento-card {
  border-radius: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: transparent;
  transition: background 0.3s;
}

.bento-card:hover {
  background: var(--surface-hover);
  transform: none;
  box-shadow: none;
}

/* Bento spans */
.bento-wide {
  grid-column: span 1;
}

.bento-tall {
  grid-column: span 1;
}

.bento-square {
  grid-column: span 1;
}

.bento-full {
  grid-column: 1 / -1;
}

.bento-portrait {
  grid-row: span 2;
}

@media (min-width: 768px) {
  .bento-wide {
    grid-column: span 2;
  }

  .bento-tall {
    grid-column: span 1;
  }

  .bento-full {
    grid-column: span 3;
  }
}

@media (min-width: 1024px) {
  .bento-tall {
    grid-column: span 2;
  }

  .bento-full {
    grid-column: span 4;
  }
}

/* Bento colour variants — all dark */
.bento-light {
  background: var(--surface);
  border: none;
  box-shadow: none;
}

.bento-dark {
  background: var(--off-black);
  color: var(--text-primary);
}

.bento-white {
  background: var(--surface);
}

.bento-gray {
  background: var(--off-black);
}

.border-stroke {
  border: none;
}

.bento-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  z-index: 10;
  position: relative;
  color: #b8cc38;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.bento-visual {
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--accent-dark);
}

.bento-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-visual-img {
  transform: scale(1.05);
}

.bento-desc {
  color: #fbfdf2;
  font-weight: 300;
  z-index: 10;
  position: relative;
  text-align: justify;
  line-height: 1.65;
  font-size: 0.9375rem;
}


.bento-icon-box {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  margin-top: 1.5rem;
  border-radius: 0;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 255, 71, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: none;
  transition: all 0.6s ease;
  color: var(--accent);
}

.bento-icon-box.small {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 1rem;
}

.bento-icon-box.small .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.bento-card:hover .bento-icon-box {
  background: var(--accent-hover);
  color: var(--black);
  border-color: var(--accent-hover);
  transform: none;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-dark {
  color: var(--accent);
}

.glass {
  background: rgba(232, 255, 71, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 255, 71, 0.1);
}

.glass.right {
  margin-left: auto;
}

.bento-deco.glow {
  position: absolute;
  bottom: -6rem;
  right: -6rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(232, 255, 71, 0.06), transparent);
  border-radius: 50%;
  filter: blur(3rem);
  opacity: 0.5;
  transition: opacity 0.5s;
}

.bento-card:hover .bento-deco.glow {
  opacity: 1;
}

.bento-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--off-black), var(--black));
}

.bento-flex-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
}

@media (min-width: 768px) {
  .bento-flex-row {
    flex-direction: row;
    align-items: center;
  }
}

.md-heading {
  font-size: 1.375rem;
}

.sm-desc {
  font-size: 0.8125rem;
}

.lg-desc {
  font-size: 1rem;
}

.emoji-box {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 255, 71, 0.12);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.bento-link {
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.2s;
}

.bento-card:hover .bento-link {
  gap: 0.625rem;
  text-decoration: none;
}

.icon-small {
  width: 1rem;
  height: 1rem;
}

.bento-heading.large {
  font-size: 2.25rem;
}

.max-w {
  max-width: 42rem;
}

.bento-deco.horizontal-fade {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover .bento-deco.horizontal-fade {
  opacity: 1;
}

.bento-deco.horizontal-fade-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover .bento-deco.horizontal-fade-bottom {
  opacity: 1;
}

.bento-deco.graphic {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translate(25%, 25%);
  width: 10rem;
  height: 10rem;
  opacity: 0.04;
  color: var(--accent);
  transition: transform 0.7s, opacity 0.7s;
}

.bento-card:hover .bento-deco.graphic {
  transform: translate(25%, 25%) scale(1.1);
  opacity: 0.1;
}

/* ===========================
   STATS
   =========================== */
.stats-section {
  padding: 5rem 0;
  background: transparent;
}

@media (min-width: 768px) {
  .stats-section {
    padding: 5rem 0;
  }
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

.stat-item {
  flex: 1;
  width: 100%;
  padding: 2rem 1.5rem;
  border-radius: 0;
  transition: background 0.2s;
}

.stat-item:hover {
  background: var(--surface);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 4rem;
  }
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.stat-divider {
  width: 60%;
  height: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .stat-divider {
    width: 1px;
    height: 5rem;
    background: var(--border);
  }
}

/* ===========================
   SPOTLIGHT
   =========================== */
.spotlight-section {
  background: transparent;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .spotlight-section {
    padding: 3rem 0;
  }
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

.spotlight-content {
  order: 2;
}

@media (min-width: 1024px) {
  .spotlight-content {
    order: 1;
  }
}

.spotlight-visual-box {
  background: var(--off-black);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 0;
}

.spotlight-img-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  filter: brightness(0.9) contrast(1.1) drop-shadow(0 0 20px rgba(232, 255, 71, 0.1));
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 1.50rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .spotlight-title {
    font-size: 1.75rem;
  }
}

.spotlight-subtitle {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-align: justify;
}

.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spotlight-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.spotlight-list-item:hover {
  background: var(--surface);
  padding-left: 1rem;
  padding-right: 1rem;
}

.spotlight-list-item.no-border {
  border-bottom: none;
}

.spotlight-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-muted);
  box-shadow: none;
  transition: all 0.2s;
}

.spotlight-list-item:hover .spotlight-number {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.spotlight-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.spotlight-desc {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: justify;
}

.spotlight-visual {
  order: 1;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--accent-dark);
  padding: 0.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--black);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 85%;
  margin: 0 auto;
}



@media (min-width: 1024px) {
  .spotlight-visual {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle inner border for depth */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-visual:hover .spotlight-img {
  transform: scale(1.05);
}

.spotlight-overlay-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  padding: 1.25rem;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  box-shadow: none;
  display: block;
}

@media (max-width: 768px) {
  .spotlight-overlay-card {
    padding: 1.25rem;
    font-size: 1em;
    bottom: 1.1rem;
    left: 1.1rem;
    right: 1.1rem;
    line-height: 1.5;
  }
}

.check-green {
  color: var(--accent);
}


/* ===========================
   FAQ
   =========================== */
.faq-section {
  background: transparent;
  padding: 0 0 4rem 0;
}

@media (min-width: 768px) {
  .faq-section {
    padding: 0 0 5rem 0;
  }
}

.faq-container {
  max-width: 56rem;
  margin: 0 auto;
}

.section-header.center {
  text-align: center;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: rgba(10, 10, 10, 0.8);
  /* Semi-transparent to reveal background */
  overflow: hidden;
  transition: background 0.2s;
  backdrop-filter: none;
}

.faq-item:hover {
  background: var(--surface);
}

.faq-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  list-style: none;
}

/* Remove default summary marker */
.faq-btn::-webkit-details-marker {
  display: none;
}

.faq-btn::marker {
  display: none;
  content: '';
}

.faq-question {
  font-weight: 500;
  font-size: 1.0625rem;
  padding-left: 1.5rem;
  padding-right: 2rem;
  color: var(--text-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  border: 1px solid var(--border-bright);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
  margin-right: 1.5rem;
}

/* Open state — rotate icon */
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===========================
   LEGAL / PRIVACY PAGE
   =========================== */
.legal-page {
  padding-top: 5rem !important;
  /* Balanced gap under fixed header */
}

.legal-page .section-header {
  margin-bottom: 1rem;
}

.legal-content {
  padding: 0;
  max-width: 56rem;
}

@media (max-width: 767px) {
  .legal-page .faq-container {
    padding: 0 1.5rem;
  }
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--accent);
}

.legal-content h2.legal-heading {
  margin-top: 3rem;
}

.legal-content h3.legal-subheading {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.25rem;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--black);
  color: var(--text-primary);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    padding: 0 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 3rem 0;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-brand {
    grid-column: span 2;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align brand to the right */
    text-align: right;
  }
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s, filter 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 1;
  filter: hue-rotate(-22deg) brightness(0.95) saturate(0.9);
}

.footer-logo-img {
  height: 3.5rem;
  width: auto;
  border-radius: 0.375rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 22rem;
  text-align: justify;
}

@media (min-width: 1024px) {
  .footer-desc {
    margin-right: 0;
  }
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
}

.social-btn:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.social-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-links-col {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-links-col {
    grid-column: span 3;
  }
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link.inline {
  display: inline-block;
}

.footer-newsletter {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-newsletter {
    grid-column: span 3;
  }
}

.footer-subtitle {
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: border-color 0.2s;
  outline: none;
  font-size: 0.875rem;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.btn-subscribe {
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  width: max-content;
  transition: all 0.2s;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-subscribe:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ===========================
   MODAL & FORM
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-container {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(0) scale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.hidden .modal-container {
  transform: translateY(20px) scale(0.98);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.modal-close-btn {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  padding: 0.25rem;
}

.modal-close-btn:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .modal-header {
    padding: 1.5rem 2rem;
  }

  .modal-body {
    padding: 2rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input,
.form-textarea {
  background: var(--black);
  border: 1px solid var(--accent-dark);
  border-radius: 0;
  padding: 0.625rem 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Autofill Styles */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill,
.form-textarea:-webkit-autofill:hover,
.form-textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
  transition: background-color 5000s ease-in-out 0s;
  border: 1px solid var(--accent-dark);
}

.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill:focus {
  border-color: var(--accent);
  -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset, 0 0 0 1px var(--accent);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .form-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.modal-cancel-btn,
.modal-submit-btn {
  width: 100%;
}

@media (min-width: 640px) {

  .modal-cancel-btn,
  .modal-submit-btn {
    width: auto;
  }
}

/* Contact Success & Error */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeIn 0.4s ease forwards;
}

.contact-success.hidden,
.contact-form.hidden {
  display: none;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.contact-success h4 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-success p {
  color: var(--text-content);
  font-size: 1rem;
  max-width: 400px;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: right;
  width: 100%;
}

.form-error.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   COOKIE SETTINGS FAB
   =========================== */
.cookie-settings-fab {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9999;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.6);
  /* Slightly lighter background */
  color: var(--text-primary);
  /* Higher contrast color */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  /* Increased opacity */
  transition: opacity 0.4s ease, color 0.3s ease, border-color 0.3s ease,
    background 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.cookie-settings-fab svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-settings-fab:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 255, 71, 0.06);
  box-shadow: 0 0 12px rgba(232, 255, 71, 0.15);
}

.cookie-settings-fab:hover svg {
  transform: rotate(60deg);
}

.cookie-settings-fab:active svg {
  transform: rotate(120deg);
}

/* Hide the FAB when the cookie banner is visible */
.cookie-settings-fab.fab-hidden {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(8px);
}

/* Mobile — smaller and tighter to corner */
@media (max-width: 768px) {
  .cookie-settings-fab {
    width: 2rem;
    height: 2rem;
    bottom: 0.75rem;
    left: 0.75rem;
    opacity: 0.7;
  }

  .cookie-settings-fab svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cookie-settings-fab,
  .cookie-settings-fab svg {
    transition: none;
  }
}

.cookie-banner {
  will-change: transform, opacity;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(10, 10, 10, 0.95);
  /* Slightly darker/more opaque to pop more */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Brighter border for better contrast */
  padding: 1.25rem 2.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  z-index: 10000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  /* Denser shadow */
  transform: translateY(150%);
  visibility: hidden;
  opacity: 0;
}

.cookie-banner.visible {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

@media (min-width: 1024px) {
  .cookie-banner {
    max-width: 80rem;
    margin: 0 auto;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
    transition: none;
  }
}


.cookie-banner p {
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-sans);
}

.cookie-banner p a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner button {
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.25s ease;
  min-width: 130px;
}

#accept-cookies {
  background: var(--accent-hover);
  /* Reversing color logic: Orange as primary to pop */
  color: var(--black);
  border: none;
}

#accept-cookies:hover {
  background: var(--accent);
  /* Hover to Neon Yellow */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(232, 255, 71, 0.2);
}

#reject-cookies {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-bright);
}

#reject-cookies:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner button {
    flex: 1;
    min-width: 0;
    padding: 1rem;
  }
}

/* ===========================
   SERVICE PAGES & PLACEHOLDERS
   =========================== */

.image-placeholder-block {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.image-placeholder-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.015) 20px,
      rgba(255, 255, 255, 0.015) 21px);
}

.placeholder-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--border-bright);
  position: relative;
  z-index: 1;
}

.placeholder-label {
  position: relative;
  z-index: 1;
}

/* Benefits list variant */
.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 75%;
    margin: 0 auto;
  }

  .benefits-list li {
    border-right: 1px solid var(--border);
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .benefits-list li:nth-child(even) {
    border-right: none;
  }
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-content);
  font-size: 0.9375rem;
  font-weight: 300;
  transition: color 0.2s, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefits-list li:hover {
  color: var(--text-primary);
  padding-left: 0.5rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

/* Outcome grid styles */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .outcomes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.outcome-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--off-black);
  transition: border-color 0.2s, background 0.2s;
}

.outcome-item:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
}

.outcome-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* CTA band */
.cta-band {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

.cta-actions {
  align-self: center;
  justify-content: center;
}

/* Web app landing page: tighter vertical rhythm to match index flow */
.webapp-page .hero-section {
  padding: 5rem 0 2rem;
}

.webapp-page .services-section {
  padding: 0.5rem 0 1rem 0;
}

@media (min-width: 768px) {
  .webapp-page .services-section {
    padding: 1rem 0 1.5rem 0;
  }
}

.webapp-page .section-header {
  margin-bottom: 1.75rem;
}

.webapp-page .section-subtitle.no-padding {
  padding-bottom: 1rem;
}

.webapp-page .spotlight-section {
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .webapp-page .spotlight-section {
    padding: 1.5rem 0;
  }
}

.webapp-page .cta-band {
  padding: 3rem 0;
}

.why-card .why-heading {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.wad-process-section .spotlight-list-item {
  transition: background 0.2s ease;
}

.wad-process-section .spotlight-list-item:hover {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 1024px) {
  .wad-process-section .spotlight-content {
    order: 2;
  }

  .wad-process-section .spotlight-visual {
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }

  .why-grid .bento-full {
    grid-column: span 3;
  }

  #what-we-build .bento-grid {
    grid-auto-rows: minmax(180px, auto);
  }
}

/* Bento card link styling */
.bento-card-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.bento-card-link:focus-within .bento-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Custom Hint/Tooltip for Bento Cards */
[data-hint] {
  position: relative;
}

[data-hint]::after {
  content: attr(data-hint);
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: calc(100% - 7rem);
  /* Ensures it never hits the svg icon */
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(232, 255, 71, 0.15);
  color: var(--accent);
  padding: 0.7rem 1.25rem;
  font-size: 0.6rem;
  font-weight: 300;
  line-height: 1.4;
  /* Better for possible wrapping */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Left-aligned content */
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 50;
  white-space: normal;
  /* Allow wrapping if needed but try the hint length */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bento-card-link:hover [data-hint]::after,
[data-hint]:hover::after {
  opacity: 1;
  transition-delay: 0.6s;
}

@media (max-width: 768px) {
  [data-hint]::after {
    display: none;
    /* Hide tooltips on mobile for better UX */
  }
}