/* ==========================================================================
   Unfuse537 — site design system
   Reference spec: fullscreen video hero, Geist type, black/white minimal.
   Tailwind utility values are translated 1:1 into plain CSS
   (no bundler / no Tailwind build step in this project).
   Breakpoints: sm 640px · md 768px · lg 1024px
   ========================================================================== */

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

html,
body {
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
}

#root {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* The editor route re-uses the legacy stylesheet, so scope the site font to
   site chrome only via the .font-geist container class. */
.font-geist,
.font-geist * {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   HERO — single viewport section
   root: relative h-screen w-full overflow-hidden bg-black font-geist
   ========================================================================== */
/* The poster stands in for the footage: it paints as soon as this stylesheet
   lands, so the hero looks finished before a single video byte is requested.
   On phones it is the final state — the video is never downloaded there.
   We use BOTH css background-image AND an <img> tag because some mobile browsers
   (esp. WeChat) deprioritize css background-images and may never load them. */
.hero-root {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background-color: #0a1628;
  background-image: url('/assets/hero-poster.jpg');
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}

/* <img> tag version of the poster — guaranteed to load on mobile/WeChat
   where css background-image may be deprioritized or dropped entirely. */
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  border: 0;
  z-index: 0;
}

/* video: absolute, full size, object-cover, object-position 70% center,
   sits behind all content (no z-index) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  border: 0;
  /* Stay invisible until the first frame is decodable, otherwise the element
     flashes black over the poster while it buffers. */
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-video.is-ready {
  opacity: 1;
}

/* Subtle legibility scrim so white type stays readable over any frame.
   Kept very light so the footage still reads as the hero. */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 42%);
}

/* ==========================================================================
   NAVBAR (z-30)
   flex justify-between items-center · px-6 py-5 md:px-12 lg:px-16
   ========================================================================== */
.navbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px; /* py-5 px-6 */
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .navbar {
    padding-left: 48px; /* md:px-12 */
    padding-right: 48px;
  }
}

