:root {
  /* Color variables only */
  --bg: #ffffff;
  --text: #151515;
  --muted: #5b5b5b;
  --border: #e8e8e8;
  --header-h: 0px;
}

/* Page layout */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Prompt", system-ui, -apple-system, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-h);
  overscroll-behavior-y: contain;
}
html {
  scroll-padding-top: var(--header-h);
}

/* Initial loading overlay */
.site-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 400ms ease;
}
.site-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loader-logo {
  width: clamp(180px, 40vw, 256px);
  height: auto;
  object-fit: contain;
  animation: loaderPulse 900ms ease-in-out both;
}
.loader-bar {
  width: 0;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(21, 21, 21, 0.12) 0%, rgba(21, 21, 21, 0.3) 50%, rgba(21, 21, 21, 0.12) 100%);
  opacity: 0;
}
@keyframes loaderPulse {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
body.loading { overflow: hidden; }
/* During programmatic navigation on mobile, disable touch panning */
body.navigating { touch-action: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 64px;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.brand-logo {
  width: auto;
  height: 72px;
  object-fit: contain;
}
.brand-logo.small {
  width: 16px;
  height: 16px;
}
.nav {
  display: flex;
  gap: 16px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.nav a:hover {
  color: var(--text);
}

/* Desktop: Products dropdown */
.nav-item.has-submenu { position: relative; }
.nav-item.has-submenu .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}
.nav-item.has-submenu:hover .nav-link { color: var(--text); }
.nav-item.has-submenu .submenu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 8px;
  z-index: 1200;
}
.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu:focus-within .submenu,
.nav-item.has-submenu .submenu:hover { display: flex; }
.submenu-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}
.submenu-link:hover { background: rgba(0,0,0,0.04); }

/* Hamburger toggle (mobile) */
.menu-toggle {
  display: none;
  width: 40px;
  height: 32px;
  background: var(--bg);
  border: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-right: 32px;
}
.menu-toggle .menu-icon {
  display: block;
  width: 22px;
  height: 22px;
}

/* Mobile slide-down menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 250ms ease;
  z-index: 999;
  padding: 12px 0;
}
.mobile-menu .menu-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.mobile-menu .menu-close-icon {
  width: 18px;
  height: 18px;
}
.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu .mobile-link {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}

body.menu-open .mobile-menu {
  transform: translateY(0);
}

/* Bootstrap-like fixed container */
.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .site-footer{
    margin-right: 32px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.hero {
  position: relative;
}
.hero-snap {
  height: auto;
}
.hero-pane {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}
@supports not (height: 100dvh) {
  .hero-pane {
    min-height: calc(100vh - var(--header-h));
  }
}
/* Globe container - full background on first pane */
.globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-title-pane {
  position: relative;
  overflow: hidden;
}

/* Stars on first pane - left bottom */
.hero-title-pane .stars.stars-title {
  display: block;
  left: clamp(16px, 6vw, 40px);
  right: auto;
  bottom: clamp(24px, 6vw, 48px);
  top: auto;
  width: 210px;
}

.hero .stars {
  position: absolute;
  top: 90px;
  right: clamp(16px, 6vw, 40px);
  width: 360px;
  height: auto;
  opacity: 0.85;
  --drift: clamp(12px, 2.5vw, 32px);
  will-change: transform, opacity;
  animation: fadeInOut 6s ease-in-out infinite alternate,
    driftX 14s ease-in-out infinite alternate;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
}

/* Override for final-block to ensure Times New Roman */
.hero .final-block h1 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 2.5rem !important;
}
.hero .final-block h2 {
  font-family: "Times New Roman", Times, serif !important;
}

/* Hero title hover interaction (XXI-style underline and pointer) */
.hero-title-pane h1 {
  position: relative;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease, letter-spacing 180ms ease;
}
.hero-title-pane h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 16px;
  width: 0;
  background: linear-gradient(90deg, rgba(21, 21, 21, 0.12) 0%, rgba(21, 21, 21, 0.3) 50%, rgba(21, 21, 21, 0.12) 100%);
  border-radius: 2px;
  transition: width 220ms ease, opacity 220ms ease;
  opacity: 0;
}


@keyframes fadeInOut {
  0% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.65;
  }
}

@keyframes driftX {
  from {
    transform: translateX(calc(var(--drift) * -1));
  }
  to {
    transform: translateX(var(--drift));
  }
}

/* Pane 2: stars right-center, half size of Pane 1 */
.hero-lede-pane .stars {
  right: clamp(16px, 6vw, 40px);
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 210px; /* half of 420px */
}

/* Title pane: align content bottom-left inside container */
.hero-title-pane .pane-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: calc(100dvh - var(--header-h));
  padding-bottom: clamp(24px, 6vw, 64px);
  position: relative;
  z-index: 10;
}

