/* ==========================================================================
   Maitreya.dev stylesheet
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-subtle: #f3f1ec;
  --border: #e5e2da;
  --border-strong: #cfc9be;
  --text: #161614;
  --text-muted: #58554e;
  --text-subtle: #858075;
  --link: #1d4ed8;
  --link-hover: #1e3a8a;
  --btn-bg: #161614;
  --btn-text: #faf9f6;
  --status-live: #15803d;
  --status-live-bg: #ecfdf5;
  --status-soon: #b45309;
  --status-soon-bg: #fffbeb;
  --status-archive: #57534e;
  --status-archive-bg: #f5f5f4;
  --radius: 10px;
  --radius-sm: 6px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #121211;
  --surface: #1a1a18;
  --surface-subtle: #22221f;
  --border: #2c2b27;
  --border-strong: #3f3d37;
  --text: #ecebe6;
  --text-muted: #a3a096;
  --text-subtle: #78756c;
  --link: #93c5fd;
  --link-hover: #bfdbfe;
  --btn-bg: #ecebe6;
  --btn-text: #121211;
  --status-live: #4ade80;
  --status-live-bg: rgba(74, 222, 128, 0.1);
  --status-soon: #fbbf24;
  --status-soon-bg: rgba(251, 191, 36, 0.1);
  --status-archive: #a8a29e;
  --status-archive-bg: rgba(168, 162, 158, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(980px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(740px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.text-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.34rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.text-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.menu-toggle {
  display: none;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.54rem 1.05rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28), 0 6px 14px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28), 0 10px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 2px 0 var(--border), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--border-strong), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.btn-secondary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--border);
}

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
}

.inline-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.inline-link:hover {
  color: var(--link-hover);
}

/* Hero + Interactive 3D Stage */
.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  max-width: 17ch;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52ch;
  margin: 0 0 1.7rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
}

/* Hero showcase: browser window + phone */
.showcase {
  position: relative;
  height: 360px;
}

.sc-browser {
  position: absolute;
  top: 0;
  left: 0;
  width: 82%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 1px 0 var(--border),
    0 18px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .sc-browser {
  box-shadow:
    0 1px 0 var(--border),
    0 18px 40px rgba(0, 0, 0, 0.4);
}

.sc-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.sc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.sc-url {
  flex: 1;
  margin-left: 0.6rem;
  padding: 0.15rem 0.7rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-slides {
  position: relative;
  aspect-ratio: 16 / 10;
}

.sc-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.sc-slide.active {
  opacity: 1;
  visibility: visible;
}

.sc-visual {
  flex: 1;
  min-height: 0;
  padding: 0.6rem 24% 0.6rem 0.8rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.sc-visual svg {
  display: block;
}

.sc-caption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 28% 1.6rem 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.sc-caption span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.sc-pager {
  position: absolute;
  left: 0.9rem;
  bottom: 0.55rem;
  display: flex;
  gap: 5px;
}

.sc-pager span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.3s ease, width 0.3s ease;
}

.sc-pager span.active {
  width: 16px;
  border-radius: 3px;
  background: var(--text-muted);
}

.sc-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 172px;
  height: 300px;
  padding: 10px;
  border-radius: 30px;
  background: #1a1a18;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 24px 50px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .sc-phone {
  background: #2a2a27;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 50px rgba(0, 0, 0, 0.55);
}

.sc-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 46px;
  height: 12px;
  border-radius: 8px;
  background: #0d0d0c;
  transform: translateX(-50%);
  z-index: 1;
}

