/* ==========================================================================
   DecorAI – Mediterranean VIP landing page
   ========================================================================== */

:root {
  --warm-white: #FAF7F2;
  --ivory: #F5EFE6;
  --limestone: #E8DFD1;
  --pale-sand: #DCC9AE;
  --terracotta: #C87F61;
  --clay: #B56647;
  --olive: #7F8F5E;
  --sage: #A8B194;
  --dusty-blue: #9BAAB8;
  --taupe: #C4B8A4;
  --charcoal: #3A3530;
  --charcoal-soft: #5A524A;
  --brushed-gold: #C9A55A;
  --soft-bronze: #A77E4C;
  --coral: #D98A72;
  --border: rgba(58, 53, 48, 0.12);
  --border-strong: rgba(58, 53, 48, 0.22);
  --shadow-sm: 0 1px 2px rgba(58, 53, 48, 0.06), 0 2px 8px rgba(58, 53, 48, 0.04);
  --shadow-md: 0 4px 12px rgba(58, 53, 48, 0.08), 0 12px 32px rgba(58, 53, 48, 0.06);
  --shadow-lg: 0 10px 30px rgba(58, 53, 48, 0.1), 0 30px 80px rgba(58, 53, 48, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --container-wide: 1360px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: var(--clay); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }

p { font-size: 1rem; color: var(--charcoal-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--charcoal-soft); line-height: 1.7; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: var(--container-wide); }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--clay);
  margin-bottom: 20px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--clay);
}

.section-header { max-width: 780px; margin-bottom: 56px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header h2 { margin-bottom: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--charcoal);
  color: var(--warm-white);
}
.btn-primary:hover {
  background: var(--clay);
  color: var(--warm-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--warm-white);
  transform: translateY(-1px);
}

/* App store badges */
.store-badges {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-block;
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: 12px;
}
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge.compact img { height: 44px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav-wrap.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 247, 242, 0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.nav-brand img { height: 38px; width: 38px; border-radius: 10px; }
.nav-brand span.accent { color: var(--clay); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--charcoal);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn, .nav-cta .store-badges { display: none; }
  .nav-cta .store-badges.nav-compact { display: inline-flex; }
  .nav-toggle { display: block; }
  .mobile-menu.open { display: block; }
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--warm-white);
  padding: 20px 0 28px;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 1.05rem; }
.mobile-menu .store-badges { margin-top: 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(60px, 9vw, 120px);
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(201, 165, 90, 0.12), transparent 60%),
    radial-gradient(900px 500px at 5% 20%, rgba(168, 177, 148, 0.15), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--warm-white) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.21 0 0 0 0 0.19 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.hero-copy .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brushed-gold);
  box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.2);
}
.hero h1 {
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 500;
}
.hero .lead { margin-bottom: 18px; max-width: 580px; }
.hero-sub { color: var(--charcoal-soft); max-width: 560px; margin-bottom: 34px; font-size: 1rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-trust .stars {
  color: var(--brushed-gold);
  letter-spacing: 2px;
  font-size: 1rem;
}
.hero-trust strong { color: var(--charcoal); font-weight: 500; }
.hero-trust small { color: var(--charcoal-soft); }

/* Hero visual: before/after slider */
.hero-visual {
  position: relative;
}
.ba-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--limestone);
}
.ba-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-frame .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-frame .ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--warm-white);
  box-shadow: 0 0 0 1px rgba(58, 53, 48, 0.08), 0 6px 20px rgba(0,0,0,0.15);
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba-frame .ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: var(--warm-white);
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  color: var(--charcoal);
  font-weight: 500;
}
.ba-frame .ba-knob::before,
.ba-frame .ba-knob::after {
  content: "‹";
  position: absolute;
  font-size: 1.3rem;
  color: var(--charcoal);
}
.ba-frame .ba-knob::after { content: "›"; right: 10px; }
.ba-frame .ba-knob::before { left: 10px; }
.ba-frame .ba-label {
  position: absolute;
  bottom: 18px;
  padding: 8px 16px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.ba-frame .ba-label.before { left: 18px; }
.ba-frame .ba-label.after { right: 18px; background: var(--charcoal); color: var(--warm-white); border-color: var(--charcoal); }

.hero-visual .floater {
  position: absolute;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.hero-visual .floater-1 {
  top: -18px; left: -16px;
  animation: float 6s ease-in-out infinite;
}
.hero-visual .floater-2 {
  bottom: -18px; right: -18px;
  animation: float 6s ease-in-out infinite reverse;
}
.hero-visual .floater strong { color: var(--charcoal); display: block; font-weight: 500; }
.hero-visual .floater small { color: var(--charcoal-soft); display: block; font-size: 0.72rem; }
.hero-visual .floater .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ivory);
  display: grid; place-items: center;
  color: var(--clay);
  font-size: 1.2rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual .floater-1 { top: 6px; left: 6px; }
  .hero-visual .floater-2 { bottom: 6px; right: 6px; }
}

