/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 60px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.header-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}


.header .btn-secondary {
  flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
  padding: var(--space-8xl) var(--space-xl) var(--space-9xl);
}

.hero-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7xl);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: var(--space-lg);
  text-wrap: pretty;
}

.hero-accent {
  color: var(--blue-deep);
}

.hero-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: var(--space-4xl);
  max-width: 30em;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* CTA wrapper with glow effect */
.cta-glow-wrapper {
  position: relative;
  display: inline-flex;
}

.cta-glow-wrapper::before {
  content: '';
  position: absolute;
  inset: -18px -26px;
  border-radius: var(--radius-full);
  background: var(--gradient-glow);
  filter: blur(22px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.cta-glow-wrapper:hover::before {
  opacity: 1;
}

.cta-glow-wrapper .btn-primary {
  position: relative;
  z-index: 1;
}

.hero-video {
  position: relative;
}

.hero-video-glow {
  position: absolute;
  inset: -8% -6%;
  border-radius: var(--radius-sm);
  background: radial-gradient(50% 60% at 18% 30%, #4A7BFF 0%, transparent 70%),
              radial-gradient(50% 60% at 55% 80%, #9B6BFF 0%, transparent 70%),
              radial-gradient(50% 60% at 88% 25%, #FF6BA8 0%, transparent 70%);
  filter: blur(48px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.hero-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.hero-video-poster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-video-poster:hover {
  box-shadow: 0 12px 36px rgba(51, 102, 255, 0.12);
}

.hero-video-poster:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero-video-poster picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 2;
}

.hero-video-poster:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

.hero-video-poster::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="30" fill="rgba(255,255,255,0.1)" stroke="white" stroke-width="2"/><path d="M24 20 L24 40 L40 30 Z" fill="white"/></svg>') no-repeat center;
  background-size: contain;
  z-index: 3;
  transition: transform 0.3s ease;
}

.hero-video-poster:hover::after {
  transform: scale(1.1);
}

.hero-video .mono {
  position: relative;
  margin-top: var(--space-lg);
  font-size: 12px;
  color: var(--slate-light);
}

/* Mobile-first: stack video above copy */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6xl);
  }

  .hero-copy {
    order: 2;
  }

  .hero-video {
    order: 1;
  }

  .header-wrap {
    padding: var(--space-sm) var(--space-xl);
    gap: var(--space-md);
  }

  .hero {
    padding: var(--space-6xl) var(--space-xl) var(--space-8xl);
  }

  .hero-ctas {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-body {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-5xl) var(--space-xl) var(--space-6xl);
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: var(--space-md);
  }

  .hero-body {
    font-size: 15px;
    margin-bottom: var(--space-lg);
  }

  .cta-glow-wrapper::before {
    inset: -12px -18px;
  }
}

/* ===== FEATURES ===== */
.features {
  padding: 0 var(--space-xl) var(--space-10xl);
}

.features-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-wrap h2 {
  margin-bottom: var(--space-7xl);
  max-width: 20em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(51, 102, 255, 0.08);
}

.feature-card-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  background: var(--surface);
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card-contain {
  background: var(--page);
}

.feature-card-contain img {
  object-fit: contain;
}

.feature-card h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding: 0 var(--space-2xl);
}

.feature-card p {
  padding: 0 var(--space-2xl) var(--space-2xl);
  font-size: 15px;
  line-height: 1.62;
  color: var(--slate);
}

@media (max-width: 640px) {
  .feature-card {
    padding: var(--space-xl) 24px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 14px;
  }
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 0 var(--space-xl) var(--space-10xl);
}

.how-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how-wrap h2 {
  margin-bottom: var(--space-5xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5xl);
}

.step {
  display: flex;
  flex-direction: column;
}

.step-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: var(--space-lg);
}

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

.step-marker {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 500;
  flex-shrink: 0;
}

.step-rule {
  flex: 1;
  border-top: 1px dashed var(--blue);
  opacity: 0.5;
  margin-right: calc(-1 * var(--space-5xl));
}

.step:last-child .step-rule {
  margin-right: 0;
}

.step h3 {
  font-size: 19px;
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}