.sc-screen {
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(160deg, #f4efe6, #e6ecf5);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 16px 8px;
  padding: 42px 12px 12px;
}

[data-theme="dark"] .sc-screen {
  background: linear-gradient(160deg, #23221f, #1b2028);
}

.sc-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.sc-app img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.sc-app:hover img {
  transform: translateY(-2px) scale(1.05);
}

.sc-app span {
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.25;
  color: #3a3833;
  text-align: center;
  overflow-wrap: anywhere;
}

[data-theme="dark"] .sc-app span {
  color: #d6d3cc;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-note {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0.35rem 0 0;
  max-width: 60ch;
}

/* Filter Toolbar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.filter-tab {
  background: none;
  border: none;
  padding: 0.35rem 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.filter-tab:hover {
  color: var(--text);
}

.filter-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.search-input {
  width: 240px;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--border-strong);
}

/* Apps grid: two-column cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  perspective: 1100px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transform-style: preserve-3d;
  box-shadow:
    0 2px 0 var(--border),
    0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.app-card:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 4px 0 var(--border),
    0 18px 34px rgba(0, 0, 0, 0.09);
}

[data-theme="dark"] .app-card {
  box-shadow:
    0 2px 0 var(--border),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .app-card:hover {
  box-shadow:
    0 4px 0 var(--border-strong),
    0 22px 42px rgba(0, 0, 0, 0.45);
}

.app-card.hidden {
  display: none;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin-bottom: 0.8rem;
  transform: translateZ(16px);
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateZ(24px);
}

.app-meta {
  min-width: 0;
  flex: 1;
}

.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-title {
  font-size: 1.03rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.app-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-subtle);
  margin-top: 0.18rem;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.14rem 0.48rem;
  border-radius: 4px;
  white-space: nowrap;
}

.status-live {
  color: var(--status-live);
  background: var(--status-live-bg);
}

.status-soon {
  color: var(--status-soon);
  background: var(--status-soon-bg);
}

.status-archive {
  color: var(--status-archive);
  background: var(--status-archive-bg);
}

.app-tagline {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.91rem;
  flex: 1;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 500;
}

.app-footer a {
  color: var(--text);
}

.app-footer a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-footer a.muted-link {
  color: var(--text-muted);
  margin-left: auto;
}

/* Websites List */
.web-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  perspective: 1100px;
}

.web-card {
  --accent: #6366f1;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 2px 0 var(--border),
    0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.22s ease;
}

.web-card:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 4px 0 var(--border),
    0 18px 34px rgba(0, 0, 0, 0.09);
}

[data-theme="dark"] .web-card {
  box-shadow:
    0 2px 0 var(--border),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.web-visual {
  aspect-ratio: 2 / 1;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-bottom: 1px solid var(--border);
  padding: 0.6rem;
}

.web-visual svg {
  display: block;
}

.web-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.3rem 1.2rem;
}

.web-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.web-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.03rem;
}

.web-domain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.web-desc {
  margin: 0.45rem 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.web-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--link);
}

.web-card:hover .web-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.concepts-note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

/* Privacy Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.privacy-table th {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.privacy-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.privacy-table tr:last-child td {
  border-bottom: none;
}

.url-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--link);
  white-space: nowrap;
}

.url-mono:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-btn {
  padding: 0.28rem 0.58rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Detail & Policy Pages */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin: 2rem 0 1.5rem;
}

.breadcrumb a:hover {
  color: var(--text);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.detail-header h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.5rem;
}

.feature-banner {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 2.25rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.prose h3 {
  font-size: 0.96rem;
  font-weight: 600;
  margin: 1.4rem 0 0.45rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0;
}

.prose li {
  margin-bottom: 0.4rem;
}

.meta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.meta-box h2 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin: 0 0 0.9rem;
}

.meta-dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.meta-dl dt {
  font-size: 0.76rem;
  color: var(--text-subtle);
}

.meta-dl dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  word-break: break-word;
}

/* Policy Page */
.policy-article {
  padding-bottom: 2.5rem;
}

.policy-article h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.6rem;
}

.policy-article h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.policy-article p,
.policy-article li {
  color: var(--text-muted);
}

.callout {
  border-left: 3px solid var(--text);
  background: var(--surface-subtle);
  padding: 0.95rem 1.15rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.94rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 780px) {
  .hero-grid,
  .apps-grid,
  .web-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .showcase {
    height: 330px;
    max-width: 460px;
  }
  .sc-browser {
    width: 88%;
  }
  .sc-phone {
    width: 140px;
    height: 250px;
  }
  .sc-app img {
    width: 40px;
    height: 40px;
  }
  .sc-screen {
    gap: 12px 6px;
    padding: 36px 8px 8px;
  }
  .sc-app span {
    font-size: 0.55rem;
    overflow-wrap: anywhere;
  }
  .search-input {
    width: 100%;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .detail-header {
    flex-direction: column;
  }
}