/* ==========================================================================
   Marquee / Social Proof
   ========================================================================== */
.proof {
  padding: 48px 0;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}
.proof-item { text-align: center; }
.proof-item .big {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 6px;
}
.proof-item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--charcoal-soft);
}
.proof-item .stars { color: var(--brushed-gold); letter-spacing: 2px; font-size: 0.95rem; }

@media (max-width: 700px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ==========================================================================
   Before-and-after showcase (5 rooms)
   ========================================================================== */
.ba-showcase {
  background: linear-gradient(180deg, var(--warm-white), var(--ivory));
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.ba-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.ba-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ba-card .ba-mini {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ba-card .ba-mini img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-card .ba-mini .aft { clip-path: inset(0 0 0 50%); transition: clip-path .6s ease; }
.ba-card:hover .ba-mini .aft { clip-path: inset(0 0 0 0%); }
.ba-card .ba-mini .divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--warm-white);
  transform: translateX(-50%);
  transition: opacity .4s ease;
}
.ba-card:hover .ba-mini .divider { opacity: 0; }
.ba-card .ba-mini .tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.ba-card .ba-body { padding: 22px 24px 26px; }
.ba-card h3 { margin-bottom: 6px; }
.ba-card p { font-size: 0.95rem; }

@media (max-width: 800px) {
  .ba-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Feature / "What DecorAI does" + Why people choose
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.feature-split .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.feature-split .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  padding: 32px 28px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, border-color .3s ease;
}
.benefit-card:hover { transform: translateY(-3px); border-color: var(--pale-sand); }
.benefit-card .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ivory);
  display: grid; place-items: center;
  color: var(--clay);
  margin-bottom: 18px;
  font-size: 1.35rem;
}
.benefit-card h4 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.2rem; }
.benefit-card p { font-size: 0.95rem; }

@media (max-width: 900px) {
  .feature-split { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   How it works (4-step)
   ========================================================================== */
.how {
  background:
    radial-gradient(900px 500px at 10% 100%, rgba(201, 165, 90, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ivory), var(--warm-white));
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.how-step {
  padding: 34px 28px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform .3s ease;
}
.how-step:hover { transform: translateY(-3px); }
.how-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  color: var(--clay);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 14px;
}
.how-step h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.how-step p { font-size: 0.95rem; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Styles section (Mediterranean luxury styles)
   ========================================================================== */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.style-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}
.style-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.style-card:hover img { transform: scale(1.07); }
.style-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(58, 53, 48, 0.72) 100%);
  pointer-events: none;
}
.style-card .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px 18px;
  color: var(--warm-white);
  z-index: 2;
}
.style-card .label h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 2px;
  color: var(--warm-white);
}
.style-card .label p {
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.8);
}