/* Animated text on left top of Pane 1 */
.hero-animated-text {
  position: absolute;
  top: clamp(24px, 6vw, 64px);
  left: 16px;
  z-index: 10;
}

.hero-animated-text .tension-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-animated-text .hero-container {
  position: relative;
  width: 700px;
  height: 160px;
  margin-bottom: 80px;
}

.hero-animated-text .hero-container h1.phrase {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
  text-align: left;
  position: absolute;
  opacity: 0;
  width: 100%;
  top: 0;
  left: 0;
  right: auto;
  color: var(--text);
  animation: phraseAnim 18s cubic-bezier(0.3, 0.01, 0.25, 1) infinite;
}

.hero-animated-text .hero-container h1.phrase:nth-child(1) {
  animation-delay: 0s;
}

.hero-animated-text .hero-container h1.phrase:nth-child(2) {
  animation-delay: 6s;
}

.hero-animated-text .hero-container h1.phrase:nth-child(3) {
  animation-delay: 12s;
}

@keyframes phraseAnim {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  12% {
    opacity: 1;
    transform: translateY(0);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  38% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 0;
  }
}

/* Final block - sabit başlık - sağ altta */
.final-block {
  position: absolute;
  right: clamp(0px, 0vw, 2px);
  bottom: clamp(100px, 24vw, 200px);
  width: 750px;
  opacity: 0;
  animation: finalReveal 1.8s ease-out forwards;
  animation-delay: 0.3s;
  font-family: "Times New Roman", Times, serif;
  z-index: 10;
}

@keyframes finalReveal {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    letter-spacing: 0.5px;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 1px;
  }
}

.hero-title-pane .final-block h1,
.final-block h1 {
  font-size: 2.5rem !important;
  margin: 0 0 16px;
  font-family: "Bebas Neue", sans-serif !important;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--text);
  white-space: normal;
  word-break: normal;
  text-align: left;
}

.hero-title-pane .final-block h2,
.final-block h2 {
  font-family: "Times New Roman", Times, serif !important;
  font-weight: 700;
  font-size: 1.5rem;
  opacity: 0.92;
  line-height: 1.45;
  letter-spacing: 0.4px;
  color: #9B4D3C;
  margin: 0 0 24px;
  text-align: left;
}

/* Action buttons */
.final-block .action-buttons {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.final-block .action-buttons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: calc(var(--active, 0) * 16px);
  grid-template-columns:
    auto
    repeat(2, calc(var(--active, 0) * 140px));
  transition: grid-template-columns 0.35s ease, gap 0.3s ease;
}

/* Request Access hover veya herhangi bir link hover olunca açılır - tıklanabilir olması için */
.final-block .action-buttons ul:has(a.primary:hover),
.final-block .action-buttons ul:has(a:hover),
.final-block .action-buttons:hover ul {
  --active: 1;
}

.final-block .action-buttons li {
  display: flex;
  justify-content: flex-start;
}

.final-block .action-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 1px solid var(--text);
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Primary buton */
.final-block .action-buttons a.primary {
  background: var(--text);
  color: var(--bg);
}

/* Ok */
.final-block .action-buttons .main-btn {
  display: flex;
  align-items: center;
  gap: 12px;
}

.final-block .action-buttons .arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.final-block .action-buttons a.primary:hover .arrow {
  transform: translateX(6px);
}

/* Kapalıyken diğerleri görünmez */
.final-block .action-buttons li:nth-child(2),
.final-block .action-buttons li:nth-child(3) {
  opacity: var(--active, 0);
  transition: opacity 0.3s ease;
}

/* Hover efekti */
.final-block .action-buttons li:nth-child(2) a:hover,
.final-block .action-buttons li:nth-child(3) a:hover {
  background: var(--text);
  color: var(--bg);
}
.hero-lede-pane .pane-content {
  min-height: calc(100dvh - var(--header-h));
}
.lede {
  max-width: 720px;
}
.lede p {
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.3;
  font-size: clamp(24px, 4.5vw, 36px);
}

/* Pane content reveal animation (XXI-like subtle rise/fade) */
.pane-content {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.16, 0.84, 0.24, 1), opacity 420ms cubic-bezier(0.16, 0.84, 0.24, 1);
}
.hero-pane.in-view .pane-content {
  transform: translateY(0);
  opacity: 1;
}

/* Outgoing pane: brief upward fade */
.pane-content.out-view {
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 260ms ease-out, opacity 260ms ease-out;
}

