/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-5: rgba(255, 255, 255, 0.05);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.7s;
  --header-offset: 4.5rem;
  --focus-ring: 0 0 0 2px #000, 0 0 0 4px rgba(255, 255, 255, 0.92);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: white;
  background: #000;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: white;
  color: #171717;
  font-size: 0.875rem;
  font-weight: 500;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: nowrap;
  outline: none;
  box-shadow: var(--focus-ring);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

img {
  display: block;
  max-width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: opacity;
  pointer-events: none;
}

.hero__bg--1 {
  opacity: 1;
}

.hero.is-ready .hero__bg {
  animation: hero-crossfade 18s linear infinite;
}

.hero.is-ready .hero__bg--1 {
  animation-delay: 0s;
}

.hero.is-ready .hero__bg--2 {
  animation-delay: -12s;
}

.hero.is-ready .hero__bg--3 {
  animation-delay: -6s;
}

@keyframes hero-crossfade {
  0% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  33.33% {
    opacity: 0;
  }

  91.67% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero__ring-overlay,
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__ring-overlay {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.hero__scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.42) 100%);
}

/* ===== Header ===== */
.header {
  position: relative;
  z-index: 30;
}

.header__inner {
  margin: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  padding-top: max(1rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  flex-shrink: 0;
  padding-right: 0;
  border-radius: 0.5rem;
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__logo-main {
  position: relative;
  z-index: 2;
}

.header__logo-smile {
  position: absolute;
  left: calc(100% + 1px);
  top: 50%;
  height: 28px;
  opacity: 0;
  transform: translateY(-50%);
  animation: smile-slide-in 5.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 8s;
}

@keyframes smile-slide-in {
  from {
    opacity: 0;
    transform: translate(2px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(12px, -50%);
  }
}

/* ===== Navigation ===== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

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

.nav__panel-label {
  display: none;
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: var(--white-5);
  box-shadow: inset 0 0 0 1px var(--white-10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-80);
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  color: white;
}

.nav__cta {
  margin-left: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 25;
    display: block;
    padding:
      calc(var(--header-offset) + env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 1.5rem max(1.25rem, env(safe-area-inset-left));
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__panel {
    width: 100%;
  }

  .nav__panel-label {
    display: block;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white-70);
  }

  .nav__pill {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 1.25rem;
    background: rgba(18, 18, 18, 0.72);
    box-shadow: inset 0 0 0 1px var(--white-15);
  }

  .nav__link {
    padding: 0.875rem 1rem;
    min-height: 2.75rem;
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    background: var(--white-10);
    color: white;
  }

  .nav__cta {
    margin: 0.25rem 0 0;
    min-height: 2.75rem;
    padding: 0.875rem 1rem;
  }
}

@media (min-width: 768px) {
  .nav-backdrop {
    display: none;
  }
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  background: var(--white-10);
  box-shadow: inset 0 0 0 1px var(--white-15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white-90);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: var(--white-15);
}

.menu-toggle[aria-expanded="true"] {
  background: white;
  color: #171717;
  box-shadow: none;
}

.menu-toggle__icon--close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close {
  display: block;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* ===== Hero Content ===== */
.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding:
    3.5rem max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero__text {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 640px) {
  .hero__container {
    padding-top: 5.5rem;
  }
}

@media (min-width: 768px) {
  .hero__container {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero__container {
    padding-top: 8.5rem;
  }
}

/* ===== Badge ===== */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: var(--white-10);
  box-shadow: inset 0 0 0 1px var(--white-15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 100%;
}

@media (max-width: 639px) {
  .hero__badge {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 1.15rem;
    text-align: center;
  }
}

.hero__badge-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  color: #171717;
  min-height: 1.25rem;
}

.hero__badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-90);
  line-height: 1.35;
}

@media (max-width: 639px) {
  .hero__badge-text {
    font-size: 0.8125rem;
  }
}

/* ===== Font Face ===== */
@font-face {
  font-family: 'GeorgiaLocal';
  src: url('assets/font/georgia.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeorgiaLocal';
  src: url('assets/font/georgiab.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeorgiaLocal';
  src: url('assets/font/georgiai.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'GeorgiaLocal';
  src: url('assets/font/georgiaz.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===== Title ===== */
.hero__title {
  font-family: 'GeorgiaLocal', Georgia, serif;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: white;
  max-width: 48rem;
  margin: 0 auto;
}

.hero__title-break {
  display: inline;
}

@media (min-width: 640px) {
  .hero__title-break {
    display: block;
  }
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

/* ===== Subtitle ===== */
.hero__subtitle {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  color: var(--white-90);
}

@media (min-width: 640px) {
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* ===== CTAs ===== */
.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 2rem;
  width: min(100%, 22rem);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--white-10);
  color: white;
  box-shadow: inset 0 0 0 1px var(--white-15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--primary:hover {
  background: var(--white-15);
}

.btn--ghost {
  background: transparent;
  color: var(--white-90);
  box-shadow: inset 0 0 0 1px var(--white-15);
}

.btn--ghost:hover {
  color: white;
  background: var(--white-5);
}

/* ===== Logos Section ===== */
.hero__logos {
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.hero__logos-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--white-70);
}

.hero__logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 640px) {
  .hero__logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero__logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 36px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hero__logo:hover {
  opacity: 1;
}

.hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero__logo--99 img {
  filter: grayscale(1) invert(1);
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(1rem);
  animation: fade-slide-in var(--duration) var(--ease-out) forwards;
}

.fade-in--1 {
  animation-delay: 0ms;
}

.fade-in--2 {
  animation-delay: 100ms;
}

.fade-in--3 {
  animation-delay: 200ms;
}

.fade-in--4 {
  animation-delay: 300ms;
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero.is-ready .hero__bg,
  .hero__bg,
  .header__logo-smile,
  .nav,
  .nav-backdrop,
  .fade-in {
    animation: none !important;
    transition: none !important;
  }

  .hero__bg--1 {
    opacity: 1;
  }

  .hero__bg--2,
  .hero__bg--3 {
    opacity: 0;
  }

  .header__logo-smile {
    opacity: 1;
    transform: translate(12px, -50%);
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}