@media (max-width: 1000px) { .styles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .styles-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Room inspiration
   ========================================================================== */
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.room-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--limestone);
}
.room-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.room-tile:hover img { transform: scale(1.06); }
.room-tile .tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px;
  background: rgba(250, 247, 242, 0.92);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}
@media (max-width: 1000px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .room-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SEO content blocks
   ========================================================================== */
.seo-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.seo-block {
  padding: 36px 36px 38px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow .3s ease;
}
.seo-block:hover { box-shadow: var(--shadow-md); }
.seo-block h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.seo-block .kicker {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--clay);
  margin-bottom: 14px;
}
.seo-block p { font-size: 0.98rem; margin-bottom: 10px; }
.seo-block ul { padding-left: 18px; margin-top: 8px; color: var(--charcoal-soft); }
.seo-block li { margin-bottom: 4px; font-size: 0.95rem; }

@media (max-width: 800px) { .seo-blocks { grid-template-columns: 1fr; } }

/* ==========================================================================
   Use cases + big benefits
   ========================================================================== */
.use-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
}
.use-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.use-list li {
  padding: 18px 22px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.use-list .tick {
  flex: 0 0 28px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage);
  color: var(--warm-white);
  display: grid; place-items: center;
  font-size: 0.85rem;
}
.use-list strong { color: var(--charcoal); display: block; margin-bottom: 2px; font-weight: 500; }
.use-list span { color: var(--charcoal-soft); font-size: 0.95rem; }

@media (max-width: 900px) { .use-split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Editorial gallery
   ========================================================================== */
.gallery {
  background: linear-gradient(180deg, var(--warm-white), var(--ivory));
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
}
.gallery-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile.g-a { grid-column: span 2; grid-row: span 2; }
.gallery-tile.g-b { grid-column: span 2; grid-row: span 1; }
.gallery-tile.g-c { grid-column: span 2; grid-row: span 2; }
.gallery-tile.g-d { grid-column: span 2; grid-row: span 1; }
.gallery-tile.g-e { grid-column: span 3; grid-row: span 2; }
.gallery-tile.g-f { grid-column: span 3; grid-row: span 2; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-tile.g-a, .gallery-tile.g-b, .gallery-tile.g-c, .gallery-tile.g-d, .gallery-tile.g-e, .gallery-tile.g-f {
    grid-column: span 1; grid-row: span 1;
  }
}

/* ==========================================================================
   Why DecorAI stands out
   ========================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare-card {
  padding: 32px 32px 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--warm-white);
}
.compare-card.old { background: var(--ivory); }
.compare-card.new { background: var(--charcoal); color: var(--warm-white); border-color: var(--charcoal); }
.compare-card.new h3, .compare-card.new p { color: var(--warm-white); }
.compare-card h3 { margin-bottom: 14px; font-family: var(--font-display); font-size: 1.4rem; }
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare-card li { padding-left: 26px; position: relative; font-size: 0.95rem; color: var(--charcoal-soft); }
.compare-card.new li { color: rgba(250, 247, 242, 0.82); }
.compare-card.old li::before {
  content: "×"; position: absolute; left: 0; top: -2px; color: var(--clay); font-size: 1.2rem;
}
.compare-card.new li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brushed-gold); font-weight: 700;
}
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi-card {
  padding: 32px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-card .stars { color: var(--brushed-gold); letter-spacing: 2px; }
.testi-card blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--charcoal);
  font-weight: 500;
}
.testi-card .who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--border);
  margin-top: auto;
}
.testi-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--limestone);
  display: grid; place-items: center;
  font-family: var(--font-display);
  color: var(--clay);
  font-size: 1rem;
}
.testi-card .who strong { display: block; font-weight: 500; color: var(--charcoal); font-size: 0.9rem; }
.testi-card .who small { color: var(--charcoal-soft); font-size: 0.78rem; }

@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.faq-item {
  padding: 22px 26px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .25s ease, box-shadow .25s ease;
}
details.faq-item[open] { border-color: var(--pale-sand); box-shadow: var(--shadow-sm); }
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--clay);
  transition: transform .3s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .ans {
  padding-top: 14px;
  color: var(--charcoal-soft);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ==========================================================================
   Download app section (with phone mockup)
   ========================================================================== */
.download {
  padding: clamp(80px, 10vw, 140px) 0;
  background:
    radial-gradient(700px 420px at 90% 100%, rgba(201, 165, 90, 0.15), transparent 60%),
    radial-gradient(600px 400px at 0% 0%, rgba(168, 177, 148, 0.2), transparent 60%),
    linear-gradient(170deg, var(--ivory), var(--limestone));
}
.download-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.download h2 { margin-bottom: 18px; }
.download .lead { margin-bottom: 30px; max-width: 540px; }
.download-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.download-brand img { width: 44px; height: 44px; border-radius: 10px; }
.download-brand span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--charcoal);
}
.download-brand span em { color: var(--clay); font-style: italic; }

