@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  background-color: #0A1828;
  color: white !important;
  font-family: 'Nunito';
}

@layer base {
  @font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Nunito-VariableFont_wght.woff2') format('woff2');
  }
}


/* Tailwind-compatible way to hide scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

#get-started-button {
  background: #009B4D;
  color: #FFFFFF;
  font-weight: 300;
  height: 74px;
  width: 222px;
}



#email-confirmation-section {
  visibility: hidden;
}

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

@keyframes fadeInTop {
  0% { opacity: 0; margin-top: -3%; }
  100% { opacity: 1; margin-top: 0%; }
}

@keyframes fadeInLeft {
  0% { opacity: 0; margin-left: -3%; }
  100% { opacity: 1; margin-left: 0%; }
}

@keyframes fadeInBottom {
  0% { opacity: 0; margin-bottom: -3%; }
  100% { opacity: 1; margin-bottom: 0%; }
}

@keyframes fadeChartInBottom {
  0% { opacity: 0; top: -20%; }
  100% { opacity: 1; top: -33%; }
}

.fadein-animation-top {
  animation: 1s fadeInTop;
}

.fadein-animation-left {
  animation: 1s fadeInLeft;
}

.fadein-animation-bottom {
  animation: 1s fadeInBottom;
}

.fadein-animation-chart-bottom {
  animation: 1s fadeChartInBottom;
}

@keyframes delayLoad {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.delay-load-animation {
  animation: var(--i, 1s) delayLoad;
}


:root {
  /* Controls how far the next section climbs into the hero */
  --angle-cut: clamp(110px, 9vw, 220px);

  /* Your section color */
  --section-bg: #0A1828;
}

.section-angled-top {
  /* Pull the whole section up so it overlaps the hero video */
  margin-top: calc(-1 * var(--angle-cut));

  /* Keep your existing pt-16 AND account for the overlap */
  padding-top: calc( var(--angle-cut));

  position: relative;
  z-index: 20;
}

/* This is the angled background (NOT the content) */
.section-angled-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--section-bg);
  z-index: 0;
  pointer-events: none;

  /* Angled top edge: left is high, right is lower */
  -webkit-clip-path: polygon(0 0, 100% var(--angle-cut), 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% var(--angle-cut), 100% 100%, 0 100%);
}

/* Keep all your actual section content above the angled background */
.section-angled-top > * {
  position: relative;
  z-index: 1;
}

:root{
  --simple-angle-top: clamp(60px, 5vw, 120px);
  --simple-angle-bottom: clamp(40px, 4vw, 90px);
}

.simple-panel-angled{
  position: relative;
  overflow: hidden;
  padding-top: calc(3rem + var(--simple-angle-top));
}

.simple-panel-angled::before{
  content:"";
  position:absolute;
  inset:0;
  background:#EAF7F1;
  z-index:0;
  pointer-events:none;


}

.simple-panel-angled > *{
  position: relative;
  z-index: 1;
}

/* Angled top that rises up to the right */


:root{
  /* "55deg-ish" look: bigger = steeper diagonal */
  --angle-left: clamp(80px, 8vw, 160px);
}

/* Top edge rises left -> right */
.section-angled-left{
  position: relative;
  overflow: hidden;
}

/* Put your section background here so the clip works cleanly with rounded corners */
.section-angled-left::before{
  content:"";
  position:absolute;
  inset:0;
  background:#EAF7F1;   /* change per section if needed */
  z-index:0;

  /* left is lower, right is higher */
  clip-path: polygon(0 var(--angle-left), 100% 0, 100% 100%, 0 100%);
}

/* Ensure section content sits above */
.section-angled-left > *{
  position: relative;
  z-index: 1;
}

.section-bg-deep { --section-bg: #0A1828; }

.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  transform: translate3d(-45px, 0, 0) scale(0.98);
}

.reveal-right {
  transform: translate3d(45px, 0, 0) scale(0.98);
}

.reveal-up {
  transform: translate3d(0, 48px, 0) scale(0.98);
}

.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-up {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.brand-marquee {
  --marquee-duration: 20s;
  --marquee-gap: 3rem;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}

.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 10vw, 120px);
  z-index: 2;
  pointer-events: none;
}

.brand-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.brand-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--marquee-gap);
  animation: brandMarquee var(--marquee-duration) linear infinite;
  will-change: transform;
}

.brand-marquee__group {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
}

.brand-logo {
  height: clamp(28px, 4vw, 44px);
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.brand-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes brandMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  :root {
    --angle-cut: clamp(80px, 8vw, 160px);
  }

  #get-started-button {
    width: auto;
    height: auto;
    min-width: 160px;
    min-height: 44px;
  }

  .brand-marquee {
    --marquee-duration: 16s;
    --marquee-gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track {
    animation: none;
  }
}
