/* Alliance No. 2 Font - Self-hosted */
@font-face {
  font-family: 'Alliance No. 2';
  src: url('../fonts/AllianceNo.2-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alliance No 2';
  src: url('../fonts/AllianceNo.2-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

/* Legacy variable aliases - use variables.css tokens instead */
:root {
  --primary-color: var(--color-primary);
  --secondary-color: var(--color-secondary);
  --accent-color: var(--color-accent);
  --text-gray: var(--color-text-light);
  --light-gray: var(--color-bg-light);
  --border-gray: var(--color-border);
  --hover-color: var(--color-accent-hover);
}

body {
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0.1875rem);
  -webkit-backdrop-filter: blur(0.1875rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0.40rem;
  position: fixed;
  width: calc(100% - 16rem);
  left: 8rem;
  right: 8rem;
  top: 1rem;
  z-index: 10001;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Navbar when search is open */
.navbar.search-active {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

.navbar.contact-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.navbar.search-active .nav-logo a {
  color: #fff;
}

.navbar.search-active .nav-button.nav-cta,
.navbar.search-active .nav-icon-button {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.search-active .nav-icon-button svg {
  stroke: #fff;
}

.navbar.search-active #navSearchButton {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

.navbar.search-active .nav-button.nav-cta:hover,
.navbar.search-active .nav-icon-button:hover {
  border: 1px solid #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Transform search icon to X when search is active */
.navbar.search-active #navSearchButton svg circle,
.navbar.search-active #navSearchButton svg path {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar.search-active #navSearchButton::before,
.navbar.search-active #navSearchButton::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transition: transform 0.3s ease;
}

.navbar.search-active #navSearchButton::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar.search-active #navSearchButton::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#navSearchButton {
  position: relative;
}

#navSearchButton svg circle,
#navSearchButton svg path {
  transition: opacity 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Default state - white text for video section */
.navbar .nav-logo a,
.navbar .nav-search,
.navbar .nav-menu-button {
  color: var(--secondary-color);
}

.navbar .nav-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.navbar .nav-button:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* After passing video - switch to dark text */
.navbar.past-video {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

.navbar.past-video .nav-logo a,
.navbar.past-video .nav-search,
.navbar.past-video .nav-menu-button {
  color: var(--primary-color);
}

.navbar.past-video .nav-button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.navbar.past-video .nav-button:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Alliance No 2', 'Alliance No. 2', 'Helvetica Neue', 'Arial', sans-serif !important;
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
  /* All stylistic sets combined (ss01-ss10) */
  font-feature-settings: 'ss01' 1, 'ss02' 1, 'ss03' 1, 'ss04' 1, 'ss05' 1, 'ss06' 1, 'ss07' 1, 'ss08' 1, 'ss09' 1, 'ss10' 1, 'liga' 1, 'kern' 1 !important;
  -webkit-font-feature-settings: 'ss01' 1, 'ss02' 1, 'ss03' 1, 'ss04' 1, 'ss05' 1, 'ss06' 1, 'ss07' 1, 'ss08' 1, 'ss09' 1, 'ss10' 1, 'liga' 1, 'kern' 1 !important;
  -moz-font-feature-settings: 'ss01' 1, 'ss02' 1, 'ss03' 1, 'ss04' 1, 'ss05' 1, 'ss06' 1, 'ss07' 1, 'ss08' 1, 'ss09' 1, 'ss10' 1, 'liga' 1, 'kern' 1 !important;
}

.nav-logo svg,
.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-button {
  padding: 0.5rem 3rem;
  text-decoration: none;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.15s ease;
  border: 1px solid;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-button.nav-cta {
  min-width: 240px;
  text-align: center;
  margin-right: 2rem;
  font-size: 0.95rem;
  font-weight: 900;
}

.nav-icon-button {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--primary-color);
}

.nav-icon-button:first-of-type {
  border-right: none;
}

.nav-icon-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.navbar.past-video .nav-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.navbar.past-video .nav-icon-button {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.navbar.past-video .nav-icon-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.nav-search,
.nav-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.nav-search:hover,
.nav-menu-button:hover {
  opacity: 0.7;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Search close button removed - using navbar search button as toggle */

.search-container {
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
}

.search-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.search-suggestions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.search-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-link {
  color: #ffffff;
  text-decoration: underline;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.search-link:hover {
  opacity: 0.7;
}

/* Search Results */
.search-results {
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 1rem;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.search-result-category {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.search-result-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
}

.search-result-snippet {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-no-results {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  padding: 1rem 0;
  text-align: center;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when menu is open */
html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
}

.menu-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 0;
  padding: 140px 4rem 4rem;
  min-height: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

/* Right side content - 2 rows */
.menu-right-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Top row: News + Solutions side by side */
.menu-top-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 0;
}

/* Bottom row: Case Study + Quick Links side by side */
.menu-bottom-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 0;
}

.menu-column {
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-col-nav {
  padding-left: 0;
}

.menu-col-links {
  padding-right: 0;
}

.menu-overlay.active .menu-column {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .menu-col-nav { transition-delay: 0.1s; }
.menu-overlay.active .menu-col-news { transition-delay: 0.2s; }
.menu-overlay.active .menu-col-solutions { transition-delay: 0.3s; }
.menu-overlay.active .menu-col-links { transition-delay: 0.4s; }

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.menu-overlay.active .menu-divider {
  transform: scaleX(1);
}

.menu-overlay.active .menu-col-nav .menu-divider { transition-delay: 0.15s; }
.menu-overlay.active .menu-col-news .menu-divider { transition-delay: 0.25s; }
.menu-overlay.active .menu-col-solutions .menu-divider { transition-delay: 0.35s; }
.menu-overlay.active .menu-col-links .menu-divider { transition-delay: 0.45s; }

.menu-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.active .menu-label {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay.active .menu-col-nav .menu-label { transition-delay: 0.2s; }
.menu-overlay.active .menu-col-news .menu-label { transition-delay: 0.3s; }
.menu-overlay.active .menu-col-solutions .menu-label { transition-delay: 0.4s; }
.menu-overlay.active .menu-col-links .menu-label { transition-delay: 0.5s; }

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.menu-header .menu-label {
  margin-bottom: 0;
}

.menu-view-all {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s ease;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.menu-overlay.active .menu-view-all {
  opacity: 1;
  transform: translateX(0);
}

.menu-view-all:hover {
  color: #fff;
}

/* Navigation Items */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease;
}

.menu-overlay.active .menu-nav-item {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay.active .menu-nav-item:nth-child(1) { transition-delay: 0.25s; }
.menu-overlay.active .menu-nav-item:nth-child(2) { transition-delay: 0.3s; }
.menu-overlay.active .menu-nav-item:nth-child(3) { transition-delay: 0.35s; }
.menu-overlay.active .menu-nav-item:nth-child(4) { transition-delay: 0.4s; }
.menu-overlay.active .menu-nav-item:nth-child(5) { transition-delay: 0.45s; }

.menu-nav-item:hover {
  color: rgba(255, 255, 255, 0.6);
}

.menu-nav-main {
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.menu-nav-sub {
  font-size: 2rem;
  padding-left: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.menu-nav-sub:hover {
  color: rgba(255, 255, 255, 0.5);
}

.menu-arrow {
  font-size: 1rem;
  opacity: 0.4;
  margin-right: 0.25rem;
  font-weight: 300;
}

.menu-overlay.active .menu-nav-item:nth-child(6) { transition-delay: 0.5s; }
.menu-overlay.active .menu-nav-item:nth-child(7) { transition-delay: 0.55s; }
.menu-overlay.active .menu-nav-item:nth-child(8) { transition-delay: 0.6s; }

/* Articles */
.menu-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-article {
  text-decoration: none;
  color: #fff;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-overlay.active .menu-article {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .menu-article:nth-child(1) { transition-delay: 0.35s; }
.menu-overlay.active .menu-article:nth-child(2) { transition-delay: 0.45s; }

.menu-article-date {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.menu-article h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.menu-article p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.menu-article-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.menu-article:hover .menu-article-link {
  color: #fff;
}

/* Solutions */
.menu-solutions-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-overlay.active .menu-solutions-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.menu-solutions-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.menu-solutions-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.menu-solutions-link:hover {
  color: #fff;
}

/* News Grid with Images */
.menu-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.menu-news-item {
  text-decoration: none;
  color: #fff;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-overlay.active .menu-news-item {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .menu-news-item:nth-child(1) { transition-delay: 0.35s; }
.menu-overlay.active .menu-news-item:nth-child(2) { transition-delay: 0.4s; }

.menu-news-source {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.menu-news-image {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s ease;
}

.menu-news-item:hover .menu-news-image {
  opacity: 0.8;
}

.menu-news-item h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.menu-news-item:hover h4 {
  color: rgba(255, 255, 255, 0.8);
}

.menu-news-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.menu-news-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.menu-news-item:hover .menu-news-link {
  color: #fff;
}

/* Inner Divider */
.menu-divider-inner {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.menu-overlay.active .menu-divider-inner {
  transition-delay: 0.5s;
}

/* Case Study */
.menu-case-study {
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-overlay.active .menu-case-study {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.menu-case-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.menu-case-image {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
}

.menu-case-study:hover .menu-case-image {
  opacity: 0.8;
}

/* Quick Links */
.menu-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.menu-quick-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.menu-overlay.active .menu-quick-links a {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay.active .menu-quick-links a:nth-child(1) { transition-delay: 0.5s; }
.menu-overlay.active .menu-quick-links a:nth-child(2) { transition-delay: 0.55s; }
.menu-overlay.active .menu-quick-links a:nth-child(3) { transition-delay: 0.6s; }
.menu-overlay.active .menu-quick-links a:nth-child(4) { transition-delay: 0.65s; }
.menu-overlay.active .menu-quick-links a:nth-child(5) { transition-delay: 0.7s; }
.menu-overlay.active .menu-quick-links a:nth-child(6) { transition-delay: 0.75s; }
.menu-overlay.active .menu-quick-links a:nth-child(7) { transition-delay: 0.8s; }
.menu-overlay.active .menu-quick-links a:nth-child(8) { transition-delay: 0.85s; }
.menu-overlay.active .menu-quick-links a:nth-child(9) { transition-delay: 0.9s; }

.menu-quick-links a:hover {
  color: #fff;
}

/* Navbar menu-active state */
.navbar.menu-active {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

.navbar.menu-active .nav-logo a {
  color: #fff;
}

.navbar.menu-active .nav-button.nav-cta,
.navbar.menu-active .nav-icon-button {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.menu-active .nav-icon-button svg {
  stroke: #fff;
}

.navbar.menu-active #navMenuButton {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Transform hamburger to X when menu is active */
.navbar.menu-active #navMenuButton svg line {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar.menu-active #navMenuButton::before,
.navbar.menu-active #navMenuButton::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transition: transform 0.3s ease;
}

.navbar.menu-active #navMenuButton::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar.menu-active #navMenuButton::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#navMenuButton {
  position: relative;
}

#navMenuButton svg line {
  transition: opacity 0.3s ease;
}

/* Hero Section */
.hero {
  height: 110vh;
  min-height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-bottom: 0;
  padding-bottom: 20vh; /* Push content up */
  max-width: 100vw;
}

.video-hero {
  margin-top: 0;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 110vh;
  z-index: -1;
  background-color: #1a1a1a;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 110vh;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: -1;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title-wrapper,
.hero-subtitle-wrapper {
  overflow: visible;
  position: relative;
}

.hero-title {
  font-size: 5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-top: -7rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: var(--secondary-color);
  font-family: "Alliance No. 2", "Alliance No. 1", sans-serif;
  font-feature-settings: 'ss04' 1;
}

/* Line reveal animation - each line slides up from behind invisible mask */
.title-line {
  display: block;
  overflow: hidden; /* This creates the "portal" mask */
  position: relative;
  padding-bottom: 0.05em; /* Space for descenders like g, y, p */
  margin-bottom: -0.1em; /* Reduce space between lines */
}

.title-line-inner {
  display: block;
  transform: translateY(100%); /* Start below the mask */
  animation: lineReveal 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Stagger the animation for each line */
.title-line:nth-child(1) .title-line-inner {
  animation-delay: 0.3s;
}

.title-line:nth-child(2) .title-line-inner {
  animation-delay: 0.7s;
}

.title-line:nth-child(3) .title-line-inner {
  animation-delay: 0.7s;
}

@keyframes lineReveal {
  to {
    transform: translateY(0);
  }
}

.hero-title br {
  display: block;
  height: 0;
  content: "";
}

.hero-subtitle {
  font-size: 1.55rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 300;
  animation: titleFadeUp 1.2s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero-cta.primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.hero-cta.primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.hero-cta.secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary-color);
  opacity: 0.7;
  animation: bounce 2s infinite;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-text {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.9;
  white-space: nowrap;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Content wrapper for parallax */
.content-wrapper {
  position: relative;
  z-index: 2;
  background: transparent;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Parallax spacer - removed */
.parallax-spacer {
  display: none;
}

/* Carousel Section */
.carousel-section * {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.carousel-section {
  position: relative;
  height: 110vh;
  min-height: 700px;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  flex-direction: column;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: 4rem;
  padding-bottom: 4rem;
  z-index: 2;
  transform: none;
}

.carousel-container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  flex-direction: column;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  position: relative;
  flex: 1;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
}

.carousel-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 40px;
}

.carousel-label {
  display: inline-block;
  color: #00ffff;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.carousel-header h2 {
  font-size: 1.75rem;
  color: #ffffff;
  font-weight: 300;
  line-height: 1.3;
}

.carousel-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  flex: 1;
  padding: 1rem 6rem 0;
  min-height: calc(100vh - 150px);
  height: calc(100vh - 150px);
  max-width: 100vw;
  box-sizing: border-box;
  /* Parallax - GPU optimized */
  will-change: transform;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

/* Slide Navigation Arrows - embedded in each slide */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% + 15px));
  background-color: rgba(200, 210, 220, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  color: white;
  width: 83px;
  height: 47px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.3s ease, transform 0.4s ease;
  z-index: 10;
}

.slide-nav-prev {
  left: 20px;
}

.slide-nav-next {
  right: 20px;
}

.carousel-slide:hover .slide-nav {
  opacity: 1;
  transform: translateY(-50%);
}

.slide-nav:hover {
  background-color: rgba(200, 210, 220, 0.15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transform: translateY(-50%) scale(1.02);
}

.slide-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.slide-nav svg {
  display: none;
}

/* Arrow using CSS */
.slide-nav::after {
  content: '→';
  font-size: 1.9rem;
  font-weight: 300;
  color: white;
}

.slide-nav-prev::after {
  content: '←';
}

.carousel-track {
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  flex-direction: row;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  align-items: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  height: 100%;
  gap: 24px;
  white-space: nowrap;
  flex-wrap: nowrap;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  width: max-content;
}

.carousel-slide {
  position: relative;
  flex: 0 0 calc(100vw - 15rem);
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 calc(100vw - 15rem);
  -ms-flex: 0 0 calc(100vw - 15rem);
  flex-shrink: 0;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  min-width: calc(100vw - 15rem);
  max-width: calc(100vw - 15rem);
  width: calc(100vw - 15rem);
  height: 100%;
  min-height: 500px;
  display: block;
  opacity: 1;
  transform: none;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: none;
}

.slide-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.slide-overlay {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: auto;
  bottom: auto;
  padding: 1.25rem 1.75rem;
  background: #1a1a1a;
  border-radius: 4px;
  max-width: 35%;
  width: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  height: auto;
}

.slide-category {
  display: none;
}

.slide-overlay h3 {
  color: #ffffff;
  font-size: 0.875rem;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.slide-overlay p {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
}

.slide-overlay p .nowrap {
  white-space: nowrap;
}


/* Carousel Slide Links */
.slide-link {
  display: block;
  text-decoration: none;
  height: 100%;
  width: 100%;
}

.slide-link:hover .slide-overlay h3 {
  /* No hover effect */
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.indicator:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Carousel Title Squares */
.carousel-titles {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 2rem 8rem 1rem 6.5rem; /* Align with first carousel item */
  z-index: 10;
  position: relative;
  gap: 1rem;
  /* Parallax - GPU optimized */
  will-change: transform;
}

.carousel-titles-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.title-square {
  position: relative;
  padding: 0.5rem 1.25rem;
  background-color: rgba(240, 240, 240, 0.5);
  border: 1px solid rgba(200, 200, 200, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.title-square.active {
  background-color: rgba(230, 230, 230, 0.7);
  border-color: rgba(180, 180, 180, 0.4);
}

.title-square:hover:not(.active) {
  background-color: rgba(225, 225, 225, 0.6);
  border-color: rgba(190, 190, 190, 0.4);
}

.title-text {
  position: relative;
  z-index: 2;
  color: #4a4a4a;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  opacity: 0.9;
}

.title-square.active .title-text {
  color: #2a2a2a;
  font-weight: 500;
  opacity: 1;
}

/* Progress bar implementation */
.title-square::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background-color: rgba(200, 200, 200, 0.5);
  z-index: 1;
  transition: none;
}

.title-square.active::before {
  animation: progressFill 6.435s linear forwards;
}

@keyframes progressFill {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* See All Button */
.see-all-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  border: 1px solid #d0d0d0;
  color: #666666;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  justify-self: end;
  align-self: start;
}

.see-all-button:hover {
  background-color: #f5f5f5;
  border-color: #999999;
  color: #333333;
}

/* Mission Statement Section */
.mission-statement {
  padding: 8rem 160px 12rem 160px;
  background-color: #ffffff;
}

/* Mobile sections - hidden by default on desktop */
.mission-statement-mobile,
.carousel-section-mobile,
.interactive-features-mobile,
.testimonials-section-mobile {
  display: none;
}

.mission-text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
  color: #1a1a1a;
  max-width: 100%;
  margin: 0;
  letter-spacing: -0.02em;
  transform: translateY(45px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mission-text.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Mission lines - staggered fade in animation */
.mission-line {
  display: inline;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mission-text.visible .mission-line {
  opacity: 1;
}

.mission-text.visible .mission-line-1 {
  transition-delay: 0s;
}

.mission-text.visible .mission-line-2 {
  transition-delay: 0s;
}

.mission-text.visible .mission-line-3 {
  transition-delay: 0s;
}

.mission-text .ai-driven {
  color: #b0b0b0;
  position: relative;
  display: inline;
}

.mission-text .ai-driven::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  animation: none;
}

.mission-text .ai-driven.typing::after {
  animation: revealText 0.8s steps(17, end) forwards;
}

.mission-text .four-pillar {
  color: #b0b0b0;
  font-weight: 300;
  position: relative;
  display: inline;
}

.mission-text .four-pillar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  animation: none;
}

.mission-text .four-pillar.typing::after {
  animation: revealText 0.8s steps(17, end) forwards;
}

@keyframes revealText {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

/* Interactive Features Section - Main styles in features-all.css */

/* Features Title with typing animation */
.features-title {
  font-size: 3rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 3rem 0;
  padding: 0 160px;
}

.features-title-text {
  position: relative;
  display: inline;
}

.features-title-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  animation: none;
}

.features-title-text.typing::after {
  animation: revealText 0.8s steps(14, end) forwards;
}

/* Build Section */
.build-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: 7rem;
  padding-right: 7rem;
  background-color: #ececec;
}

.build-section .container {
  max-width: 100%;
  padding-left: 3rem;
  padding-right: 3rem;
}

.build-content {
  display: flex;
  align-items: stretch;
  gap: 3rem;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.build-image {
  flex: 1;
  max-width: 50%;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
}

.build-image picture {
  width: 100%;
  height: 100%;
  display: flex;
}

.build-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-text {
  flex: 1;
  max-width: 50%;
  padding: 6rem;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 550px;
}

.build-text h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #000000;
  line-height: 1.2;
}

.build-text p {
  font-size: 1.125rem;
  padding-left: 7rem;
  padding-right: 7rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 2.5rem;
}

.learn-more-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #000000;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  align-self: center;
  text-align: center;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 160px;
  background-color: #ffffff;
  /* Removed overflow: hidden to allow carousel to extend beyond section padding */
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 400;
  text-align: left;
  margin: 0 0 3rem 0;
  color: #000000;
  position: relative;
  overflow: visible;
  white-space: nowrap;
  min-height: 3.5rem;
}

.testimonials-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0px;
  right: 0;
  height: 1px;
  background-color: #e0e0e0;
}

/* Cursor styles removed */

.testimonials-carousel {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex: 0 0 320px;
  background-color: #f5f5f5;
  padding: 1.5rem;
  height: 450px;
  position: relative;
  transition: transform 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 45px) 0, 100% 45px, 100% 100%, 0 100%);
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.company-name {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  text-transform: uppercase;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.4;
  color: #6a6a6a;
  font-style: normal;
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  opacity: 1;
  transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  quotes: '"' '"';
}

.testimonial-author {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.01s ease, transform 0.01s ease;
}

.author-name {
  font-size: 1.15rem;
  line-height: 1.4;
  color: #1a1a1a;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 1.15rem;
  line-height: 1.4;
  color: #6a6a6a;
  font-weight: 400;
}

.testimonial-card:hover .testimonial-text {
  top: 4rem;
  bottom: auto;
  color: #1a1a1a;
}

.testimonial-card:hover .testimonial-author {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

/* Platforms Section */
.platforms {
  padding: 5rem 0;
  background-color: #ffffff;
}

.platforms h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.platform-card {
  border: 1px solid var(--border-gray);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: var(--secondary-color);
}

.platform-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.1);
}

.platform-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.platform-card > p:first-of-type {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.platform-description {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.platform-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.platform-link:hover {
  color: var(--hover-color);
}

/* Recognition Section */
.recognition {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.recognition h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.recognition-content {
  text-align: center;
}

.recognition-item {
  margin-bottom: 3rem;
}

.recognition-item h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.recognition-item p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

.recognition-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-gray);
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 160px;
  background-color: #ffffff;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-box {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.cta-demo {
  background-color: #e0e0e0;
  color: #000000;
}

.cta-build {
  background-color: #2a2a2a;
  color: #ffffff;
}

.cta-text {
  font-size: 2.5rem;
  font-weight: 400;
}

.cta-arrow {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.cta-box:hover .cta-arrow {
  transform: translateX(10px);
}

.cta-demo:hover {
  background-color: #d0d0d0;
}

.cta-build:hover {
  background-color: #1a1a1a;
}

/* Footer */
.footer {
  background-color: #ffffff;
  color: #000000;
  padding: 4rem 160px 2rem;
  border-top: 1px solid #e0e0e0;
}

.footer .container {
  max-width: 1400px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-align: left;
}

.footer-column {
  flex: 1;
  min-width: 0;
}

.footer-info {
  flex: 0 0 250px;
}

.copyright {
  font-size: 0.875rem;
  margin: 0;
  color: #666;
}

.rights {
  font-size: 0.875rem;
  margin: 0;
  color: #666;
}

.footer-spacer {
  height: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.cookies-settings,
.footer-email {
  display: inline-block;
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
}

.cookies-settings:hover,
.footer-email:hover {
  text-decoration: underline;
}

.region-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.region-selector span {
  font-size: 0.875rem;
  cursor: pointer;
}

.region-selector span:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid #000000;
  border-radius: 20px;
  text-decoration: none;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: #666666;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
  opacity: 0.7;
}

/* Tablet styles */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .mission-statement,
  .cta-section,
  .footer {
    padding-left: 80px;
    padding-right: 80px;
  }

  .testimonials-section {
    padding: 5rem 0;
  }

  .testimonials-title {
    padding: 1rem 80px 0 80px;
  }

  .testimonials-title::before {
    left: 80px;
  }

  .build-section {
    padding: 5rem 80px;
  }

  .testimonials-carousel {
    padding: 2rem 80px;
  }
}

/* Desktop layout */
@media (min-width: 64.0625rem) {
  .footer-content {
    display: flex;
    flex-direction: row;
  }
}

/* Feature desktop layout now in features-all.css */

/* Responsive Design */
@media (max-width: 87.5rem) {
  .mission-statement {
    padding: 4rem 80px 8rem 80px;
  }
}

@media (max-width: 64rem) {
  .mission-statement {
    padding: 4rem 40px 6rem 40px;
  }

  .mission-text {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .mission-statement {
    padding: 3rem 20px 5rem 20px;
  }
}

@media (max-width: 767.98px) {
  .carousel-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .carousel-header h2 {
    font-size: 1.75rem;
  }

  .carousel-wrapper {
    padding: 0 20px;
  }

  .carousel-slide {
    flex: 0 0 calc(100vw - 60px);
    height: calc(100% - 20px);
  }

  .slide-overlay {
    padding: 1rem 1.5rem;
    top: 1.5rem;
    left: 1.5rem;
    max-width: 40%;
    width: auto;
    height: auto;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .slide-overlay h3 {
    font-size: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    letter-spacing: 0.05em;
  }

  .slide-overlay p {
    font-size: 1.25rem;
    display: block;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.3;
    white-space: normal;
    text-overflow: unset;
    max-height: none;
  }

  .carousel-titles {
    padding: 1rem 20px 0;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }

  .carousel-titles-wrapper {
    gap: 0.25rem;
  }

  .title-square {
    padding: 0.4rem 1rem;
  }

  .title-text {
    font-size: 0.75rem;
  }

  .nav-container {
    padding: 0 1.25rem;
  }

  .nav-logo a span {
    display: none;
  }

  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .nav-search {
    display: none;
  }

  .nav-actions {
    gap: 0.5rem;
  }
}

/* Page Transition Enhancements */
/* Carousel hover zoom removed - now uses horizontal scroll only */

/* Ensure smooth rendering during transitions */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shift during transitions */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Smooth transition for links */
.slide-link {
  display: block;
  height: 100%;
  will-change: transform;
}

/* Mobile Carousel styles moved to mobile.css */

.carousel-mobile-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-mobile-header {
  display: none; /* Hide header, button will be below carousel */
}

.carousel-mobile-track {
  display: flex;
  height: 70%;
  align-items: center;
  width: 100%;
  cursor: grab;
  will-change: transform;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-mobile-track:active {
  cursor: grabbing;
}

.carousel-mobile-slide {
  min-width: 100%;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-mobile-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-mobile-slide .carousel-item {
  width: 100%;
  max-width: 400px;
  height: 85%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8e8e8;
  position: relative;
  border: 1px solid #ddd;
}

.carousel-mobile-text {
  text-align: center;
  margin-top: 1rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.carousel-mobile-slide h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin: 0;
  font-weight: 500;
  display: block;
  width: 100%;
}

.carousel-mobile-slide p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  display: block;
  width: 100%;
}

.see-all-button-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: #666666;
  text-decoration: none;
  border: 1px solid #d0d0d0;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.see-all-button-mobile:hover {
  background-color: #f5f5f5;
  border-color: #999999;
  color: #333333;
}

.carousel-mobile-indicators {
  display: none; /* Remove dot indicators */
}

.carousel-mobile-dot {
  display: none; /* Remove dot indicators */
}

/* Very small screens (phones) */
@media (max-width: 479px) {
  .navbar {
    width: calc(100% - 1rem);
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-button {
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
  }
}

/* Small screens */
@media (max-width: 767.98px) {
  /* Prevent horizontal scroll on mobile */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }

  /* Mobile-specific display rules moved to mobile.css */

  /* Navigation mobile responsive */
  .navbar {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .nav-container {
    padding: 0;
    max-width: 100%;
  }

  .nav-logo a {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .nav-logo svg,
  .nav-logo img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .nav-logo a span {
    display: none;
  }

  .nav-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .features-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .recognition-stats {
    grid-template-columns: 1fr;
  }

  .mission-text {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .mission-statement {
    display: none; /* Hide desktop mission statement on mobile */
  }

  /* Mobile mission statement styles moved to mobile.css */

  .mission-text {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  /* Hide desktop features on mobile */
  .interactive-features {
    display: none;
  }

  /* Show mobile features */
  .interactive-features-mobile {
    display: block;
  }

  .features-mobile-container {
    padding: 0 1.5rem;
  }

  .feature-mobile-item {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
  }

  .feature-mobile-item:last-child {
    border-bottom: none;
  }

  .feature-mobile-item:active {
    background-color: #f5f5f5;
  }

  .feature-mobile-title {
    font-size: 2.5rem;
    font-weight: 450;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
  }

  .feature-mobile-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 0.5rem;
  }

  .feature-mobile-number {
    font-size: 0.875rem;
    color: #999999;
    margin-top: 0.5rem;
  }

  .build-section {
    padding: 3rem 1rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .testimonials-section {
    padding: 3rem 0;
  }

  .testimonials-title {
    padding: 1rem 20px 0 20px;
    font-size: 1.75rem;
    white-space: normal; /* Allow wrapping on mobile */
    min-height: auto;
  }

  .testimonials-title::before {
    left: 20px;
  }

  /* Cursor removed */

  .testimonials-carousel {
    padding: 2rem 1rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .cta-section {
    padding: 3rem 1rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .footer {
    padding: 3rem 1rem 2rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Build Section Mobile */
  .build-section {
    padding: 3rem 1rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .build-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .build-image {
    max-width: 100%;
    height: 200px;
  }

  .build-text {
    text-align: left;
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .build-text h2 {
    font-size: 2rem;
  }

  .build-text p {
    font-size: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .learn-more-btn {
    align-self: center;
    width: 100%;
    text-align: center;
  }

  /* Testimonials Mobile */
  .testimonials-section {
    padding: 3rem 0;
  }

  .testimonials-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .testimonial-card {
    flex: 0 0 300px;
    padding: 2rem;
    height: 250px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* CTA Mobile */
  .cta-buttons {
    flex-direction: column;
  }

  .cta-text {
    font-size: 1.5rem;
  }

  .cta-arrow {
    font-size: 1.5rem;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-info {
    flex: 1;
    width: 100%;
    margin-bottom: 2rem;
  }

  .footer-column {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .footer-column:last-child {
    border-bottom: none;
  }

  /* Fix min-height on mobile */
  .carousel-section {
    min-height: auto;
    height: auto;
  }

  .carousel-slide {
    min-height: auto;
  }

  .build-image,
  .build-text {
    min-height: auto;
  }
}
