/* =========================================================================
   PebbleFlowRV.com — dark premium design system
   Palette: obsidian black · electric violet · deep azure · ion cyan
   ========================================================================= */

:root {
  /* Surfaces */
  --bg:          #07060d;   /* obsidian page                 */
  --bg-2:        #0b0a14;   /* raised band                   */
  --bg-3:        #110f1d;   /* deeper panel                  */
  --surface:     rgba(255,255,255,.035);
  --surface-2:   rgba(255,255,255,.055);
  --glass:       rgba(18,16,32,.62);

  /* Text */
  --ink:         #f4f2ff;
  --ink-2:       #a9a4c4;
  --ink-3:       #6f6a8c;

  /* Lines */
  --line:        rgba(255,255,255,.09);
  --line-2:      rgba(255,255,255,.16);

  /* Accents */
  --violet:      #8b5cf6;
  --violet-2:    #a78bfa;
  --violet-dim:  #5b3fb8;
  --azure:       #3b82f6;
  --cyan:        #22d3ee;
  --magenta:     #c026d3;

  /* Effects */
  --grad-hot:    linear-gradient(120deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --grad-soft:   linear-gradient(135deg, rgba(139,92,246,.16), rgba(34,211,238,.08));
  --glow-violet: 0 0 0 1px rgba(139,92,246,.35), 0 8px 40px -8px rgba(139,92,246,.55);
  --glow-soft:   0 20px 60px -20px rgba(88,60,190,.55);
  --shadow:      0 30px 70px -30px rgba(0,0,0,.9);

  --radius:      20px;
  --radius-sm:   14px;
  --maxw:        1180px;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display:"Space Grotesk", "Inter", sans-serif;
}

/* ----------  Reset  ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* ambient aurora behind everything */
body::before {
  content: ""; position: fixed; inset: -20% -10% auto -10%; height: 120vh; z-index: -2;
  background:
    radial-gradient(46% 38% at 18% 12%, rgba(139,92,246,.20), transparent 62%),
    radial-gradient(44% 40% at 84% 26%, rgba(59,130,246,.16), transparent 64%),
    radial-gradient(38% 34% at 52% 82%, rgba(192,38,211,.10), transparent 66%);
  filter: blur(16px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%,2%,0) scale(1.06); }
  100% { transform: translate3d(2%,-1%,0) scale(1.02); }
}
img { max-width: 100%; display: block; }
a { color: var(--violet-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: #c4b5fd; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
::selection { background: rgba(139,92,246,.4); color: #fff; }

/* ----------  Utility  ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .24em;
  font-size: .7rem; font-weight: 600; margin: 0 0 1.1rem;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow::before { content:""; width:26px; height:1px; background: var(--violet); opacity:.8; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.grad-text { background: var(--grad-hot); -webkit-background-clip:text; background-clip:text; color: transparent; }
section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 68px) 0; }

/* ----------  Buttons  ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: .85em 1.7em; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  text-decoration: none; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-hot); color: #fff; background-size: 200% 100%; box-shadow: var(--glow-violet); }
.btn-primary:hover { background-position: 100% 0; color:#fff; box-shadow: 0 0 0 1px rgba(139,92,246,.5), 0 14px 46px -8px rgba(139,92,246,.75); }
.btn-accent { background: rgba(139,92,246,.14); color: #d9cdff; border-color: rgba(139,92,246,.45); }
.btn-accent:hover { background: rgba(139,92,246,.26); border-color: rgba(139,92,246,.7); color:#fff; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); color:#fff; }
.btn-sm { padding: .55em 1.15em; font-size: .84rem; }

/* ----------  Header  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7,6,13,.72);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(7,6,13,.94); border-color: var(--line-2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; color: #fff; letter-spacing: -.03em; }
.brand:hover { color:#fff; }
.brand .logo { width: 32px; height: 32px; filter: drop-shadow(0 0 12px rgba(139,92,246,.6)); }
.brand b { background: var(--grad-hot); -webkit-background-clip:text; background-clip:text; color:transparent; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block; padding: .5em .9em; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
}
.nav-links a::after {
  content:""; position:absolute; left:50%; bottom:2px; width:0; height:2px; border-radius:2px;
  background: var(--grad-hot); transform: translateX(-50%); transition: width .3s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 42%; }
.nav-links a.active { color:#fff; }
.nav-links a.active::after { width: 42%; }
.nav-cta { margin-left: 10px; }
.nav-cta a::after { display: none; }
.nav-toggle { display:none; background:none; border:0; cursor:pointer; padding:8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .nav-toggle { display:inline-flex; }
  .nav-links {
    position:absolute; top:72px; left:0; right:0; flex-direction:column; align-items:stretch; gap:2px;
    background: rgba(9,8,16,.98); backdrop-filter: blur(20px);
    border-bottom:1px solid var(--line-2); padding:14px 18px 20px; display:none;
  }
  .nav-links.open { display:flex; animation: slideDown .3s ease; }
  .nav-links a { padding:.85em 1em; border-radius:12px; }
  .nav-links a::after { display:none; }
  .nav-links a.active { background: rgba(139,92,246,.16); }
  .nav-cta { margin:10px 0 0; }
}
@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:none} }

/* ----------  Disclaimer strip  ---------- */
.disclaimer-strip {
  position: relative; z-index: 61;
  background: linear-gradient(90deg, rgba(139,92,246,.16), rgba(59,130,246,.12), rgba(34,211,238,.10));
  border-bottom: 1px solid var(--line);
  font-size: .78rem; color: var(--ink-2); text-align: center; padding: 9px 16px; letter-spacing: .01em;
}
.disclaimer-strip b { color: #ddd2ff; }

/* ==========  HERO  ========== */
.hero { position: relative; min-height: clamp(560px, 82vh, 820px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% center;
  transform: scale(1.04); animation: heroZoom 22s ease-out forwards;
  filter: saturate(1.06);
}
@keyframes heroZoom { from{transform:scale(1.1)} to{transform:scale(1.01)} }
/* LIGHT grade — keeps the photo readable, darkens only the left text column */
.hero-bg::after {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(95deg, rgba(6,5,12,.90) 0%, rgba(6,5,12,.72) 26%, rgba(6,5,12,.34) 46%, rgba(6,5,12,.06) 62%, transparent 76%),
    linear-gradient(180deg, rgba(6,5,12,.34) 0%, transparent 26%, transparent 62%, rgba(7,6,13,.86) 94%, var(--bg) 100%),
    radial-gradient(58% 56% at 6% 52%, rgba(109,60,220,.34), transparent 68%);
}
@media (max-width: 820px){
  .hero-bg img { object-position: 72% center; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(6,5,12,.40) 0%, rgba(6,5,12,.22) 34%, rgba(6,5,12,.86) 76%, var(--bg) 100%),
      radial-gradient(70% 50% at 20% 78%, rgba(109,60,220,.34), transparent 70%);
  }
}
.hero-grain {
  position:absolute; inset:0; z-index:1; opacity:.16; pointer-events:none; mix-blend-mode:overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; width:100%; padding: clamp(30px,5vw,50px) 0; }
/* pushed hard to the left edge, not inside the centered container */
.hero-copy {
  max-width: 700px; width: 100%;
  margin: 0; padding-left: clamp(24px, 4.5vw, 76px); padding-right: 24px;
}
.hero-copy h1 { margin-bottom:.3em; font-size: clamp(2.05rem, 3.8vw, 3.25rem); text-shadow: 0 4px 44px rgba(0,0,0,.75); }
/* keep line 1 on a single line so the headline reads as exactly two lines */
.hero-copy h1 .line { display: inline-block; white-space: nowrap; }
@media (max-width: 560px){
  .hero-copy h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero-copy h1 .line { white-space: normal; }
}
.hero-copy .lede { margin-bottom: 1.9rem; font-size: clamp(1rem,1.35vw,1.16rem); color:#d5d0e8; text-shadow: 0 2px 22px rgba(0,0,0,.75); }
@media (max-width: 820px){ .hero-copy { max-width: 100%; } }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; }
.hero-badges { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 40px; }
.hero-badge {
  display:inline-flex; align-items:baseline; gap:.5em; font-size:.85rem; color: var(--ink-2);
  background: rgba(12,10,22,.55); border:1px solid var(--line-2); backdrop-filter: blur(14px);
  padding:.6em 1.05em; border-radius:999px; transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.hero-badge:hover { border-color: rgba(139,92,246,.6); transform: translateY(-2px); background: rgba(139,92,246,.12); }
.hero-badge b { font-family: var(--font-display); font-size:1.05rem; color:#fff; }
/* animated marker line */
.hero-rule { width: 72px; height: 3px; border-radius: 3px; background: var(--grad-hot); margin: 0 0 26px; background-size:200% 100%; animation: shimmer 3.5s linear infinite; }
@keyframes shimmer { 0%{background-position:0 0} 100%{background-position:200% 0} }
/* scroll cue */
.scroll-cue { position:absolute; z-index:3; bottom:22px; left:50%; transform:translateX(-50%); display:grid; place-items:center; gap:8px; color:var(--ink-3); font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; font-family:var(--font-display); }
.scroll-cue span { width:1px; height:34px; background:linear-gradient(180deg, transparent, var(--violet-2)); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }
@media (max-width: 700px){ .hero { min-height: 78vh; } .scroll-cue { display:none; } }

/* Photo credit chip */
.photo-credit {
  position:absolute; z-index:3; right:18px; bottom:16px; font-size:.66rem; color: rgba(255,255,255,.42);
  background: rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.08); padding:.35em .8em; border-radius:999px; backdrop-filter: blur(8px);
}

/* ----------  Cards / grids  ---------- */
.grid { display:grid; gap:22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width:900px){ .grid-3,.grid-4 { grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; } }

.card {
  position: relative; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(14px); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
/* moving sheen */
.card::before {
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px; opacity:0;
  background: linear-gradient(130deg, transparent 20%, rgba(139,92,246,.7), rgba(34,211,238,.5), transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .4s ease;
}
.card.hover:hover { transform: translateY(-6px); background: var(--surface-2); box-shadow: var(--glow-soft); border-color: transparent; }
.card.hover:hover::before { opacity:1; }
.card h3 { margin-bottom:.4em; }
.card p:last-child { margin-bottom:0; }
.icon-badge {
  width:50px; height:50px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px;
  background: var(--grad-soft); border:1px solid rgba(139,92,246,.3); color: var(--violet-2);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card.hover:hover .icon-badge { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 30px -8px rgba(139,92,246,.7); }
.icon-badge svg { width:25px; height:25px; }

/* Feature rows */
.feature-row { display:grid; grid-template-columns:1fr 1fr; gap: clamp(28px,5vw,72px); align-items:center; }
.feature-row + .feature-row { margin-top: clamp(52px,7vw,96px); }
.feature-row.reverse .feature-media { order:2; }
.feature-media {
  position: relative; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line);
  background: linear-gradient(140deg, rgba(139,92,246,.18), rgba(34,211,238,.08), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.feature-media::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(60% 60% at 30% 30%, rgba(139,92,246,.22), transparent 70%);
  animation: pulseGlow 7s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100%{opacity:.5} 50%{opacity:1} }
.feature-media img { position:relative; z-index:1; width:100%; height:100%; object-fit:cover; }
@media (max-width:840px){ .feature-row,.feature-row.reverse { grid-template-columns:1fr; } .feature-row.reverse .feature-media { order:-1; } }

/* ----------  Spec tables  ---------- */
.spec-block { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; backdrop-filter: blur(14px); transition: border-color .3s ease, transform .3s ease; }
.spec-block:hover { border-color: rgba(139,92,246,.35); transform: translateY(-3px); }
.spec-block h3 { margin:0; padding:17px 24px; font-size:1.02rem; color:#fff; background: linear-gradient(90deg, rgba(139,92,246,.22), rgba(59,130,246,.10)); border-bottom:1px solid var(--line); }
.spec-table { width:100%; border-collapse:collapse; }
.spec-table th,.spec-table td { text-align:left; padding:13px 24px; border-bottom:1px solid var(--line); font-size:.95rem; }
.spec-table th { font-weight:400; color: var(--ink-2); width:48%; }
.spec-table td { font-family: var(--font-display); font-weight:500; color:#fff; }
.spec-table tr:last-child th,.spec-table tr:last-child td { border-bottom:0; }
.spec-table tr { transition: background .2s ease; }
.spec-table tr:hover { background: rgba(139,92,246,.07); }

/* Comparison table */
.compare { width:100%; border-collapse:collapse; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; backdrop-filter: blur(14px); }
.compare th,.compare td { padding:16px 18px; text-align:left; border-bottom:1px solid var(--line); font-size:.94rem; vertical-align:top; }
.compare thead th { background: rgba(255,255,255,.05); color:#fff; font-family:var(--font-display); font-weight:600; }
.compare thead th.col-pebble { background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(59,130,246,.22)); color:#fff; }
.compare tbody th { font-weight:400; color: var(--ink-2); }
.compare td.col-pebble { background: rgba(139,92,246,.09); color:#fff; }
.compare tbody tr { transition: background .2s ease; }
.compare tbody tr:hover { background: rgba(255,255,255,.03); }
.compare tr:last-child td,.compare tr:last-child th { border-bottom:0; }
.compare .yes { color: #34d399; font-weight:600; }
.compare .no { color: #fb7185; }
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius: var(--radius); }

/* Pills */
.pill {
  display:inline-flex; align-items:center; gap:.4em; font-family:var(--font-display); font-size:.7rem;
  font-weight:600; text-transform:uppercase; letter-spacing:.12em; padding:.4em .9em; border-radius:999px;
  background: rgba(139,92,246,.16); color:#c9b8ff; border:1px solid rgba(139,92,246,.32);
}
.pill.clay { background: rgba(34,211,238,.14); color:#7ee3f5; border-color: rgba(34,211,238,.32); }
.pill.sand { background: rgba(255,255,255,.07); color: var(--ink-2); border-color: var(--line-2); }

/* ----------  Ad slots  ---------- */
.ad-slot {
  position:relative; margin:0 auto; text-align:center; min-height:100px;
  display:flex; align-items:center; justify-content:center;
  border:1px dashed rgba(255,255,255,.14); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.022); color: var(--ink-3); overflow:hidden;
}
.ad-slot::before {
  content:"Advertisement"; position:absolute; top:9px; left:14px;
  font-family:var(--font-display); font-size:.6rem; letter-spacing:.2em; text-transform:uppercase; color: var(--ink-3);
}
.ad-slot .ad-placeholder { font-family:var(--font-display); font-size:.84rem; color: var(--ink-3); padding:12px; }
.ad-slot .adsbygoogle { display:block; width:100%; }
.ad-slot.has-ad { border:0; background:none; min-height:0; }
.ad-leaderboard { max-width:970px; min-height:100px; }
.ad-inline { max-width:728px; min-height:120px; margin:44px auto; }
.ad-rect { max-width:336px; min-height:280px; }

/* Sidebar */
.with-sidebar { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:48px; align-items:start; }
.sidebar { position:sticky; top:96px; display:grid; gap:24px; }
@media (max-width:960px){ .with-sidebar { grid-template-columns:1fr; } .sidebar { position:static; } }

/* ----------  Blog  ---------- */
.post-card { display:flex; flex-direction:column; overflow:hidden; padding:0; }
.post-thumb {
  aspect-ratio:16/9; position:relative; display:grid; place-items:center; overflow:hidden;
  background: linear-gradient(140deg, #1a1430, #0d0b18 60%, #12203a);
}
.post-thumb::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(70% 70% at 30% 20%, rgba(139,92,246,.34), transparent 68%);
  transition: opacity .4s ease;
}
.card.hover:hover .post-thumb::after { opacity:.6; }
.post-thumb .pill { position:absolute; top:15px; left:15px; z-index:2; }
.post-thumb svg { width:60%; opacity:.85; position:relative; z-index:1; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card.hover:hover .post-thumb svg { transform: scale(1.07); }
.post-thumb img { width:100%; height:100%; object-fit:cover; position:relative; z-index:1; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card.hover:hover .post-thumb img { transform: scale(1.06); }
.post-body { padding:24px 26px 28px; display:flex; flex-direction:column; flex:1; }
.post-meta { font-size:.78rem; color: var(--ink-3); font-family:var(--font-display); letter-spacing:.06em; margin-bottom:11px; display:flex; gap:9px; align-items:center; flex-wrap:wrap; text-transform:uppercase; }
.post-body h3 { font-size:1.24rem; margin-bottom:.45em; }
.post-body h3 a { color:#fff; }
.post-body h3 a:hover { background: var(--grad-hot); -webkit-background-clip:text; background-clip:text; color:transparent; }
.post-body .btn { margin-top:auto; align-self:flex-start; }
.post-excerpt { color: var(--ink-2); font-size:.95rem; margin-bottom:18px; }

/* Article */
.article { max-width:770px; margin:0 auto; }
.article-header { max-width:770px; margin:0 auto clamp(28px,4vw,44px); }
.article-header h1 { font-size:clamp(2.1rem,4.6vw,3.4rem); margin-bottom:.35em; }
.article-body { font-size:1.08rem; color:#c6c1dd; }
.article-body h2 { margin-top:1.9em; font-size:1.85rem; color:#fff; }
.article-body h3 { margin-top:1.6em; color:#fff; }
.article-body p { margin-bottom:1.35em; }
.article-body ul,.article-body ol { margin:0 0 1.5em; padding-left:1.3em; }
.article-body li { margin-bottom:.55em; }
.article-body li::marker { color: var(--violet); }
.article-body strong { color:#fff; }
.article-body a { text-decoration:underline; text-underline-offset:3px; text-decoration-color: rgba(167,139,250,.45); }
.article-body blockquote {
  margin:1.8em 0; padding:20px 26px; border-left:3px solid transparent;
  border-image: var(--grad-hot) 1; background: rgba(139,92,246,.07);
  color:#ddd6f7; font-size:1.14rem; font-style:italic; border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
.figure { margin:2.4em 0; }
.figure .frame {
  position:relative; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
  background: linear-gradient(140deg, rgba(139,92,246,.16), rgba(34,211,238,.07)); aspect-ratio:16/9;
  display:grid; place-items:center; color: var(--ink-3);
}
.figure .frame img { width:100%; height:100%; object-fit:cover; }
.figure .frame svg { width:46%; opacity:.7; }
.figure figcaption { font-size:.8rem; color: var(--ink-3); margin-top:12px; text-align:center; }

/* Video */
.video-embed { position:relative; aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line-2); background:#08070f; box-shadow: var(--shadow); }
.video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-embed .video-ph { position:absolute; inset:0; display:grid; place-items:center; text-align:center; color:#e8e3ff; background: radial-gradient(110% 110% at 50% 32%, #241a45, #08070f); }
.video-embed .play {
  width:78px; height:78px; border-radius:50%; display:grid; place-items:center; margin:0 auto 16px;
  background: rgba(139,92,246,.2); border:1px solid rgba(167,139,250,.5);
  animation: ripple 2.6s ease-out infinite;
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(139,92,246,.5); }
  70%  { box-shadow: 0 0 0 26px rgba(139,92,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}
.video-embed .play svg { width:30px; height:30px; }
.video-cap { font-size:.8rem; color:var(--ink-3); margin-top:12px; text-align:center; }

/* Byline */
.byline { display:flex; align-items:center; gap:14px; margin:22px 0 0; }
.avatar { width:46px; height:46px; border-radius:50%; background: var(--grad-hot); color:#fff; display:grid; place-items:center; font-family:var(--font-display); font-weight:600; box-shadow: var(--glow-violet); }
.byline .who { font-size:.9rem; }
.byline .who b { display:block; font-family:var(--font-display); color:#fff; }
.byline .who span { color: var(--ink-3); }

/* Callouts */
.callout { position:relative; background: rgba(139,92,246,.09); border:1px solid rgba(139,92,246,.26); border-radius:var(--radius); padding:24px 26px; backdrop-filter: blur(10px); }
.callout.clay { background: rgba(34,211,238,.07); border-color: rgba(34,211,238,.26); }
.callout .eyebrow { margin-bottom:.6rem; }

/* CTA band */
.cta-band {
  position:relative; overflow:hidden; border-radius:var(--radius); padding: clamp(38px,5vw,64px); text-align:center;
  background: linear-gradient(135deg, rgba(139,92,246,.20), rgba(59,130,246,.12), rgba(34,211,238,.10));
  border:1px solid rgba(139,92,246,.3);
}
.cta-band::before {
  content:""; position:absolute; inset:-40%;
  background: conic-gradient(from 0deg, transparent, rgba(139,92,246,.28), transparent 40%);
  animation: spin 14s linear infinite; z-index:0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-band > * { position:relative; z-index:1; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#c8c2e4; max-width:56ch; margin:0 auto 1.8em; }

/* Newsletter */
.subscribe { display:flex; gap:10px; flex-wrap:wrap; }
.subscribe input {
  flex:1; min-width:200px; padding:.85em 1.2em; border-radius:999px; border:1px solid var(--line-2);
  font:inherit; background: rgba(255,255,255,.05); color:#fff; transition: border-color .25s ease, background .25s ease;
}
.subscribe input::placeholder { color: var(--ink-3); }
.subscribe input:focus { outline:none; border-color: rgba(139,92,246,.7); background: rgba(139,92,246,.09); box-shadow: 0 0 0 4px rgba(139,92,246,.14); }

/* Stat strip */
.stat-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background: var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.stat-strip .stat { background: rgba(12,10,22,.9); padding:30px 20px; text-align:center; transition: background .35s ease; }
.stat-strip .stat:hover { background: rgba(139,92,246,.12); }
.stat-strip .stat b {
  display:block; font-family:var(--font-display); font-size:clamp(1.8rem,3.2vw,2.5rem); letter-spacing:-.03em;
  background: var(--grad-hot); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-strip .stat span { font-size:.84rem; color: var(--ink-2); }
@media (max-width:760px){ .stat-strip { grid-template-columns:repeat(2,1fr);} }

/* ----------  Footer  ---------- */
.site-footer { position:relative; background: linear-gradient(180deg, transparent, rgba(139,92,246,.06) 40%, rgba(6,5,11,1)); border-top:1px solid var(--line); margin-top:60px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr; gap:34px; padding:64px 0 44px; }
@media (max-width:800px){ .footer-grid { grid-template-columns:1fr 1fr; gap:30px; } }
.footer-grid h4 { color:#fff; font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:16px; }
.footer-grid ul { list-style:none; margin:0; padding:0; }
.footer-grid li { margin-bottom:10px; font-size:.92rem; }
.footer-brand p { font-size:.9rem; color: var(--ink-3); max-width:36ch; margin-top:16px; }
.footer-social { display:flex; gap:12px; margin-top:20px; }
.footer-social a { width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.05); border:1px solid var(--line); display:grid; place-items:center; transition: all .3s ease; }
.footer-social a:hover { background: rgba(139,92,246,.22); border-color: rgba(139,92,246,.5); transform: translateY(-3px); }
.footer-social svg { width:17px; height:17px; fill: var(--ink-2); }
.footer-social a:hover svg { fill:#fff; }
.footer-bottom { border-top:1px solid var(--line); padding:22px 0; font-size:.8rem; color: var(--ink-3); text-align:center; }
.footer-bottom p { margin:0 0 .45em; }
.footer-bottom strong { color: var(--ink-2); }

/* ==========  CASUAL BLOG FEED  ========== */
/* Horizontal post rows — reads like a personal journal, not a product grid */
.feed { display: grid; gap: 8px; }
.feed-item {
  display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; align-items: start;
  padding: 24px 20px; border-radius: var(--radius); border: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.feed-item:hover { background: rgba(255,255,255,.035); border-color: var(--line); transform: translateX(4px); }
.feed-thumb {
  position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg,#1a1430,#0d0b18 60%,#12203a); display: grid; place-items: center;
}
.feed-thumb img { width:100%; height:100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.feed-item:hover .feed-thumb img { transform: scale(1.07); }
.feed-thumb svg { width: 58%; opacity:.85; }
.feed-body h3 { font-size: 1.35rem; margin: 6px 0 .4em; }
.feed-body h3 a { color:#fff; }
.feed-body h3 a:hover { background: var(--grad-hot); -webkit-background-clip:text; background-clip:text; color:transparent; }
.feed-body p { color: var(--ink-2); font-size:.97rem; margin-bottom: 12px; }
.feed-meta { display:flex; gap:9px; align-items:center; flex-wrap:wrap; font-size:.75rem; color: var(--ink-3); font-family: var(--font-display); letter-spacing:.06em; text-transform: uppercase; }
.feed-more { font-family: var(--font-display); font-size:.88rem; font-weight:600; color: var(--violet-2); display:inline-flex; align-items:center; gap:.4em; }
.feed-more:hover { gap:.7em; }
.feed-sep { height:1px; background: var(--line); margin: 0 20px; }
@media (max-width: 620px){
  .feed-item { grid-template-columns: 1fr; gap: 16px; padding: 20px 14px; }
  .feed-thumb { aspect-ratio: 16/9; }
}

/* Personal note / author intro */
.note {
  position: relative; padding: 22px 24px 22px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,255,255,.03); border-left: 3px solid var(--violet);
  color: var(--ink-2); font-size: .98rem;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color:#fff; }

/* Sidebar widgets — lighter than cards */
.side-card { background: rgba(255,255,255,.03); border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.side-card h4 { font-family: var(--font-display); font-size:.76rem; letter-spacing:.18em; text-transform:uppercase; color: var(--ink-3); margin-bottom:14px; }
.side-card p { font-size:.93rem; color: var(--ink-2); }
.side-card p:last-child { margin-bottom:0; }
.side-list { list-style:none; margin:0; padding:0; }
.side-list li { padding: 9px 0; border-bottom:1px solid var(--line); font-size:.93rem; display:flex; justify-content:space-between; gap:12px; }
.side-list li:last-child { border-bottom:0; }
.side-list li span { color: var(--ink-3); }
.side-list li b { font-family: var(--font-display); font-weight:500; color:#fff; }
.side-avatar { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.side-avatar .avatar { width:52px; height:52px; font-size:1rem; }
.side-avatar b { font-family: var(--font-display); color:#fff; display:block; font-size:1.02rem; }
.side-avatar span { font-size:.84rem; color: var(--ink-3); }

/* Section label with rule — casual, not a marketing headline */
.rule-head { display:flex; align-items:center; gap:18px; margin-bottom: 26px; }
.rule-head h2 { margin:0; font-size: clamp(1.5rem,2.4vw,2rem); white-space: nowrap; }
.rule-head::after { content:""; flex:1; height:1px; background: var(--line); }

/* Wide photo band */
.photo-band { position:relative; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.photo-band img { width:100%; height:100%; object-fit:cover; aspect-ratio: 21/9; }
.photo-band figcaption {
  position:absolute; left:0; right:0; bottom:0; padding: 30px 26px 18px;
  background: linear-gradient(180deg, transparent, rgba(6,5,12,.9));
  font-size:.85rem; color: var(--ink-2);
}
@media (max-width:700px){ .photo-band img { aspect-ratio: 4/3; } }

/* ==========  AI GALLERY  ========== */
.ai-banner {
  display:flex; gap:16px; align-items:flex-start;
  background: linear-gradient(120deg, rgba(139,92,246,.14), rgba(34,211,238,.07));
  border:1px solid rgba(139,92,246,.3); border-radius: var(--radius); padding: 20px 24px;
}
.ai-banner .ai-icon { flex:none; width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background: rgba(139,92,246,.22); color: var(--violet-2); }
.ai-banner .ai-icon svg { width:22px; height:22px; }
.ai-banner p { margin:0; font-size:.93rem; color: var(--ink-2); }
.ai-banner strong { color:#fff; }

/* Filter chips */
.filters { display:flex; flex-wrap:wrap; gap:9px; }
.chip {
  font-family: var(--font-display); font-size:.83rem; font-weight:500; letter-spacing:.02em;
  padding:.5em 1.15em; border-radius:999px; cursor:pointer;
  background: rgba(255,255,255,.04); border:1px solid var(--line-2); color: var(--ink-2);
  transition: all .25s ease;
}
.chip:hover { color:#fff; border-color: rgba(139,92,246,.55); background: rgba(139,92,246,.12); }
.chip[aria-pressed="true"] { background: var(--grad-hot); border-color: transparent; color:#fff; box-shadow: var(--glow-violet); }

/* Masonry-ish gallery */
.gallery { columns: 3; column-gap: 18px; }
@media (max-width: 950px){ .gallery { columns: 2; } }
@media (max-width: 600px){ .gallery { columns: 1; } }
.tile {
  break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--radius);
  overflow: hidden; border:1px solid var(--line); background: rgba(255,255,255,.03);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
  animation: tileIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes tileIn { from{opacity:0; transform: translateY(14px) scale(.98)} to{opacity:1; transform:none} }
.tile:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.45); box-shadow: var(--glow-soft); }
.tile.is-hidden { display:none; }
.tile-img { position:relative; cursor:zoom-in; display:block; background: linear-gradient(140deg,#1a1430,#0d0b18 60%,#12203a); }
.tile-img img { width:100%; display:block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-cap { padding: 16px 18px 18px; }
.tile-cap h3 { font-size:1.02rem; margin:0 0 4px; color:#fff; }
.tile-cap p { margin:0; font-size:.85rem; color: var(--ink-3); }
.tile-badge {
  position:absolute; top:12px; left:12px; z-index:2; font-family:var(--font-display);
  font-size:.62rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  padding:.35em .75em; border-radius:999px; background: rgba(8,7,15,.72);
  border:1px solid rgba(255,255,255,.16); color:#d9cdff; backdrop-filter: blur(8px);
}
.swatch { display:inline-block; width:11px; height:11px; border-radius:50%; margin-right:7px; vertical-align:-1px; border:1px solid rgba(255,255,255,.28); }

/* Empty slot — shows the prompt to generate it */
.tile-slot .tile-img {
  aspect-ratio: 4/3; display:grid; place-items:center; cursor:default;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.022), rgba(255,255,255,.022) 12px, rgba(139,92,246,.06) 12px, rgba(139,92,246,.06) 24px);
}
.tile-slot .tile-img svg { width:44px; height:44px; opacity:.5; color: var(--violet-2); }
.tile-prompt {
  margin-top:10px; padding:11px 13px; border-radius:10px; background: rgba(0,0,0,.35);
  border:1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:.74rem; line-height:1.55; color: var(--ink-2); word-break: break-word;
}
.copy-btn {
  margin-top:9px; font-family:var(--font-display); font-size:.75rem; font-weight:600;
  background:none; border:1px solid var(--line-2); color: var(--ink-2); cursor:pointer;
  padding:.4em .9em; border-radius:999px; transition: all .25s ease;
}
.copy-btn:hover { color:#fff; border-color: rgba(139,92,246,.6); background: rgba(139,92,246,.14); }

/* Lightbox */
.lightbox {
  position: fixed; inset:0; z-index:200; display:none; align-items:center; justify-content:center;
  background: rgba(4,3,9,.94); backdrop-filter: blur(10px); padding: 40px 24px;
}
.lightbox.open { display:flex; animation: lbIn .25s ease; }
@keyframes lbIn { from{opacity:0} to{opacity:1} }
.lightbox img { max-width: min(1200px, 94vw); max-height: 82vh; border-radius: var(--radius); border:1px solid var(--line-2); }
.lightbox figcaption { text-align:center; color: var(--ink-2); font-size:.88rem; margin-top:14px; }
.lightbox .lb-close {
  position:absolute; top:22px; right:26px; width:44px; height:44px; border-radius:50%;
  background: rgba(255,255,255,.08); border:1px solid var(--line-2); color:#fff; cursor:pointer;
  display:grid; place-items:center; transition: all .25s ease;
}
.lightbox .lb-close:hover { background: rgba(139,92,246,.3); }
.lightbox .lb-close svg { width:20px; height:20px; }

/* ----------  Misc  ---------- */
.breadcrumb { font-size:.83rem; color: var(--ink-3); font-family:var(--font-display); padding:24px 0 0; }
.breadcrumb a { color: var(--ink-2); }
.page-head { padding: clamp(48px,6vw,88px) 0 clamp(20px,3vw,34px); position:relative; }
.tag-row { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 0; }
.divider { height:1px; background: var(--line); border:0; margin:0; }

/* Scroll reveal */
.fade-up { opacity:0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.fade-up.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .fade-up { opacity:1; transform:none; transition:none; }
  html { scroll-behavior:auto; }
  body::before, .hero-bg img, .cta-band::before, .video-embed .play, .feature-media::after, .hero-rule { animation:none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width:11px; height:11px; }
::-webkit-scrollbar-track { background:#08070f; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--violet-dim), #2b3a6b); border-radius:6px; border:2px solid #08070f; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--violet), var(--azure)); }
