/* Nexus Launcher website — the rest of the home page.
   Feature bento, the settings widget, the large-screen band and the privacy
   strip. Hero, stats and the mosaic split live in site-home.css. */

/* ---------- feature bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.bento > * { min-width: 0; }

.cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  height: 100%;
  scroll-margin-top: 6rem;
  column-gap: 0.7rem;
  row-gap: 0.85rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-widget);
  background:
    radial-gradient(18rem 10rem at 0% 0%, color-mix(in srgb, var(--ink) 9%, transparent), transparent 68%),
    linear-gradient(165deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1.2%));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cell:hover {
  border-color: var(--line-strong);
  background:
    radial-gradient(18rem 10rem at 0% 0%, color-mix(in srgb, var(--ink) 15%, transparent), transparent 68%),
    linear-gradient(165deg, rgb(255 255 255 / 7.5%), rgb(255 255 255 / 2%));
  transform: translateY(-0.2rem);
}

.cell-wide { grid-column: span 4; }
.cell-half { grid-column: span 3; }
.cell-third { grid-column: span 2; }

.cell > .icon-badge { grid-column: 1; grid-row: 1; align-self: start; }

.cell > .cell-copy { grid-column: 2; grid-row: 1; height: 100%; }

.cell > .cell-shot { grid-column: 1 / -1; }

.cell-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cell-tag {
  margin: 0 0 0.45rem;
  color: var(--cyan-300);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.cell-copy h3 { margin-bottom: 0.45rem; font-size: 1.14rem; }

.cell-copy p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.62;
}

.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.mode-switch button {
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
}

.mode-switch button[aria-checked="true"] {
  border-color: var(--ink);
  background: var(--glass-hover);
  color: var(--ink);
}

.drawer-shot,
.cell-shot {
  position: relative;
  width: min(100%, 13.5rem);
  margin: 1.05rem auto 0;
}

.drawer-shot img,
.cell-shot img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.cell[data-folder] { cursor: pointer; }

.cell-open-label {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan-300);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.cell-shot {
  transform-origin: top center;
  animation: folder-in 0.28s ease;
}

@keyframes folder-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}

/* ---------- settings widget ---------- */

.settings-widget {
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 18rem at 88% -10%, color-mix(in srgb, var(--ink) 18%, transparent), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 4.5%), rgb(255 255 255 / 1.2%));
  box-shadow: var(--shadow-card);
}

.settings-widget .widget-bar { padding-inline: 0.4rem; }

.settings-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1.6rem;
}

.settings-group { min-width: 0; }

.group-label {
  margin: 0 0 0.4rem 0.55rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.settings-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.95rem;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}

.settings-row:hover {
  background: rgb(255 255 255 / 6%);
  color: var(--ink);
  transform: translateX(0.12rem);
}

.row-text b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.row-text small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.row-chev {
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.settings-more {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-row:hover .row-chev {
  color: var(--cyan-300);
  transform: translateX(0.15rem);
}

/* ---------- large screens ---------- */

.tablet-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(38rem 24rem at 80% 18%, color-mix(in srgb, var(--ink) 32%, transparent), transparent 70%),
    radial-gradient(32rem 22rem at 10% 82%, color-mix(in srgb, var(--ink) 42%, transparent), transparent 72%),
    rgb(5 9 15 / 70%);
}

.tablet-head { max-width: 46rem; }
.tablet-head p { color: var(--ink-dim); }

.tablet-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.8rem, 3.6vw, 2.6rem);
}

.tablet-shots .widget-media img { aspect-ratio: 16 / 9; }

/* ---------- privacy strip ---------- */

.privacy-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(26rem 15rem at 90% 0%, color-mix(in srgb, var(--ink) 14%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--ink) 8%, transparent), rgb(255 255 255 / 1.5%));
}

.privacy-strip h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-bottom: 0.6rem; }
.privacy-strip p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
.privacy-strip .btn-row { justify-content: flex-end; margin-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 64rem) {
  .privacy-strip { grid-template-columns: 1fr; }

  .settings-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-wide { grid-column: span 6; }
  .cell-half { grid-column: span 3; }
  .cell-third { grid-column: span 3; }
  .privacy-strip .btn-row { justify-content: flex-start; }
}

@media (max-width: 44rem) {
  .settings-groups { grid-template-columns: 1fr; }
  .cell,
  .cell-wide,
  .cell-half,
  .cell-third { grid-column: 1 / -1; }
  .tablet-shots { grid-template-columns: 1fr; }
}