.steps-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-4xl);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: hide flowline and stack steps */
@media (max-width: 880px) {
  .features {
    padding: 0 var(--space-xl) var(--space-8xl);
  }

  .features-wrap h2 {
    margin-bottom: var(--space-6xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .how-it-works {
    padding: 0 var(--space-xl) var(--space-8xl);
  }

  .how-wrap h2 {
    margin-bottom: var(--space-6xl);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }

  .step-rule {
    display: none;
  }

  .step-media {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .step h3 {
    font-size: 18px;
  }

  .step p {
    font-size: 14px;
  }

  .steps-caption {
    padding: 12px 20px;
    font-size: 13px;
    gap: var(--space-sm);
  }
}

@media (max-width: 640px) {
  .features {
    padding: 0 var(--space-xl) var(--space-6xl);
  }

  .features-wrap h2 {
    font-size: 28px;
    margin-bottom: var(--space-5xl);
  }

  .how-it-works {
    padding: 0 var(--space-xl) var(--space-6xl);
  }

  .how-wrap h2 {
    font-size: 28px;
    margin-bottom: var(--space-5xl);
  }

  .step p {
    font-size: 13px;
  }
}

/* ===== SMART FEEDBACK ===== */
.smart-feedback {
  padding: 0 var(--space-xl) var(--space-10xl);
}

.feedback-band {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--band);
  border-radius: var(--radius-lg);
  padding: var(--space-8xl) 64px;
}

.feedback-heading {
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7xl);
  align-items: start;
}

.feedback-gestures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gesture-item {
  display: flex;
  flex-direction: column;
}

.gesture-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

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

.gesture-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-lighter);
  margin-top: var(--space-xs);
  text-align: center;
}

.feedback-list {
  display: flex;
  flex-direction: column;
}

.feedback-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.feedback-item:last-child {
  border-bottom: none;
}

.feedback-item:hover:not(.active) .feedback-header h3 {
  color: var(--blue);
  transition: color 0.2s ease;
}

.feedback-header {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.feedback-header h3 {
  flex: 1;
  font-size: 20px;
  margin: 0;
  color: var(--ink);
  transition: color 0.2s ease;
}

.feedback-detail {
  display: none;
  animation: slideDown 0.3s ease-out;
}

.feedback-item.active .feedback-detail {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-detail p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--slate);
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.feedback-underline {
  height: 2px;
  background: var(--blue);
  width: 44px;
  margin-top: var(--space-lg);
}

.feedback-active-title {
  color: var(--blue-deep);
}

/* Mobile: stack feedback grid */
@media (max-width: 880px) {
  .smart-feedback {
    padding: 0 var(--space-xl) var(--space-8xl);
  }

  .feedback-band {
    border-radius: var(--radius-md);
    padding: var(--space-6xl) var(--space-xl);
    margin: 0 auto;
  }

  .feedback-heading {
    font-size: 31px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6xl);
  }

  .feedback-gestures {
    gap: 14px;
  }

  .gesture-placeholder {
    aspect-ratio: 1;
  }

  .feedback-header h3 {
    font-size: 18px;
  }

  .feedback-detail p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .smart-feedback {
    padding: 0 var(--space-xl) var(--space-6xl);
  }

  .feedback-band {
    padding: var(--space-5xl) var(--space-xl);
  }

  .feedback-heading {
    font-size: 24px;
  }

  .feedback-grid {
    gap: var(--space-5xl);
  }

  .feedback-gestures {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feedback-item {
    padding: var(--space-md) 0;
  }

  .feedback-header {
    gap: 12px;
  }

  .feedback-header h3 {
    font-size: 16px;
  }

  .mono-number {
    font-size: 12px;
  }
}

/* ===== MISSION ===== */
.mission {
  padding: 0 var(--space-xl) var(--space-10xl);
}

.mission-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7xl);
  align-items: center;
}

.mission-statement {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  text-wrap: pretty;
}

.mission-accent {
  color: var(--blue-deep);
}

.mission-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: var(--space-2xl);
}

.mission-checks,
.community-checks {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.check-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}

.check-mark {
  color: var(--blue);
  flex-shrink: 0;
}

.mission-image,
.community-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mission-image img,
.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--page) 0%, var(--band) 100%);
}

/* ===== COMMUNITY ===== */
.community {
  padding: 0 var(--space-xl) var(--space-10xl);
}

.community-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7xl);
  align-items: center;
}

.community-copy h2 {
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}

.community-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: var(--space-2xl);
}

/* Mobile: stack sections and reorder */
@media (max-width: 880px) {
  .mission {
    padding: 0 var(--space-xl) var(--space-8xl);
  }

  .community {
    padding: 0 var(--space-xl) var(--space-8xl);
  }

  .mission-grid,
  .community-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6xl);
  }

  .mission-copy {
    order: 2;
  }

  .mission-image {
    order: 1;
  }

  .community-image {
    order: 2;
  }

  .community-copy {
    order: 1;
  }

  .mission-statement {
    font-size: 29px;
  }

  .community-copy h2 {
    font-size: 31px;
  }

  .mission-checks,
  .community-checks {
    gap: var(--space-md);
  }

  .check-item {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .mission {
    padding: 0 var(--space-xl) var(--space-6xl);
  }

  .community {
    padding: 0 var(--space-xl) var(--space-6xl);
  }

  .mission-statement {
    font-size: 22px;
    margin-bottom: var(--space-md);
  }

  .mission-body,
  .community-body {
    font-size: 15px;
  }

  .community-copy h2 {
    font-size: 24px;
  }

  .mission-image,
  .community-image {
    aspect-ratio: 3/2;
  }
}

/* ===== SUBSCRIBE ===== */
.subscribe {
  padding: 0 var(--space-xl) var(--space-9xl);
}