@media (min-width: 1024px) {
  .navbar {
    padding-left: 64px; /* lg:px-16 */
    padding-right: 64px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo — text-lg font-semibold tracking-tight text-white sm:text-xl */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}

@media (min-width: 640px) {
  .nav-logo {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Desktop links — hidden on mobile, flex on md+ */
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

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

.nav-links a {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

/* Desktop CTA — rounded-lg bg-white px-5 py-2 text-sm font-medium text-black */
.nav-cta {
  display: none;
  border-radius: 8px;
  background: #fff;
  padding: 8px 20px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-cta:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-block;
  }
}

/* Hamburger toggle — 40x40, z-50, md:hidden */
.nav-burger {
  position: relative;
  z-index: 50;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: transform 0.15s ease;
}

.nav-burger:active {
  transform: scale(0.9);
}

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

/* Animated Menu / X swap — rotate 90deg out, rotate in, opacity + scale */
.nav-burger .icon-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger .icon-menu {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.nav-burger .icon-close {
  transform: rotate(-90deg) scale(0.5);
  opacity: 0;
}

.nav-burger.is-open .icon-menu {
  transform: rotate(90deg) scale(0.5);
  opacity: 0;
}

.nav-burger.is-open .icon-close {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* ==========================================================================
   MOBILE MENU (z-20)
   absolute inset-x-0 top-0 · bg-black/98 backdrop-blur-xl
   ========================================================================== */
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  height: 100vh;
  height: 100svh;
  opacity: 1;
  pointer-events: auto;
}

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

.mobile-menu-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.mobile-menu.is-open .mobile-menu-inner {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-inner a.m-link {
  display: block;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.mobile-menu-inner a.m-link:hover {
  color: #fff;
}

.mobile-menu-inner .m-cta {
  align-self: flex-start;
  margin-top: 24px;
  border-radius: 9999px;
  background: #fff;
  padding: 14px 32px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.mobile-menu-inner .m-cta:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   HERO CONTENT (z-10)
   flex-col justify-between h-[calc(100vh-80px)]
   px-6 pb-10 pt-12 sm:pb-12 sm:pt-16 md:px-12 md:pb-16 md:pt-20 lg:px-16
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 80px);
  height: calc(100svh - 80px);
  padding: 48px 24px 40px; /* pt-12 px-6 pb-10 */
}

@media (min-width: 640px) {
  .hero-content {
    padding-top: 64px; /* sm:pt-16 */
    padding-bottom: 48px; /* sm:pb-12 */
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding-left: 48px; /* md:px-12 */
    padding-right: 48px;
    padding-top: 80px; /* md:pt-20 */
    padding-bottom: 64px; /* md:pb-16 */
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding-left: 64px; /* lg:px-16 */
    padding-right: 64px;
  }
}

.hero-top {
  max-width: 768px; /* max-w-3xl */
}

/* Badge — text-xs sm:text-sm text-white/90 · fadeSlideUp 0.8s ease 0.2s both */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 24px;
  }
}

/* Heading — text-3xl sm:text-5xl md:text-6xl lg:text-7xl
   font-medium leading-[1.1] tracking-tight text-white
   fadeSlideUp 0.8s ease 0.4s both */
.hero-title {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  animation: fadeSlideUp 0.8s ease 0.4s both;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 48px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 60px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 72px;
  }
}

/* Bottom paragraph — text-sm sm:text-base md:text-lg leading-relaxed
   text-white/60 max-w-sm sm:max-w-lg mb-5 sm:mb-6 · 0.7s delay */
.hero-sub {
  font-size: 14px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
  max-width: 384px; /* max-w-sm */
  margin-bottom: 20px;
  animation: fadeSlideUp 0.8s ease 0.7s both;
}

@media (min-width: 640px) {
  .hero-sub {
    font-size: 16px;
    max-width: 512px; /* sm:max-w-lg */
    margin-bottom: 24px;
  }
}

@media (min-width: 768px) {
  .hero-sub {
    font-size: 18px;
  }
}

/* CTA — rounded-lg bg-white px-5 py-2.5 sm:px-6 sm:py-3 text-sm font-medium
   text-black inline-flex items-center gap-2 · 0.9s delay */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: fadeSlideUp 0.8s ease 0.9s both;
}

.hero-cta:hover {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .hero-cta {
    padding: 12px 24px;
  }
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ==========================================================================
   SOLID NAV — inner pages (features / gallery / login / 404)
   ========================================================================== */
.navbar.solid {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* On inner pages the menu has no hero container to anchor to, so pin it to
   the viewport instead. z-index must beat the sticky solid navbar's stacking
   context sibling order. */
.mobile-menu.fixed {
  position: fixed;
  z-index: 55;
}

/* Editor nav — compact bar */
.navbar.editor {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-exit {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-exit:hover {
  color: #fff;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  font-family: inherit;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Language toggle (EN / 中文) ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  user-select: none;
}
.lang-toggle button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font: inherit;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.2s ease;
}
.lang-toggle button:hover {
  color: rgba(255, 255, 255, 0.9);
}
.lang-toggle button.is-active {
  color: #fff;
  font-weight: 600;
}
.lang-toggle .lang-sep {
  color: rgba(255, 255, 255, 0.35);
}
/* On the light-green editor bar the toggle needs dark text */
.navbar.editor .lang-toggle button {
  color: rgba(30, 58, 40, 0.6);
}
.navbar.editor .lang-toggle button:hover {
  color: rgba(30, 58, 40, 0.9);
}
.navbar.editor .lang-toggle button.is-active {
  color: #1e3a28;
}
.navbar.editor .lang-toggle .lang-sep {
  color: rgba(30, 58, 40, 0.35);
}

/* ==========================================================================
   Editor Nav — mobile compact (≤640px)
   Prevents the lang toggle ("EN / 中文") from wrapping into "文 / 器"
   on narrow viewports. Keeps every control reachable.
   ========================================================================== */
@media (max-width: 640px) {
  .navbar.editor {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 6px;
  }
  .navbar.editor .nav-left { gap: 6px; min-width: 0; }
  .navbar.editor .nav-logo {
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
  }
  .navbar.editor .nav-logo img { width: 22px; height: 22px; }
  .navbar.editor .nav-right { gap: 8px; flex-wrap: nowrap; }
  .navbar.editor .lang-toggle { font-size: 12px; gap: 2px; }
  .navbar.editor .lang-toggle button { padding: 2px 3px; }
  .navbar.editor .nav-exit {
    font-size: 12px;
    white-space: nowrap;
  }
  .navbar.editor .nav-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
    flex-shrink: 0;
  }
}

.site-editor-wrap {
  background: #fff;
  min-height: calc(100vh - 60px);
}

/* Suspense fallback shown while the lazily-loaded editor chunk downloads. */
.editor-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  background: #fff;
  color: #111;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   INNER PAGES — shared dark layout
   ========================================================================== */
.page {
  background: #000;
  min-height: 100vh;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .section {
    padding: 112px 48px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-left: 64px;
    padding-right: 64px;
  }
}

.section-head {
  max-width: 768px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

.section-desc {
  font-size: 16px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
}

/* ===== Buttons ===== */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease;
}

.btn-solid:hover {
  transform: scale(1.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== Feature cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease,
    border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
}

.feature-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.feature-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #000;
}

.feature-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.feature-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.feature-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.feature-go svg {
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-go svg {
  transform: translateX(4px);
}

/* ===== Blog cards ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: #F4F1E8;
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.1);
}

.blog-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #75C5DE 0%, #F4F1E8 100%);
  overflow: hidden;
}

.blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  background: #75C5DE;
  color: #0c1e26;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.blog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.55);
}

.blog-dot {
  opacity: 0.5;
}

.blog-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111;
}

.blog-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: rgba(17, 17, 17, 0.7);
  /* Clamp to 3 lines so the cards stay uniform */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1c7e98;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}

.blog-card:hover .blog-arrow {
  transform: translateX(4px);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.gallery-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d0d;
  aspect-ratio: 4 / 3;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gt-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.gt-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.gt-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Pricing ===== */
.pricing {
  max-width: 1080px;
  margin: 0 auto;
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 18px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.billing-toggle button {
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.billing-toggle button.is-active {
  background: #75C5DE;
  color: #111;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card.is-popular {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 18px 50px rgba(117, 197, 222, 0.25);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #75C5DE;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.price-card.is-popular h3 {
  color: #111;
}

.price-tagline {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.price-card.is-popular .price-tagline {
  color: rgba(0, 0, 0, 0.6);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 2px;
}

.price-num {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  opacity: 0.55;
  font-weight: 400;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 8px;
  padding: 0;
  flex: 1;
}

.price-features li {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 24px;
  position: relative;
}

.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(117, 197, 222, 0.25);
  border: 1px solid #75C5DE;
}

.price-card.is-popular .price-features li {
  color: rgba(0, 0, 0, 0.7);
}

.price-current {
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
}

.price-card.is-popular .price-current {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.7);
}

.price-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Pricing FAQ + shared FAQ accordion */
.pricing-faq {
  max-width: 760px;
  margin: 56px auto 0;
}

.pricing-faq h3 {
  font-size: 22px;
  margin: 0 0 18px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 18px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: #75C5DE;
  font-weight: 400;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

/* Checkout modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.modal-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #fff;
}

.modal-card .sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.checkout-row strong {
  color: #fff;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions .btn-solid,
.modal-actions .btn-ghost {
  flex: 1;
  justify-content: center;
}

/* On the white "popular" card, invert the solid button so it stays visible */
.price-card.is-popular .btn-solid {
  background: #111;
  color: #fff;
}

/* ===== Auth ===== */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #000;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 8px;
}

.auth-card .sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.field input {
  height: 44px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.field input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.auth-card .btn-solid {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.auth-error {
  font-size: 13px;
  color: #ff8080;
  margin-bottom: 12px;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.auth-switch a {
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 64px 24px 32px;
}

@media (min-width: 768px) {
  .footer {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding-left: 64px;
    padding-right: 64px;
  }
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 340px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

.mit-note {
  max-width: 760px;
}

/* ===== 404 ===== */
.notfound {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #000;
  padding: 48px 24px;
}

.notfound h1 {
  font-size: 88px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
}

.notfound p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-title,
  .hero-sub,
  .hero-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-video {
    display: none;
  }
}