.download-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 14px 24px; color: var(--charcoal-soft); font-size: 0.88rem; }
.download-meta span { display: inline-flex; align-items: center; gap: 8px; }
.download-meta span::before {
  content: "●"; color: var(--sage); font-size: 0.6rem;
}

/* iPhone mockup */
.phone-wrap {
  display: grid;
  place-items: center;
  position: relative;
}
.phone {
  position: relative;
  width: min(320px, 90%);
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  background: linear-gradient(145deg, #1a1715 0%, #2c2621 55%, #1a1715 100%);
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(58, 53, 48, 0.28),
    0 10px 30px rgba(58, 53, 48, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone::before {
  content: "";
  position: absolute;
  top: 28px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #0a0908;
  border-radius: 18px;
  z-index: 3;
}
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ivory);
}
.phone .screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.phone .glare {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}
.phone .side {
  position: absolute;
  right: -3px; top: 120px;
  width: 3px; height: 60px;
  background: #2c2621; border-radius: 2px;
}
.phone .side.s2 { top: 200px; height: 90px; }
.phone .side.s3 { left: -3px; right: auto; top: 140px; height: 40px; }
.phone .side.s4 { left: -3px; right: auto; top: 190px; height: 70px; }
.phone .side.s5 { left: -3px; right: auto; top: 280px; height: 70px; }

@media (max-width: 800px) { .download-inner { grid-template-columns: 1fr; } .phone { width: min(280px, 80%); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 80px 0 30px;
  background: var(--charcoal);
  color: rgba(250, 247, 242, 0.82);
}
.footer a { color: rgba(250, 247, 242, 0.82); }
.footer a:hover { color: var(--warm-white); }
.footer h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--warm-white);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p {
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-brand .store-badges {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}
.footer-brand .store-badge { display: block; line-height: 0; }
.footer-brand .store-badge img {
  height: 54px;
  width: auto;
  max-width: 100%;
  display: block;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer li a { font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  color: rgba(250, 247, 242, 0.6);
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal {
  padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 10vw, 140px);
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--warm-white) 320px);
}
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal h1 { margin-bottom: 14px; }
.legal .updated { color: var(--charcoal-soft); font-size: 0.92rem; margin-bottom: 42px; }
.legal h2 {
  font-size: 1.6rem;
  margin: 42px 0 14px;
  color: var(--charcoal);
}
.legal h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--charcoal);
}
.legal p, .legal li {
  color: var(--charcoal-soft);
  margin-bottom: 12px;
  font-size: 0.98rem;
  line-height: 1.75;
}
.legal ul, .legal ol { padding-left: 20px; }
.legal strong { color: var(--charcoal); font-weight: 500; }
.legal a { color: var(--clay); text-decoration: underline; text-decoration-color: rgba(181, 102, 71, 0.3); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--clay); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print friendly */
@media print {
  .nav-wrap, .footer, .hero-visual .floater, .store-badges { display: none; }
}