.subscribe-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.subscribe-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 76px 40px;
  text-align: center;
}

.subscribe-eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}

.subscribe-band h2 {
  font-size: 38px;
  margin-bottom: var(--space-sm);
}

.subscribe-band p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: var(--space-sm);
}

.subscribe-band p:last-of-type {
  margin-bottom: var(--space-2xl);
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.subscribe-form input {
  flex: 1 1 260px;
  max-width: 340px;
  min-height: 44px;
}

.subscribe-form button {
  flex-shrink: 0;
  min-height: 44px;
}

.subscribe-message {
  font-family: var(--font-mono);
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 14px 26px;
  margin-top: var(--space-md);
  animation: fadeIn 0.3s ease-out;
}

.subscribe-message.success {
  background: var(--ink);
  color: var(--surface);
}

.subscribe-message.error {
  background: #FFE8E8;
  color: #C92A2A;
  border: 1px solid #FF9999;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: adjust subscribe band padding */
@media (max-width: 880px) {
  .subscribe {
    padding: 0 var(--space-xl) var(--space-8xl);
  }

  .subscribe-band {
    border-radius: var(--radius-md);
    padding: var(--space-6xl) var(--space-xl);
  }

  .subscribe-band h2 {
    font-size: 31px;
  }

  .subscribe-band p {
    font-size: 15px;
  }

  .subscribe-form {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .subscribe-form input {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }

  .subscribe-form button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .subscribe {
    padding: 0 var(--space-xl) var(--space-6xl);
  }

  .subscribe-band {
    padding: var(--space-5xl) var(--space-xl);
  }

  .subscribe-band h2 {
    font-size: 24px;
  }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  font-size: 13px;
  color: var(--slate-light);
}

.footer-eu-badge {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}

.footer-eu-badge img {
  max-width: 240px;
  height: auto;
  display: block;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

.footer-center,
.footer-right {
  display: flex;
  gap: 18px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-label {
  font-size: 12px;
  color: var(--slate-light);
  line-height: 1.4;
}

.footer a {
  color: var(--slate);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--ink);
}

/* Mobile: adjust footer layout */
@media (max-width: 880px) {
  .footer {
    margin-top: var(--space-8xl);
  }

  .footer-wrap {
    gap: var(--space-lg);
    padding: var(--space-xl);
  }

  .footer-eu-badge {
    padding: var(--space-lg) 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-center,
  .footer-right {
    justify-content: center;
    gap: 12px;
  }

  .footer-contact {
    align-items: center;
  }

  .footer a {
    min-height: 44px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .footer {
    margin-top: var(--space-6xl);
  }

  .footer-wrap {
    font-size: 12px;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
  }
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
/* Ensure no horizontal scroll at any width from 320px up */
@media (max-width: 768px) {
  .header-wrap {
    gap: var(--space-sm);
  }

  .hero-ctas {
    gap: var(--space-sm);
  }

  .hero-ctas .btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .steps-grid {
    gap: var(--space-lg);
  }

  .feedback-gestures {
    gap: 12px;
  }

  .subscribe-form {
    gap: var(--space-xs);
  }
}

@media (max-width: 375px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  h2 {
    font-size: 24px;
  }

  .hero-body {
    font-size: 15px;
  }

  .mission-statement {
    font-size: 22px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .feedback-header {
    gap: 12px;
  }

  .feedback-header h3 {
    font-size: 16px;
  }
}

/* ===== VIDEO MODAL ===== */
.hero-video-btn {
  position: relative;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.hero-video-btn:hover .play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.play-overlay svg {
  transform: scale(1);
  transition: transform 0.3s ease;
}

.hero-video-btn:hover .play-overlay svg {
  transform: scale(1.1);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    max-width: 100%;
  }

  .video-modal-close {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
  }

  .demo-modal-close {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
  }

  .demo-modal-frame {
    width: 95%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* ===== DEMO MODAL ===== */
dialog.demo-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 960px;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--ink);
  box-shadow: var(--shadow-md);
  z-index: 1001;
}

/* VERSION A: Light backdrop, no blur (--ink at 55%) */
dialog.demo-modal::backdrop {
  background: var(--backdrop-light);
}

/* VERSION B (alternative): Medium backdrop, no blur (--ink at 70%)
dialog.demo-modal::backdrop {
  background: var(--backdrop-medium);
}
*/

/* VERSION C (alternative): Light backdrop with blur (--ink at 55% + blur)
dialog.demo-modal::backdrop {
  background: var(--backdrop-light);
  backdrop-filter: blur(4px);
}
*/

.demo-modal-close {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all 0.2s ease;
}

.demo-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.demo-modal-close:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.demo-modal-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.demo-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.demo-modal-poster {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.demo-modal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-modal-message {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--slate);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  dialog.demo-modal {
    animation: none;
  }

  .demo-modal-close:hover {
    transform: none;
  }
}
