/* COLORS PER SECTION ARE SET INLINE VIA --bg CSS VAR */
/* LOCAL FONTS
   ================================================================== */
@font-face {
  font-family: 'Fira Sans';
  src: url('Fira_Sans/FiraSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('Fira_Sans/FiraSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('Fira_Sans/FiraSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo Play';
  src: url('Cairo_Play/CairoPlay-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo Play';
  src: url('Cairo_Play/CairoPlay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('Fira_Sans/FiraSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* MIXINS
   ================================================================== */
/* KEYFRAMES
   ================================================================== */
@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes float-in-right {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-200px, 0, 0);
    transform: translate3d(-200px, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes float-in-right {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-200px, 0, 0);
    transform: translate3d(-200px, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes float-in-left {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(200px, 0, 0);
    transform: translate3d(200px, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes float-in-left {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(200px, 0, 0);
    transform: translate3d(200px, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
/* BASE
   ================================================================= */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}
:root { --nav-h: 80px; }
body {
  font-family: 'Fira Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 500; /* use Fira Sans Medium */
}
a { color: inherit; }
/* DYNAMIC NAVIGATION BAR
   ================================================================= */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  background: #d34836;
  -webkit-transition: all 650ms cubic-bezier(0.22, 1, 0.25, 1);
  transition: all 650ms cubic-bezier(0.22, 1, 0.25, 1);
  z-index: 1000; /* ensure nav and its dropdown sit above content */
}
nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0 clamp(16px, 4vw, 48px) 0 0; /* remove left padding so brand hugs left */
  height: 80px;
  position: relative;
  z-index: 2;
}
nav .nav-right { display: flex; align-items: center; gap: 10px; }
nav:before {
  content: "";
  display: block;
  position: absolute;
  background: rgba(0, 0, 0, 0.27);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
nav ul.menu {
  position: relative;
  margin: 0;
  z-index: 2;
  text-transform: uppercase;
  display: none; /* hide menu links per request */
  list-style: none;
}
nav ul.menu li {
  padding: 0.5em 0.25em;
  margin: 0 0.5em;
  font-size: 1.05em;
  letter-spacing: 0.04em;
}
nav ul.menu li a {
  text-decoration: none;
  color: #fff;
  font-size: 1em;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; position: relative; z-index: 3; padding-left: clamp(6px, 1.5vw, 16px); }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-title { font-family: 'Cairo Play', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-weight: 900; font-size: 32px; letter-spacing: 0.3px; line-height: 1; }
.brand-title span { text-shadow: 0 1px 2px rgba(0,0,0,0.28); }
.brand-title .t1 { color: #FFFFFF; }
.brand-title .t2 { color: #FFD54F; }
.brand-title .t3 { color: #80DEEA; }

.nav-cta {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
  border: 0; /* remove border */
  box-shadow: none; /* remove shadow */
  line-height: 1;
  margin-right: 0; /* keep tight with hamburger; spacing handled by .nav-right gap */
}
.nav-cta .icon-box {
  display: inline-grid;
  place-items: center; /* perfectly center emoji */
  background: #FF3B30; /* red */
  color: #fff; /* icon color */
  padding: 14px 16px 10px 16px; /* add extra top padding */
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
}
.nav-cta .icon-box img { width: 30px; height: 30px; object-fit: contain; display: block; }
.nav-cta .text-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFA000; /* orange */
  color: #ffffff; /* white text */
  padding: 12px 28px; /* include right padding within the colored area */
  font-weight: 900;
  font-size: 20px; /* bigger font */
}
.nav-cta:hover .text-box { background: #FFB74D; color: #ffffff; }

.hamburger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px; /* align height with Launch button */
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
}
.burger-icon { width: 36px; display: grid; gap: 6px; }
.burger-slab { position: relative; width: 36px; height: 6px; background: #fff; border-radius: 10px; transition: height .35s ease, transform .35s ease, border-radius .35s ease, margin-top .35s ease; }
.burger-slab .burger-seed { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.85); border-radius: 50%; transform: scale(0); transition: transform .15s ease-in; }
.burger-slab:nth-child(1) .burger-seed:nth-child(1) { top: -8px; left: 6px; transition-delay: .06s; }
.burger-slab:nth-child(1) .burger-seed:nth-child(2) { top: -4px; left: 16px; transition-delay: .12s; }
.burger-slab:nth-child(1) .burger-seed:nth-child(3) { top: -10px; left: 26px; transition-delay: .18s; }
.burger-slab:nth-child(2) .burger-seed:nth-child(1) { top: 1px; left: 10px; }
.burger-slab:nth-child(2) .burger-seed:nth-child(2) { top: -2px; left: 20px; }
.burger-slab:nth-child(2) .burger-seed:nth-child(3) { top: 3px; left: 28px; }
.burger-slab:nth-child(3) .burger-seed:nth-child(1) { bottom: -8px; left: 8px; transition-delay: .06s; }
.burger-slab:nth-child(3) .burger-seed:nth-child(2) { bottom: -5px; left: 18px; transition-delay: .12s; }
.burger-slab:nth-child(3) .burger-seed:nth-child(3) { bottom: -9px; left: 26px; transition-delay: .18s; }
.hamburger:hover .burger-slab:nth-child(1) { height: 10px; transform: scale(1.06); border-radius: 16px 16px 8px 8px; }
.hamburger:hover .burger-slab:nth-child(1) .burger-seed { transform: scale(1); }
.hamburger:hover .burger-slab .burger-seed { background: #fff; }
.hamburger:hover .burger-slab:nth-child(2) { transform: scale(1.12); }
.hamburger:hover .burger-slab:nth-child(2)::after { content: ""; position: absolute; top: -6px; left: 9px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 8px solid rgba(255,255,255,0.9); }
.hamburger:hover .burger-slab:nth-child(3) { height: 9px; transform: scale(1.06); border-radius: 8px 8px 16px 16px; }
.hamburger span { display: none; }

@media (max-width: 900px) {
  nav ul.menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: inherit; padding: 8px 16px; justify-content: center; flex-wrap: wrap; }
  nav.open ul.menu { display: flex; }
  .nav-cta { display: none; }
}
/* Dropdown menu (hamburger) */
.dropdown { display: none; position: absolute; top: var(--nav-h); right: 16px; background: var(--dd-bg, rgba(0,0,0,0.9)); color: var(--dd-fg, #fff); backdrop-filter: blur(4px); border-radius: 12px; padding: 8px 0; z-index: 10000; min-width: 260px; border: 1px solid rgba(255,255,255,0.15); }
nav.open .dropdown { display: block; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: var(--dd-fg, #fff); text-decoration: none; font-weight: 600; transition: background-color .2s ease, transform .2s ease; }
.dropdown li a .ico { width: 1.4em; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1em; }
.dropdown li a .label { flex: 1 1 auto; }
.dropdown li a:hover { background: var(--dd-hover, rgba(255,255,255,0.14)); color: var(--dd-hover-fg, #000000); transform: translateX(4px); }
/* CONTENT
   ================================================================== */
section {
  height: 100vh;
  padding-top: var(--nav-h);
  box-sizing: border-box;
  background: var(--bg, #222);
  display: grid;
  place-items: center; /* center the content block vertically and horizontally */
}
section .page {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center; /* center the two columns as a group */
  padding: 32px clamp(24px, 6vw, 96px);
  max-width: 1200px;
  margin: 0 auto; /* horizontally center content area */
  flex-wrap: wrap; /* allow wrapping to avoid overlap */
}

.content { flex: 1 1 560px; min-width: 320px; text-align: left; }
.icon { flex: 0 1 420px; }

h1 {
  margin: 0 0 40px 0;
  font-family: 'Cairo Play', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-size: 90px;
  text-transform: none;
  -webkit-animation: float-in-right 0.45s ease;
  animation: float-in-right 0.45s ease;
}

.desc {
  max-width: 800px;
  margin: 0;
  font-size: clamp(22px, 2.8vw, 32px);
  color: rgba(255,255,255,0.9);
  -webkit-animation: float-in-left 0.45s ease;
  animation: float-in-left 0.45s ease;
}
.desc .more-extra { display: none; }
.desc .desc-hidden { display: none; }
.desc.expanded .more-extra { display: block; margin-top: 20px; }
.more-toggle {
  margin-left: 12px;
  margin-top: 32px; /* more spacing from the description */
  padding: 12px 32px; /* more horizontal space before/after text */
  font: inherit;
  font-weight: 800;
  border: 6px solid var(--lm-border, #FFA000); /* visible border with dynamic color */
  border-radius: 999px;
  color: var(--lm-fg, #111);
  background: var(--lm-bg, rgba(255,255,255,0.9));
  cursor: pointer;
  display: block; /* on its own line below the sentence */
  transition: all 0.2s ease;
}
.more-toggle:hover,
.more-toggle:focus-visible {
  background: var(--lm-border, #FFA000);
  color: #fff;
  outline: none;
  transform: scale(1.05);
}

.icon img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}

/* Learn More full-width overlay inside section */
section .lm-overlay {
  display: none;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  box-sizing: border-box;
  padding: 24px clamp(24px, 6vw, 80px) 40px;
  overflow: auto;
}
section.lm-open .page { display: none; }
section.lm-open .lm-overlay { display: block; }
.lm-overlay .lm-body {
  font-size: clamp(20px, 2.4vw, 28px);
  color: rgba(255,255,255,0.95);
}
.lm-overlay .lm-title {
  margin: 0 0 24px 0;
  font-family: 'Cairo Play', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: -0.01em;
  line-height: 0.98;
  font-size: clamp(44px, 7vw, 90px);
}
.lm-overlay .lm-body p { margin: 0 0 16px 0; }
.lm-overlay .lm-close {
  margin-top: 32px;
  padding: 14px 28px; /* match Learn More */
  font-size: 28px;    /* match Learn More */
  font-weight: 800;
  border-radius: 999px;
  border: 8px solid #FFA000; /* match Learn More border */
  color: #111;
  background: #ffffff;
  cursor: pointer;
}

/* Stack on narrower screens to avoid any overlap */
@media (max-width: 1100px) {
  section .page { flex-direction: column; align-items: center; gap: 28px; }
  .icon { width: 100%; }
  .icon img { width: clamp(140px, 42vw, 340px); max-height: none; }
}

/* Back to top button */
#toTop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
  display: none;
  box-shadow: none;
  font-size: 24px;
  font-weight: 900; /* thicker */
  -webkit-text-stroke: 1px #fff; /* inflate glyph for thickness (WebKit) */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
#toTop.show { display: inline-block; }
.lm-overlay .lm-body .hl,
.lm-overlay .lm-body mark,
.lm-overlay .lm-body em,
.lm-overlay .lm-body strong {
  background-color: #FFB300; /* orange highlight */
  color: #111; /* readable text */
  padding: .12em .28em;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Full Width Image Section */
.full-width-image {
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: block;
}

.full-width-image.with-title {
  padding: 60px 0 0 0 !important;
  background: #ffffff;
}

.full-width-image .image-title {
  font-family: 'Cairo Play', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 84px);
  text-align: center;
  margin: 0 0 40px 0;
  padding: 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.full-width-image .image-title .word-1 {
  color: #000000;
}

.full-width-image .image-title .word-2 {
  color: #000000;
}

.full-width-image .image-title .word-3 {
  color: #000000;
}

.full-width-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: cover;
}

/* Screenshots Gallery Section */
.screenshots-gallery {
  padding: 80px clamp(24px, 6vw, 96px) !important;
  height: auto !important;
  min-height: 0 !important;
  display: block;
}

.screenshots-container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-title {
  font-family: 'Cairo Play', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 72px);
  color: #333;
  text-align: center;
  margin: 0 0 60px 0;
  letter-spacing: -0.02em;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

.screenshot-item {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-title {
    margin: 0 0 40px 0;
  }

  .screenshots-gallery {
    padding: 60px 20px !important;
  }
}

/* Side by Side Images Section */
.side-by-side-images {
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: block;
}

.side-by-side-images .image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.side-by-side-images .image-grid img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .side-by-side-images .image-grid {
    grid-template-columns: 1fr;
  }
}

/* Color Spotlight Effect */
#color-spotlight {
  padding-top: 0;
  overflow: hidden;
}

#color-spotlight .spotlight-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* hide system cursor in spotlight section */
#color-spotlight, #color-spotlight * {
  cursor: none;
}

/* deep stage */
#color-spotlight .blobStage {
  position: relative;
  width: 100%;
  height: 100vh;
  background: radial-gradient(1200px 800px at 30% 20%, rgba(255,255,255,0.06), transparent 55%),
              linear-gradient(180deg, #0d1280, #0a0f5a);
  overflow: hidden;
}

/* blobs */
#color-spotlight .blob {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  will-change: transform;
  filter: saturate(1.04);
}

#color-spotlight .blobA {
  background: #2b62ff;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
}

#color-spotlight .blobB {
  background: #ffe7ea;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
}

#color-spotlight .blobC {
  background: #ffd166;
  width: 310px;
  height: 310px;
  margin: -155px 0 0 -155px;
}

/* white "screen" layer that creates the masked color effect */
#color-spotlight .screenInk {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  mix-blend-mode: screen;
}

#color-spotlight h1 {
  margin: 0;
  text-align: center;
  color: #07070c;
  letter-spacing: -2px;
  line-height: .88;
  font-size: clamp(86px, 14vw, 210px);
  text-transform: lowercase;
}

/* custom cursor */
#color-spotlight .fxCursor {
  position: fixed;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: rgba(13,18,128,0.95);
  box-shadow: 0 14px 32px rgba(13,18,128,0.22);
  pointer-events: none;
  user-select: none;
  z-index: 10000;
  will-change: transform;
}