.metrics {
  padding: clamp(32px, 8vw, 80px) 0;
  text-align: center;
}
.section-title {
  font-size: clamp(36px, 5.5vw, 48px);
  margin: 0 0 24px;
  font-weight: 500;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.stat {
  padding: 16px 8px;
}
.value {
  font-size: clamp(40px, 10vw, 96px);
  font-weight: 500;
}
.suffix {
  font-weight: 100;
}
.label {
  color: var(--text);
  font-size: 18px;
  margin-top: 6px;
}

/* Pane 3 layout and intro text */
.hero-metrics-pane .pane-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pane3-desc {
  max-width: 760px;
  align-self: flex-start;
  text-align: left;
  color: var(--text);
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.3;
  margin: 0 0 clamp(24px, 8vw, 96px);
}
.hero-title-pane-content{
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  /* Prevent horizontal overflow on mobile */
  html, body { overflow-x: hidden; }
  .stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .section-title{
    margin: 0 0 8px;
  }
  .hero .stars {
    width: 288px;
    top: 90px;
    --drift: 18px;
  }
  .hero-lede-pane .stars {
    width: 144px; /* half of 288px on mobile */
    bottom: clamp(12px, 6vw, 24px);
    top: auto;
    transform: none;
    right: 16px;
    left: auto;
  }
  /* Mobile: stars on first pane - left bottom */
  .hero-title-pane .stars.stars-title {
    width: 144px;
    left: 16px;
    bottom: clamp(24px, 4vw, 40px);
  }
  /* Adjust underline size for mobile */
  .hero-title-pane h1::after {
    bottom: -8px;
    height: 12px;
  }
  .pane-indicator {
    right: 8px;
  }
  .pane-indicator .seg.active {
    width: 16px;
    height: 16px;
    background: url("images/star.png") center / contain no-repeat;
    background-color: transparent;
  }
  /* Mobile: panes should fit within viewport minus sticky header */
  .hero-pane {
    height: calc(100dvh - var(--header-h));
    min-height: unset;
  }
  .hero-title-pane .pane-content,
  .hero-lede-pane .pane-content,
  .hero-metrics-pane .pane-content {
    height: calc(100dvh - var(--header-h));
    min-height: unset;
  }
  /* Mobile: animated text adjustments */
  .hero-animated-text {
    top: clamp(24px, 6vw, 64px);
    left: clamp(16px, 6%, 6%);
    right: auto;
    bottom: auto;
  }
  .hero-animated-text .tension-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 12px;
  }
  .hero-animated-text .hero-container {
    width: 90%;
    max-width: 400px;
    height: 120px;
    margin-bottom: 40px;
  }
  .hero-animated-text .hero-container h1.phrase {
    font-size: 2rem;
  }
  .final-block {
    position: absolute;
    right: clamp(0px, 0vw, 2px);
    bottom: clamp(60px, 8vw, 80px);
    left: auto;
    width: 90%;
    max-width: 400px;
  }
  .final-block h1 {
    font-size: 2.5rem;
    font-family: "Bebas Neue", sans-serif !important;
  }
  .final-block h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #9B4D3C;
    font-family: "Times New Roman", Times, serif !important;
  }
  /* Mobile: Action buttons */
  .final-block .action-buttons a {
    padding: 8px 20px;
    font-size: 13px;
  }
  .final-block .action-buttons ul {
    gap: calc(var(--active, 0) * 12px);
    grid-template-columns:
      auto
      repeat(2, calc(var(--active, 0) * 120px));
  }
  /* Prefer safe viewport when supported */
  @supports (height: 100svh) {
    .hero-pane {
      height: calc(100svh - var(--header-h));
    }
    .hero-title-pane .pane-content,
    .hero-lede-pane .pane-content,
    .hero-metrics-pane .pane-content {
      height: calc(100svh - var(--header-h));
    }
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  /* Mobile: show Alpha Edge as a sub-link beneath Products */
  .mobile-sublink {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    padding-left: 16px;
    opacity: 0.9;
  }
  /* Footer: cleaned — rely on common footer grid */
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  color: var(--muted);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
}

.footer-contact{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-img{
  height: 64px;
  margin-left: -16px;
}

.footer-link{
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}
/* Mobile overrides */
@media (max-width: 760px) {
.footer-inner{
  display: flex;
  flex-direction: column;
  text-align: center;
}
.footer-logo-img{
  display: none;
}
}

/* Reveal from bottom animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}
.reveal {
  animation: slideUp 600ms ease-out both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Right-side pane indicator */
.pane-indicator {
  position: fixed;
  right: clamp(8px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 950;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
  opacity: 0;
}
.pane-indicator.visible {
  opacity: 1;
}
.pane-indicator .seg {
  width: 6px;
  height: 12px;
  border-radius: 1px;
  opacity: 0.5;
  background: url("images/star.png") center / cover no-repeat;
  background-color: transparent;
}
.pane-indicator .seg.active {
  width: 6px;
  height: 12px;
  background: var(--text);
  opacity: 1;
}
