/* Rasora homepage — premium motion & layout (brand tokens unchanged) */

.rasora-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.rasora-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.rasora-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.72) 0%, rgba(6, 7, 10, 0.28) 38%, rgba(6, 7, 10, 0.62) 68%, rgba(6, 7, 10, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 7, 10, 0.82) 0%, rgba(6, 7, 10, 0.35) 55%, transparent 100%);
  pointer-events: none;
}

.rasora-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}

.rasora-btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink, #f4f1ea);
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.rasora-btn-demo:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(227, 184, 115, 0.4);
}

.rasora-trust-strip {
  position: relative;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.rasora-trust-inner {
  width: min(1240px, calc(100% - clamp(40px, 8vw, 112px)));
  margin: 0 auto;
  padding: clamp(22px, 3vh, 32px) 0;
}

.rasora-trust-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, #9d978c);
  margin-bottom: 14px;
}

.rasora-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.rasora-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: #ddd6c9;
  white-space: nowrap;
}

.rasora-trust-badge svg,
.rasora-trust-badge span.icon {
  opacity: 0.85;
}

.rasora-section-kicker {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold, #e3b873);
  margin-bottom: 16px;
}

.rasora-section-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.rasora-section-lead {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted, #9d978c);
  font-weight: 500;
  line-height: 1.6;
}

/* AI pipeline */
.rasora-ai-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(40px, 6vh, 72px);
}

.rasora-ai-flow {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.rasora-ai-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rasora-ai-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.rasora-ai-step.is-done {
  opacity: 0.65;
}

.rasora-ai-step-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rasora-ai-step.is-active .rasora-ai-step-icon {
  background: rgba(59, 130, 255, 0.16);
  border-color: rgba(59, 130, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(59, 130, 255, 0.12);
}

.rasora-ai-step-label {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.rasora-ai-step-sub {
  font-size: 13px;
  color: var(--muted, #9d978c);
  font-weight: 600;
  margin-top: 2px;
}

.rasora-ai-connector {
  width: 2px;
  height: 18px;
  margin-left: 23px;
  background: linear-gradient(180deg, rgba(227, 184, 115, 0.5), rgba(255, 255, 255, 0.08));
}

.rasora-ai-result {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(227, 184, 115, 0.28);
  background: #0a0c13;
  min-height: 320px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.rasora-ai-result img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.rasora-ai-result-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 7, 10, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.rasora-ai-result-title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 36px);
  color: #fff;
  line-height: 1.05;
}

.rasora-ai-result-meta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold, #e3b873);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cinematic grid */
.rasora-cinema-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .rasora-cinema-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rasora-cinema-grid {
    grid-template-columns: 1fr;
  }
}

.rasora-cinema-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  aspect-ratio: 16 / 9;
  background: #0a0c13;
}

.rasora-cinema-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rasora-cinema-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 7, 10, 0.55) 100%);
  pointer-events: none;
}

/* Rich chef cards */
.rasora-chef-card {
  flex: 0 0 min(196px, 46vw);
  scroll-snap-align: start;
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  background: var(--card, rgba(255, 255, 255, 0.035));
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}

.rasora-chef-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 184, 115, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.rasora-chef-card-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #0a0c13;
}

.rasora-chef-card-hero--plain {
  background:
    radial-gradient(ellipse 120% 100% at 50% 50%, rgba(227, 184, 115, 0.14), transparent 72%),
    linear-gradient(180deg, #14161e, #0a0c13);
}

.rasora-chef-card-hero--photo {
  background: #0a0c13;
}

.rasora-chef-card-hero .rasora-chef-card-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
}

.rasora-chef-card-hero--plain .rasora-chef-card-avatar {
  transform: scale(1.45);
  mix-blend-mode: screen;
  opacity: 0.92;
  filter: drop-shadow(0 8px 24px rgba(227, 184, 115, 0.2));
}

.rasora-chef-card-avatar--photo {
  object-position: center 30%;
}

.rasora-chef-card-body {
  padding: 10px 12px 12px;
  text-align: center;
}

.rasora-chef-card-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* Messaging mockup */
.rasora-chat-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.rasora-chat-mock {
  border-radius: 28px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.rasora-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  margin-bottom: 18px;
}

.rasora-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: #1a1d26;
}

.rasora-chat-bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 12px;
  animation: rsChatIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rasora-chat-bubble--them {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e2d6;
  border-bottom-left-radius: 6px;
}

.rasora-chat-bubble--me {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(59, 130, 255, 0.22), rgba(59, 130, 255, 0.08));
  border: 1px solid rgba(59, 130, 255, 0.35);
  color: #dce8ff;
  border-bottom-right-radius: 6px;
}

.rasora-chat-recipe-card {
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.rasora-chat-recipe-card img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center 35%;
}

.rasora-chat-recipe-card div {
  padding: 10px 12px;
  font-weight: 800;
  font-size: 14px;
}

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

/* Fridge emphasis */
.rasora-fridge-panel {
  position: relative;
  border-radius: 30px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
}

.rasora-fridge-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(232, 118, 60, 0.14), transparent 65%);
  pointer-events: none;
}

.rasora-fridge-chip {
  animation: rsChipPop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rsChipPop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rasora-fridge-count {
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold, #e3b873);
  transition: transform 0.3s ease;
}

.rasora-fridge-count.is-bump {
  transform: scale(1.08);
}

/* Feature grid */
.rasora-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.rasora-feature-tile {
  padding: clamp(20px, 2vw, 28px);
  border-radius: 22px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  background: var(--card, rgba(255, 255, 255, 0.035));
  min-height: 160px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s, background 0.35s;
}

.rasora-feature-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 184, 115, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.rasora-feature-tile-icon {
  font-size: 26px;
  margin-bottom: auto;
}

.rasora-feature-tile-title {
  margin: 18px 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rasora-feature-tile-soon {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #9d978c);
}

/* Demo modal */
.rasora-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 7, 10, 0.88);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rasora-demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rasora-demo-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 720px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0c13;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rasora-demo-modal.is-open .rasora-demo-panel {
  transform: translateY(0) scale(1);
}

.rasora-demo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  font-family: inherit;
}

.rasora-demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

/* Footer social */
.rasora-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.rasora-social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted, #9d978c);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.rasora-social-link:hover {
  color: var(--ink, #f4f1ea);
  border-color: rgba(227, 184, 115, 0.35);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .rasora-ai-step,
  .rasora-chat-bubble,
  .rasora-fridge-chip,
  .rasora-feature-tile,
  .rasora-chef-card,
  .rasora-btn-demo {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .rasora-hero-video {
    transform: none;
  }
}
