/* Home: split hero, bento features, double-bezel shells, demo chrome, install band. */

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Section labels — left-aligned on wide, not dead-center */
.section-head { max-width: 38rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin: 0 0 0.65rem;
}
.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink-900);
}
.section-head p { margin: 0; color: var(--ink-500); font-size: 1.02rem; max-width: 38ch; line-height: 1.6; }

/* —— Hero: editorial split —— */
.hero { padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: min(90dvh, 820px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-600);
  background: linear-gradient(180deg, #fff, var(--accent-50));
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.35rem 0.7rem; border-radius: var(--radius-pill);
  margin-bottom: 1.5rem; box-shadow: var(--shadow-inset);
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-50); }

.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 1.1rem;
  color: var(--ink-900);
}
.hero h1 em { color: var(--accent-600); font-style: normal; font-weight: 800; }

.hero-sub { margin: 0 0 1.9rem; color: var(--ink-500); font-size: 1.05rem; max-width: 48ch; line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-meta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-meta .sep { opacity: 0.45; }

/* Hero visual: orbs (no image asset) */
.hero-visual { position: relative; min-height: 280px; isolation: isolate; }
.orb { position: absolute; border-radius: 50%; filter: blur(0.5px); }
.orb-a {
  width: min(100%, 380px); height: min(100%, 380px); right: 0; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.16), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(15, 23, 42, 0.06), transparent 50%);
  opacity: 0.9;
}
.orb-b {
  width: 180px; height: 180px; left: 5%; bottom: 8%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 65%);
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -12px); } }

.hero-glass {
  position: relative;
  z-index: 1;
  margin: 0 auto; max-width: 340px;
  padding: 0.2rem; border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-elev);
}
.hero-glass-core {
  border-radius: 1.2rem; padding: 1.1rem 1.15rem;
  background: #fff; box-shadow: var(--shadow-inset);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.mini-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mini-dot.on { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25); }
.mini-k { font-family: var(--font-mono); font-size: 9px; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.12em; }
.mini-bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--paper-200), var(--accent-50)); }
.mini-bar + .mini-bar { margin-top: 0.4rem; opacity: 0.65; width: 72%; }
.mini-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.75rem; }
.mini-pills span { font-family: var(--font-mono); font-size: 8.5px; padding: 0.2rem 0.45rem; border-radius: 4px; background: var(--paper-100); color: var(--ink-500); border: 1px solid var(--line); }

/* —— Demo: double-bezel —— */
#demo .section-head { text-align: left; }
.demo-outer { max-width: 900px; margin: 0; padding: 0.2rem; border-radius: 1.35rem; background: var(--paper-200); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; }
.demo-core { background: #fff; border-radius: 1.2rem; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.22); box-shadow: var(--shadow-card); }
.demo-chrome {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--paper-50));
}
.demo-chrome span { width: 9px; height: 9px; border-radius: 50%; }
.demo-chrome span:nth-child(1) { background: #fda4af; } .demo-chrome span:nth-child(2) { background: #fcd34d; } .demo-chrome span:nth-child(3) { background: #86efac; }
.demo-url { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0f172a; }
.video-frame iframe, .video-frame button.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.12)),
    url("https://i.ytimg.com/vi/1dmqH640_1Q/hqdefault.jpg") center/cover no-repeat;
  cursor: pointer; color: #fff; transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-poster:hover { filter: brightness(1.05) saturate(1.05); }
.video-poster:hover .play { transform: scale(1.06) translate3d(1px, -1px, 0); }
.play {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-600); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28), var(--shadow-inset);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.play svg { width: 28px; height: 28px; margin-left: 4px; }

/* —— Bento: asymmetric grid —— */
#features .section-head { text-align: left; }
.features-bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem;
  align-items: stretch;
}
.feature--primary { grid-column: span 7; }
.feature--side { grid-column: span 5; display: flex; flex-direction: column; }
.feature--side .feature-wrap,
.feature--side .feature-core { flex: 1; min-height: 0; }
.feature--wide { grid-column: span 12; }
.feature-wrap { height: 100%; padding: 0.2rem; border-radius: 1.35rem; background: var(--paper-200); }
.feature-core { height: 100%; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.45rem; background: #fff; border-radius: 1.2rem; border: 1px solid rgba(148, 163, 184, 0.2); box-shadow: var(--shadow-card), var(--shadow-inset); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.feature:hover .feature-core { transform: translateY(-3px); box-shadow: var(--shadow-elev), var(--shadow-inset); }
.feature { min-height: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 0.65rem; display: flex; align-items: center; justify-content: center; color: var(--accent-600); background: var(--accent-50); border: 1px solid rgba(37, 99, 235, 0.12); }
.feature-icon svg { width: 22px; height: 22px; stroke-width: 1.25; }
.feature h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
.feature p { margin: 0; color: var(--ink-500); font-size: 0.9rem; line-height: 1.58; }
.feature .tags, .method-row { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-family: var(--font-mono); font-size: 10px; padding: 0.2rem 0.5rem; border-radius: 6px; background: var(--paper-100); color: var(--ink-600); border: 1px solid var(--line); }
.pill { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; padding: 0.15rem 0.4rem; border-radius: 5px; }
.pill-post { background: var(--accent-50); color: var(--accent-600); }
.pill-get { background: #ecfdf5; color: #047857; }
.pill-put { background: #fffbeb; color: #b45309; }
.pill-delete { background: #fff1f2; color: #be123c; }

/* Install */
.install { text-align: left; }
.install-inner { max-width: 48rem; padding: clamp(2.25rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.25rem); border-radius: 1.35rem; background: linear-gradient(135deg, #fff, var(--accent-50) 120%); border: 1px solid rgba(148, 163, 184, 0.22); box-shadow: var(--shadow-elev), var(--shadow-inset); }
.install h2 { margin: 0 0 0.5rem; font-size: clamp(1.45rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; }
.install p { margin: 0 0 1.4rem; color: var(--ink-500); max-width: 40ch; line-height: 1.6; }

@media (max-width: 900px) {
  .feature--primary, .feature--side, .feature--wide { grid-column: span 12; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 200px; margin-top: 0.5rem; }
  .orb-a { right: 50%; transform: translate(50%, -45%); }
}

@media (max-width: 620px) { section { padding: 2.75rem 0; } .feature-core { padding: 1.2rem; } }

@media (prefers-reduced-motion: reduce) { .orb-b { animation: none; } }
