/* Modern effects layer — loaded after site.css to add modern SaaS flourishes.
   Kept in a separate file so we can tone them down if they're too much. */

/* ── Expanded palette ──────────────────────────────────────────────── */

:root {
  --navy: #0f1722;
  --navy-2: #1c2940;
  --terra: #cb522d;
  --terra-light: #ff9a6c;
  --gold: #f0a500;
  --sage: #7a9e7e;
  --sky: #3a9bd9;
  --lilac: #b084cc;
  --cream: #fff8f3;
  --stone: #f4f6fa;
}

/* ── Gradient text on key headlines ────────────────────────────────── */

.grad-text {
  background: linear-gradient(115deg, #0f1722 0%, #cb522d 45%, #f0a500 85%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ── Mesh gradient hero background (animated, subtle) ──────────────── */

.hero-mesh {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  pointer-events: none;
}
.hero-mesh::before,
.hero-mesh::after,
.hero-mesh span {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
}
.hero-mesh::before {
  width: 600px; height: 600px; background: rgba(203, 82, 45, 0.45);
  top: -150px; right: -100px;
  animation: meshA 22s cubic-bezier(.4,0,.2,1) infinite alternate;
}
.hero-mesh::after {
  width: 500px; height: 500px; background: rgba(240, 165, 0, 0.4);
  bottom: -100px; left: -50px;
  animation: meshB 28s cubic-bezier(.4,0,.2,1) infinite alternate;
}
.hero-mesh span {
  width: 450px; height: 450px; background: rgba(176, 132, 204, 0.35);
  top: 20%; left: 40%;
  animation: meshC 32s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes meshA { to { transform: translate(-80px, 100px) scale(1.1); } }
@keyframes meshB { to { transform: translate(120px, -80px) scale(1.15); } }
@keyframes meshC { to { transform: translate(-60px, 60px) scale(0.9); } }

/* ── Bento grid (asymmetric feature showcase) ──────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

.bento-cell {
  background: #fff; border-radius: 20px; padding: 1.75rem;
  border: 1px solid rgba(15, 23, 34, 0.08);
  position: relative; overflow: hidden;
  transition: transform 280ms cubic-bezier(.4,0,.2,1), box-shadow 280ms, border-color 280ms;
  display: flex; flex-direction: column;
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15, 23, 34, 0.2); border-color: rgba(15, 23, 34, 0.12); }

/* Sizing spans */
.bento-w2 { grid-column: span 2; } .bento-w3 { grid-column: span 3; } .bento-w4 { grid-column: span 4; } .bento-w6 { grid-column: span 6; }
.bento-h2 { grid-row: span 2; }

@media (max-width: 900px) { .bento-w3, .bento-w4, .bento-w6 { grid-column: span 2; } .bento-w2 { grid-column: span 2; } .bento-h2 { grid-row: span 1; } }
@media (max-width: 560px) { .bento-w2, .bento-w3, .bento-w4, .bento-w6 { grid-column: span 1; } }

/* Bento palette variants */
.bento-navy { background: linear-gradient(135deg, #0f1722 0%, #1c2940 100%); color: #fff; border-color: transparent; }
.bento-navy h3, .bento-navy h2 { color: #fff; }
.bento-navy p { color: rgba(255, 255, 255, 0.78); }

.bento-terra { background: linear-gradient(135deg, #cb522d 0%, #e67e22 100%); color: #fff; border-color: transparent; }
.bento-terra h3 { color: #fff; }
.bento-terra p { color: rgba(255, 255, 255, 0.9); }

.bento-cream { background: linear-gradient(135deg, #fff8f3 0%, #fce8d9 100%); border-color: rgba(203, 82, 45, 0.15); }

.bento-sage { background: linear-gradient(135deg, #edf3ee 0%, #dbe8dd 100%); border-color: rgba(122, 158, 126, 0.2); }

.bento-sky { background: linear-gradient(135deg, #eaf4fa 0%, #d0e7f3 100%); border-color: rgba(58, 155, 217, 0.2); }

.bento-title {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.15; color: inherit; margin-bottom: 0.5rem;
}
.bento-sub { font-size: 0.95rem; opacity: 0.8; color: inherit; }
.bento-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.95);
  align-self: flex-start; margin-bottom: 1rem;
}
.bento-cell:not(.bento-navy):not(.bento-terra) .bento-pill {
  background: rgba(15, 23, 34, 0.06); color: #0f1722;
}

/* Visual flourishes inside bento */
.bento-cell .shine {
  position: absolute; bottom: -60%; right: -30%; width: 150%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.bento-cell img.bento-art {
  width: 100%; border-radius: 12px; margin-top: auto; object-fit: cover;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
}
.bento-cell .kpi {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem); font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; margin: 0.5rem 0;
}
.bento-cell .kpi em { color: var(--terra-light); font-style: normal; }

/* ── Device mockup — browser window showing the portal ─────────────── */

.device {
  max-width: 1000px; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(15, 23, 34, 0.5), 0 0 0 1px rgba(15, 23, 34, 0.05);
  transform: perspective(1200px) rotateX(4deg);
  transition: transform 600ms cubic-bezier(.4,0,.2,1);
}
.device:hover { transform: perspective(1200px) rotateX(0deg); }
.device-bar {
  background: #f4f6fa; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #eaedf2;
}
.device-dots { display: flex; gap: 6px; }
.device-dots span { width: 10px; height: 10px; border-radius: 50%; }
.device-dots span:nth-child(1) { background: #ff5f57; }
.device-dots span:nth-child(2) { background: #ffbd2e; }
.device-dots span:nth-child(3) { background: #28ca42; }
.device-url {
  flex: 1; background: #fff; border-radius: 8px; padding: 4px 12px;
  font-size: 0.78rem; color: #8a94a4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid #eaedf2;
}
.device-body { background: #fafbfd; min-height: 420px; }

/* Mock portal UI inside device */
.mock {
  display: grid; grid-template-columns: 200px 1fr; min-height: 420px;
}
.mock-sidebar { background: #f4f6fa; padding: 1.25rem 1rem; border-right: 1px solid #eaedf2; }
.mock-logo { font-weight: 700; color: #0f1722; margin-bottom: 1.5rem; font-size: 1.05rem; }
.mock-nav a {
  display: block; padding: 8px 10px; border-radius: 8px; font-size: 0.85rem; color: #5a677a; margin-bottom: 2px;
}
.mock-nav a.on { background: #dce3fe; color: #0f1722; font-weight: 600; }
.mock-main { padding: 1.5rem; }
.mock-h1 { font-size: 1.3rem; font-weight: 600; color: #0f1722; margin-bottom: 1rem; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
.mock-stat { background: #fff; border: 1px solid #eaedf2; border-radius: 8px; padding: 0.75rem; }
.mock-stat-lbl { font-size: 0.7rem; color: #8a94a4; margin-bottom: 4px; }
.mock-stat-val { font-size: 1.3rem; font-weight: 700; color: #0f1722; }
.mock-stat-sub { font-size: 0.65rem; color: #8a94a4; margin-top: 2px; }
.mock-table { background: #fff; border: 1px solid #eaedf2; border-radius: 8px; padding: 1rem; }
.mock-row { display: grid; grid-template-columns: 2fr 1.5fr 1fr 0.8fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f3f7; font-size: 0.78rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row-head { color: #8a94a4; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.08em; font-weight: 600; }
.mock-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 0.7rem; font-weight: 600; }
.mock-badge.new { background: #fff8e1; color: #f0a500; }
.mock-badge.sent { background: #f3e8fd; color: #9b59b6; }
.mock-badge.ok { background: #e8f5e9; color: #2ecc71; }

@media (max-width: 680px) {
  .mock { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .device-body { min-height: 360px; }
}

/* ── 3D tilt cards (enabled via JS on .tilt elements) ──────────────── */

.tilt { transform-style: preserve-3d; transition: transform 320ms cubic-bezier(.4,0,.2,1); will-change: transform; }
.tilt > * { transform: translateZ(20px); }

/* ── Testimonial cards ─────────────────────────────────────────────── */

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff; border: 1px solid rgba(15, 23, 34, 0.08);
  border-radius: 20px; padding: 1.75rem; position: relative;
  transition: transform 220ms, box-shadow 220ms;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15, 23, 34, 0.18); }
.testimonial .quote {
  position: absolute; top: 0.5rem; right: 1rem; font-size: 5rem; line-height: 1;
  color: rgba(203, 82, 45, 0.15); font-weight: 700; font-family: Georgia, serif;
}
.testimonial blockquote {
  font-size: 1.02rem; line-height: 1.55; color: #2a3442;
  margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #cb522d, #f0a500);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 600; color: #0f1722; font-size: 0.92rem; }
.testimonial-role { font-size: 0.8rem; color: #8a94a4; }

/* ── FAQ accordion ─────────────────────────────────────────────────── */

.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid rgba(15, 23, 34, 0.08);
  border-radius: 14px; margin-bottom: 10px;
  overflow: hidden; transition: border-color 200ms, box-shadow 200ms;
}
.faq-item[open] { border-color: rgba(203, 82, 45, 0.3); box-shadow: 0 10px 25px -15px rgba(15, 23, 34, 0.15); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem;
  font-weight: 600; font-size: 1rem; color: #0f1722;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: #cb522d; font-size: 1.5rem; line-height: 1; font-weight: 400;
  transition: transform 240ms; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item-body { padding: 0 1.25rem 1.25rem; color: #445062; line-height: 1.6; }

/* ── Floating decorative voucher card (parallax-ish) ───────────────── */

.float-card {
  animation: float 6s ease-in-out infinite;
}
.float-card.d1 { animation-delay: -2s; }
.float-card.d2 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Aurora strip (between sections) ───────────────────────────────── */

.aurora {
  height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(203, 82, 45, 0.4) 30%, rgba(240, 165, 0, 0.4) 50%, rgba(58, 155, 217, 0.4) 70%, transparent 100%);
  max-width: 60%; margin: 0 auto; opacity: 0.6;
}

/* ── Section backgrounds (colour variety) ──────────────────────────── */

.bg-stone { background: #f4f6fa; }
.bg-cream { background: linear-gradient(180deg, #fff8f3 0%, #ffffff 100%); }
.bg-navy {
  background: linear-gradient(135deg, #0f1722 0%, #1c2940 100%);
  color: rgba(255, 255, 255, 0.85);
}
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255, 255, 255, 0.8); }
.bg-navy .dim { color: rgba(255, 255, 255, 0.6); }

/* ── Noise / grain overlay (optional) ──────────────────────────────── */

.grain { position: relative; }
.grain::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.grain > * { position: relative; z-index: 1; }

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh::before, .hero-mesh::after, .hero-mesh span,
  .float-card, .device { animation: none !important; transform: none !important; }
}
