* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Prevent horizontal scrolling on all elements */
*, *::before, *::after {
    max-width: 100vw;
    overflow-x: hidden;
}

:root {
    --vh: 1vh;
}

html {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 300;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

main {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
}

.section {
    min-height: auto;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 2rem 1rem;
}

/* Hero section keeps full height */
.section.hero {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0;
}

/* All other sections: compact auto height */
.section.product-section,
.section.demo-wrapper,
.section.strategies {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

.footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

/* Hero Section */
.hero {
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    padding-top: 32px;
    margin-top: -5vh;
}

.title {
    font-family: Monaco, 'Lucida Console', 'Courier New', monospace;
    font-size: 8.5rem;
    color: #ff4500;
    font-weight: normal;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #ffffff;
    line-height: 1.5;
    max-width: 800px;
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

.demo-button {
    font-family: 'Source Sans Pro', sans-serif;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 24px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

.demo-button:hover {
    background: #98ff98;
    border-color: #98ff98;
    color: #000000;
    transform: translateY(-1px);
}

/* Add screen glow effect - only for hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 107, 53, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    will-change: transform;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 42px;
    width: 42px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    padding: 2px;
}

.header-logo svg {
    height: 100%;
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.2)) 
            brightness(1.1) 
            contrast(1.2);
    transition: all 0.2s ease;
    transform: scale(1.2);
}

.header-logo svg path {
    fill: #ff4500;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: 'Source Sans Pro', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 400;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Product Section */
.product-section {
    position: relative;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.product-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.5;
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Demo backgrounds - fixed positioning for parallax */
.demo-backgrounds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.demo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    will-change: opacity;
    z-index: 1;
}

.demo-bg.active {
    opacity: 1 !important;
}

.demo-bg-before,
.demo-bg-after {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #222; /* Fallback if image doesn't load */
}

.demo-bg-before {
    left: 0;
}

.demo-bg-after {
    left: 50%;
}

/* Demo section styling - now transparent overlays */
.demo-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 6rem 2rem;
    min-height: 100vh;
    background: transparent;
    z-index: 10;
}

.demo-text-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 3rem 4rem;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.demo-section .demo-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #ffffff;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.demo-section .demo-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    line-height: 1.6;
    margin: 1rem 0 0 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Strategies Section */
.strategies {
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 100vh;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.strategy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.strategy-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    min-height: 600px;
    position: relative;
    box-sizing: border-box;
}

.strategy-box h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.4rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
    width: 100%;
    text-align: center;
    align-self: center;
}

.action-button {
    position: relative;
    margin-top: auto;
    width: auto;
    min-width: 200px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 24px;
    transition: opacity 0.2s ease;
}

.reach-out-button {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.2);
    color: #ff4500;
}

.reach-out-button:hover {
    opacity: 0.8;
}

.showcase-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.showcase-button:hover {
    opacity: 0.8;
}

.isp-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.comparison-table {
    width: 100%;
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table table {
    width: auto;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Source Sans Pro', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
    width: 200px;
    white-space: nowrap;
}

.comparison-table td:first-child {
    width: 180px;
}

.comparison-table .row-label {
    text-align: left;
    font-weight: 600;
    padding-left: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.flare-row .row-label {
    color: #ff4500;
}

.flare-row td {
    color: rgba(255, 69, 0, 0.9);
}

.comparison-explanation {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.comparison-explanation p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: linear-gradient(135deg, #333, #111);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 2rem auto;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.phone-mockup::after {
    content: 'FLARE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4500;
    font-family: Monaco, monospace;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 1;
    scroll-snap-align: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.2));
}

.footer-brand {
    font-family: Monaco, 'Lucida Console', 'Courier New', monospace;
    font-size: 1.5rem;
    color: #ff4500;
    font-weight: normal;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.2);
}

.footer-tagline {
    font-family: 'Source Sans Pro', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    font-family: 'Source Sans Pro', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.copyright {
    font-family: 'Source Sans Pro', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-link {
    font-family: 'Source Sans Pro', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Demo background enhancements: blur transitions and visual divider */
[id^="demo-bg-"] {
    /* Blur by default; JS toggles class to remove blur */
    filter: blur(10px);
    transition: filter 220ms ease;
}

[id^="demo-bg-"].is-visible {
    filter: blur(0px);
}

[id^="demo-bg-"]::after {
    /* Crisper center divider */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-1.5px);
    width: 3px;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.55), rgba(255,255,255,0))
        ,linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.25), rgba(255,255,255,0));
    opacity: 0.9;
    pointer-events: none;
}

[id^="demo-bg-"]::before {
    /* Subtle vignette to define edges elegantly */
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(85% 85% at 50% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.32) 100%);
    pointer-events: none;
}

/* Header hides over demos */
.header.hidden {
    transform: translateY(-100%);
    transition: transform 300ms ease;
}

/* Second page: full sized with centered text */
.product-section {
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.product-section .product-tagline {
    margin: 0 auto;
    text-align: center;
    max-width: 1000px;
}

/* Mobile adaptations */
@media (max-width: 900px) {
  .title { font-size: 3.5rem; }
  .tagline { font-size: 1.1rem; }
  .demo-button { padding: 10px 20px; font-size: 0.85rem; }
  .header { padding: 0 1rem; }
  .header-nav { gap: 0.75rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.85rem; }

  .product-section { height: calc(var(--vh, 1vh) * 100); padding: 0 1rem; }
  .product-section .product-tagline { font-size: 1.4rem; line-height: 1.5; }

  .demo-section { min-height: calc(var(--vh, 1vh) * 100); padding: 3rem 1rem; }
  .demo-text-overlay { padding: 1.4rem 1.2rem; border-radius: 16px; max-width: 90vw; }
  .demo-section .demo-title { font-size: 1.6rem; }
  .demo-section .demo-description { font-size: 1rem; }

  .strategies { padding: 3rem 1rem; }
  .strategy-container { grid-template-columns: 1fr; gap: 2rem; padding: 0; }
  .strategy-box { min-height: auto; padding: 1.25rem; }
  .comparison-table td { padding: 0.9rem; font-size: 0.95rem; }
  .comparison-explanation p { font-size: 1.05rem; padding: 0 1rem; }

  .footer { padding: 2rem 1rem 1rem; }
  .footer-content { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Split Zoom and Lighting (shittycam) demos horizontally (top/bottom) on mobile */
  #demo-bg-zoom > div:first-child,
  #demo-bg-lighting > div:first-child {
    width: 100% !important;
    height: 50% !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
  }
  #demo-bg-zoom > div:last-child,
  #demo-bg-lighting > div:last-child {
    width: 100% !important;
    height: 50% !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
  }
  #demo-bg-zoom::after,
  #demo-bg-lighting::after {
    top: 50% !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    transform: translateY(-1.5px) !important;
    background:
      linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.55), rgba(255,255,255,0)),
      linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.25), rgba(255,255,255,0)) !important;
  }
}

@media (max-width: 500px) {
  .title { font-size: 3rem; }
  .tagline { font-size: 1rem; }
  .product-section .product-tagline { font-size: 1.25rem; }
  .demo-section .demo-title { font-size: 1.4rem; }
  .demo-section .demo-description { font-size: 0.95rem; }
}