:root {
  --bg-base: #0c0a09;
  --bg-surface: #1c1917;
  --bg-surface-hover: #292524;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-color: #34d399;
  --accent-glow: rgba(52, 211, 153, 0.15);
  --home-amber-glow: rgba(245, 158, 11, 0.16);
  --home-indigo-glow: rgba(99, 102, 241, 0.09);
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: none;
  min-height: 100%;
  background-color: var(--bg-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

.app-home-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.app-home-bg__fallback,
.app-home-bg__threads,
.app-home-bg__glow {
  position: absolute;
  inset: 0;
}

.app-home-bg__fallback {
  opacity: 0.22;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), transparent 34%),
    repeating-linear-gradient(116deg, transparent 0 116px, rgba(255, 255, 255, 0.032) 116px 118px, transparent 118px 232px),
    repeating-linear-gradient(62deg, transparent 0 138px, rgba(245, 158, 11, 0.028) 138px 140px, transparent 140px 280px);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 12%, rgba(0, 0, 0, 0.95) 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 12%, rgba(0, 0, 0, 0.95) 84%, transparent 100%);
}

.app-home-bg__threads {
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: saturate(120%);
}

.app-home-bg__threads canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.threads-ready .app-home-bg__fallback {
  opacity: 0.08;
}

body.threads-ready .app-home-bg__threads {
  opacity: 0.42;
}

body.threads-fallback .app-home-bg__fallback {
  opacity: 0.28;
}

.app-home-bg__glow {
  filter: blur(120px);
}

.app-home-bg__glow--amber {
  top: 0;
  left: 50%;
  width: 75%;
  height: 500px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.1);
}

.app-home-bg__glow--indigo {
  right: 0;
  bottom: 0;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.05);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.64);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-switch__button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch__button:hover {
  color: var(--text-primary);
}

.lang-switch__button.is-active {
  color: var(--bg-base);
  background: var(--text-primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-copy strong {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.topnav {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.topnav a:hover {
  color: var(--text-primary);
}

.hero {
  padding: 180px 24px 100px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -24%;
  left: 50%;
  transform: translateX(-50%);
  width: min(72vw, 860px);
  height: 540px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 72%);
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: min(38vw, 480px);
  height: min(38vw, 480px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 72%);
  z-index: -1;
  pointer-events: none;
  filter: blur(18px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 24px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  color: var(--text-secondary);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
}

.btn-primary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.topbar-cta {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.section {
  position: relative;
  padding: 120px 0;
  border-top: none;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.07) 18%, rgba(245, 158, 11, 0.12) 50%, rgba(255, 255, 255, 0.07) 82%, transparent 100%);
  opacity: 0.42;
}

.section::after {
  content: "";
  position: absolute;
  top: -90px;
  left: 50%;
  width: min(1200px, 100%);
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.028), transparent 68%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-kicker {
  font-size: 0.875rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 48px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.8), rgba(41, 37, 36, 0.58));
}

.feature-index {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 24px;
  right: 32px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
}

.shot-card {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.8), rgba(18, 16, 14, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.shot-browser-bar {
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.window-dot:nth-child(1) {
  background: #ff5f56;
}

.window-dot:nth-child(2) {
  background: #ffbd2e;
}

.window-dot:nth-child(3) {
  background: #27c93f;
}

.shot-frame {
  position: relative;
  background: transparent;
  overflow: visible;
}

.shot-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.shot-image-library {
  object-position: center top;
}

.shot-image-organizer {
  object-position: center top;
}

.shot-image-tags {
  object-position: center top;
}

.shot-image-system {
  object-position: center center;
}

.workflow-showcase {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.workflow-step {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.workflow-step-reverse {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.45fr);
}

.workflow-step-reverse .workflow-visual {
  order: 2;
}

.workflow-step-reverse .workflow-copy {
  order: 1;
}

.workflow-visual {
  min-width: 0;
  position: relative;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.workflow-visual::before {
  content: none;
}

.workflow-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.workflow-index {
  font-size: 0.82rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
}

.workflow-copy h3 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.workflow-emphasis {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 600;
  max-width: 28rem;
}

.workflow-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 30rem;
}

.workflow-description strong {
  color: var(--text-primary);
  font-weight: 700;
}

body.reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.reveal-ready .reveal-on-scroll[data-reveal="left"] {
  transform: translate3d(-36px, 40px, 0);
}

body.reveal-ready .reveal-on-scroll[data-reveal="right"] {
  transform: translate3d(36px, 40px, 0);
}

body.reveal-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  body.reveal-ready .reveal-on-scroll,
  body.reveal-ready .reveal-on-scroll[data-reveal="left"],
  body.reveal-ready .reveal-on-scroll[data-reveal="right"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.release-panel {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.74), rgba(18, 16, 14, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.release-meta {
  display: flex;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-block-chip {
  margin-left: auto;
  justify-content: flex-start;
}

.meta-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-value {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--accent-color);
}

.meta-value-date {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
}

.release-notes {
  color: var(--text-secondary);
}

.release-notes-label {
  display: block;
  margin-bottom: 16px;
}

.release-notes h3,
.release-notes h4 {
  color: var(--text-primary);
  margin: 16px 0 8px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

.release-notes p {
  color: var(--text-secondary);
}

.release-notes ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.release-notes li + li {
  margin-top: 10px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.download-card {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.74), rgba(18, 16, 14, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.download-card:hover {
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.82), rgba(28, 25, 23, 0.64));
  border-color: var(--accent-color);
}

.download-card.recommended {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.05) 0%, transparent 100%);
}

.card-chip {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-chip {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.card-chip.subtle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.download-card h3 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card-link {
  margin-top: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-color);
  text-underline-offset: 4px;
}

.download-card:hover .card-link {
  text-decoration-color: var(--accent-color);
}

.download-help {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.7), rgba(18, 16, 14, 0.55));
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.download-help strong {
  color: var(--text-primary);
  margin-right: 8px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.72), rgba(18, 16, 14, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-item summary {
  padding: 24px;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

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

.faq-item p {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0), rgba(12, 10, 9, 0.32));
}

.footer-brand strong {
  color: var(--text-primary);
  margin-right: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 20px;
  }

  .topnav {
    display: none;
  }

  .topbar-cta {
    display: none;
  }

  .lang-switch__button {
    padding: 7px 10px;
  }

  .hero {
    padding: 140px 24px 60px;
  }

  .app-home-bg__threads {
    opacity: 0.3;
  }

  .app-home-bg__glow--amber {
    width: 100vw;
    height: 360px;
    top: 0;
  }

  .app-home-bg__glow--indigo {
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: -40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .workflow-step,
  .workflow-step-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .workflow-step-reverse .workflow-visual,
  .workflow-step-reverse .workflow-copy {
    order: initial;
  }

  .feature-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .workflow-visual {
    padding: 0;
    border-radius: 0;
  }

  .shot-frame {
    overflow: visible;
  }

  .release-meta {
    flex-direction: column;
    gap: 24px;
  }

  .meta-block-chip {
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}
