/* MY DIGITAL WORLD - public website styles (dark theme, responsive, no inline styles needed). */

:root {
  --bg: #070a13;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf7;
  --text-soft: #c3cbe0;
  --muted: #8d97b3;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 18px 40px -18px rgba(99, 102, 241, 0.55);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 0% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; outline: none; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: #a5b4fc; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #c4b5fd; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; color: #fff; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 0.6rem 1rem; border-radius: 10px; background: #fff; color: #000; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.icon { flex: none; vertical-align: -0.2em; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 19, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: #fff; font-weight: 800; letter-spacing: 0.06em; font-size: 0.98rem; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-logo { border-radius: 10px; object-fit: cover; }
.logo-mark { display: block; filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.45)); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.5rem 0.75rem; border-radius: 10px; color: var(--text-soft); font-size: 0.92rem; font-weight: 550; }
.site-nav a:hover { color: #fff; background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: #fff; background: var(--surface-3); box-shadow: inset 0 -2px 0 0 var(--accent); }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.cart-link:hover { color: #fff; border-color: var(--border-strong); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gradient); color: #fff; font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); display: none; background: rgba(9, 13, 26, 0.98); border-bottom: 1px solid var(--border); padding: 0.75rem 1.25rem 1.25rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.8rem 1rem; font-size: 1rem; }
  .cart-link { margin-left: 0.25rem; }
}

/* ------------------------------------------------------------------ buttons, badges, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 0.95rem; line-height: 1.2; cursor: pointer;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -12px rgba(99, 102, 241, 0.8); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px -10px rgba(99, 102, 241, 0.95); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: #fff; border-color: var(--border-strong); background: var(--surface-3); }
.btn-danger { background: rgba(248, 113, 113, 0.15); color: #fecaca; border-color: rgba(248, 113, 113, 0.35); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.02rem; border-radius: 14px; }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.18rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text-soft); background: var(--surface-3); border: 1px solid var(--border); white-space: nowrap; }
.badge-accent { color: #ddd6fe; background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.35); }
.badge-success { color: #a7f3d0; background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.35); }
.badge-warning { color: #fde68a; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); }
.badge-danger { color: #fecaca; background: rgba(248, 113, 113, 0.13); border-color: rgba(248, 113, 113, 0.35); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); font-size: 0.86rem; font-weight: 550; }
a.chip:hover { color: #fff; border-color: var(--border-strong); }
.chip.active { color: #fff; background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.55); }
.chips-sm .chip { padding: 0.15rem 0.6rem; font-size: 0.76rem; }
.chips-secondary .chip { font-size: 0.8rem; }

/* ------------------------------------------------------------------ hero (home) */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); text-align: center; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(139, 92, 246, 0.32), transparent 70%),
    radial-gradient(35% 45% at 72% 28%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(30% 40% at 50% 80%, rgba(244, 114, 182, 0.12), transparent 70%);
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.05); } }
.hero-inner { position: relative; max-width: 920px; }
.hero-tagline { display: inline-block; margin-bottom: 1.4rem; padding: 0.45rem 1.1rem; border-radius: 999px; font-size: clamp(0.72rem, 1.6vw, 0.86rem); font-weight: 800; letter-spacing: 0.32em; color: #e0e7ff; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.hero-title { font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 1.2rem; background: linear-gradient(120deg, #fff 0%, #ddd6fe 35%, #a5f3fc 70%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-headline { font-size: clamp(1.25rem, 3vw, 1.85rem); font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.hero-intro { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--text-soft); max-width: 640px; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
@media (max-width: 560px) { .hero-tagline { letter-spacing: 0.16em; padding: 0.45rem 0.9rem; } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.section-tight { padding-top: 1.5rem; padding-bottom: 1rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin-bottom: 0.25rem; }
.section-head p { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 650; white-space: nowrap; }
.link-arrow:hover .icon { transform: translateX(2px); }

.page-header { padding: clamp(2.5rem, 6vw, 4rem) 0 1.2rem; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), transparent); }
.page-header .lead { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem; color: #c4b5fd; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.lead { font-size: clamp(1.02rem, 1.8vw, 1.16rem); color: var(--text-soft); }

.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.explore-card {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.35rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.explore-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%); opacity: 0; transition: opacity 0.25s ease; }
.explore-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.45); box-shadow: var(--glow); }
.explore-card:hover::after { opacity: 1; }
.explore-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 0.5rem; border-radius: 14px; color: #fff; background: var(--gradient); box-shadow: 0 10px 24px -12px rgba(99, 102, 241, 0.9); }
.explore-software .explore-icon { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.explore-research .explore-icon { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.explore-videos .explore-icon { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.explore-products .explore-icon { background: linear-gradient(135deg, #fbbf24, #f472b6); }
.explore-about .explore-icon { background: linear-gradient(135deg, #a78bfa, #6366f1); }
.explore-contact .explore-icon { background: linear-gradient(135deg, #38bdf8, #22d3ee); }
.explore-title { font-weight: 750; font-size: 1.08rem; color: #fff; }
.explore-text { color: var(--muted); font-size: 0.92rem; }
.explore-count { margin-top: 0.4rem; font-size: 0.78rem; font-weight: 700; color: #c4b5fd; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; margin: 1rem 0 4rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.1)); border: 1px solid rgba(139, 92, 246, 0.3); }
.cta-band h2 { margin-bottom: 0.3rem; }
.cta-band p { margin: 0; color: var(--text-soft); }

/* ------------------------------------------------------------------ cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.4); box-shadow: var(--glow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card-media-short { aspect-ratio: 16 / 7; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.meta-text { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted); font-size: 0.8rem; }
.card-title { margin: 0; font-size: 1.08rem; }
.card-title a { color: #fff; }
.card-title a:hover { color: #c4b5fd; }
.card-text { margin: 0; color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.4rem; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.55); background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.12)), var(--bg-2); }
.media-software { background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.18)), var(--bg-2); }
.media-research { background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(14, 165, 233, 0.15)), var(--bg-2); }
.media-videos { background: linear-gradient(135deg, rgba(244, 114, 182, 0.24), rgba(139, 92, 246, 0.18)), var(--bg-2); }
.media-store { background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(244, 114, 182, 0.15)), var(--bg-2); }
.media-about { aspect-ratio: 1; border-radius: var(--radius); }
.video-thumb .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55)); opacity: 0.85; transition: opacity 0.2s ease; }
.card-video:hover .play-overlay { opacity: 1; }
.duration { position: absolute; right: 0.6rem; bottom: 0.6rem; padding: 0.1rem 0.45rem; border-radius: 6px; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 0.76rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price { font-size: 1.15rem; font-weight: 800; color: #fff; }
.price-compare { color: var(--muted); font-size: 0.9rem; }
.stock { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 650; }
.stock-ok { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

.empty-state { display: grid; justify-items: center; gap: 0.5rem; padding: 3.5rem 1.5rem; margin: 1rem 0; text-align: center; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: var(--surface); color: var(--muted); }
.empty-state svg { color: #a78bfa; }
.empty-state h2 { margin: 0.3rem 0 0; font-size: 1.25rem; }
.empty-state p { margin: 0; }

/* ------------------------------------------------------------------ filters, search, pagination */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin: 1.2rem 0 1.6rem; }
.search-form { position: relative; display: flex; gap: 0.5rem; margin-left: auto; min-width: min(100%, 360px); }
.search-form input { flex: 1; min-width: 0; padding: 0.6rem 0.9rem 0.6rem 2.4rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.search-form input::placeholder { color: var(--muted); }
.search-icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; }
@media (max-width: 720px) { .search-form { margin-left: 0; width: 100%; } }
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 2.2rem 0 1rem; }
.pagination ol { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 0.6rem; border-radius: 10px; border: 1px solid var(--border); color: var(--text-soft); background: var(--surface); }
.pagination span[aria-current] { color: #fff; background: rgba(139, 92, 246, 0.25); border-color: rgba(139, 92, 246, 0.55); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: rgba(255, 255, 255, 0.25); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: #fff; }

/* ------------------------------------------------------------------ detail pages */
.detail-header { margin-bottom: 1.6rem; }
.detail-header h1 { margin: 0.6rem 0 0.5rem; }
.detail-header .actions { margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.actions-stack { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-main > * + * { margin-top: 1.8rem; }
.detail-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 960px) { .detail-aside { position: static; } }
.detail-cover { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.detail-cover img { display: block; width: 100%; }
.detail-block h2 { font-size: 1.3rem; }
.aside-card { padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.aside-card h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; margin: 0; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.plain-list { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.preview-bar { padding: 0.6rem 1rem; text-align: center; font-weight: 700; color: #1c1917; background: var(--warning); }

.notice { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; margin: 0 0 1.2rem; border-radius: var(--radius-sm); background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.35); color: #e0e7ff; }
.notice-warning { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); color: #fef3c7; }
.notice-success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); color: #d1fae5; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.gallery-item { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.file-list { display: grid; gap: 0.6rem; }
.file-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.file-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.file-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-name { font-weight: 650; color: #fff; overflow-wrap: anywhere; }
.file-meta { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; display: block; }
.file-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .file-row { flex-wrap: wrap; } .file-actions { width: 100%; justify-content: flex-start; } }

/* ------------------------------------------------------------------ prose (Markdown) */
.prose { color: var(--text-soft); font-size: 1.02rem; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(165, 180, 252, 0.4); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.3rem; }
.prose li.task { list-style: none; margin-left: -1.2rem; }
.prose blockquote { margin: 1.2rem 0; padding: 0.6rem 1.1rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text-soft); }
.prose code { padding: 0.12rem 0.4rem; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-size: 0.88em; color: #f0abfc; }
.prose pre { margin: 1.2rem 0; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: #0d1117; border: 1px solid var(--border); overflow-x: auto; line-height: 1.55; }
.prose pre code { padding: 0; background: none; color: #e6edf3; font-size: 0.88rem; }
.prose-sm { font-size: 0.94rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td, .data-table th, .data-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th, .data-table th { color: #fff; background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.data-table tbody tr:hover { background: var(--surface); }
.num, .data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.align-center { text-align: center !important; }
.align-right { text-align: right !important; }

/* ------------------------------------------------------------------ code viewer */
.code-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.code-title h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.2rem; overflow-wrap: anywhere; }
.code-viewer { margin-bottom: 2rem; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; background: #0d1117; }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 0.85rem; color: var(--text-soft); }
.code-pre { margin: 0; padding: 1rem 1.2rem; overflow: auto; max-height: 75vh; font-size: 0.86rem; line-height: 1.6; tab-size: 4; }
.code-pre code { font-family: var(--mono); color: #e6edf3; background: none !important; padding: 0 !important; }
.archive-list { display: grid; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 2rem; }
.archive-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1rem; padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--border); color: var(--text-soft); font-family: var(--mono); font-size: 0.84rem; }
.archive-row:hover { background: var(--surface-2); color: #fff; }
.archive-name { display: flex; align-items: center; gap: 0.45rem; overflow-wrap: anywhere; color: #fff; }
.archive-folder { color: var(--muted); overflow-wrap: anywhere; }
.archive-size { color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .archive-row { grid-template-columns: 1fr auto; } .archive-folder { display: none; } }

/* ------------------------------------------------------------------ software */
.software-header { display: flex; gap: 1.4rem; align-items: flex-start; }
.software-icon { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; flex: none; border: 1px solid var(--border); box-shadow: var(--shadow); }
.software-icon.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #22d3ee, #6366f1); color: #fff; }
@media (max-width: 560px) { .software-header { flex-direction: column; } }
.download-grid { display: grid; gap: 0.75rem; }
.download-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08)); border: 1px solid var(--border-strong); }
.download-card strong { display: block; color: #fff; }
.scan-ok { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem; font-size: 0.8rem; color: var(--success); }
.checksum { margin-top: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.checksum summary { cursor: pointer; }
.checksum code { display: block; margin-top: 0.3rem; overflow-wrap: anywhere; font-size: 0.75rem; color: var(--text-soft); }
.version-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.version-item { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.version-item.current { border-color: rgba(139, 92, 246, 0.45); }
.version-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.version-head strong { color: #fff; }
.older-downloads summary { cursor: pointer; color: #a5b4fc; margin: 0.5rem 0; }

/* ------------------------------------------------------------------ research */
.chart-card { margin: 0 0 1.2rem; padding: 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.chart-card figcaption { font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.chart { width: 100%; min-height: 260px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.5rem; font-size: 0.82rem; color: var(--text-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.chart-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-swatch-0 { background: #8b5cf6; } .chart-swatch-1 { background: #22d3ee; } .chart-swatch-2 { background: #f472b6; }
.chart-swatch-3 { background: #fbbf24; } .chart-swatch-4 { background: #34d399; }
.data-preview h3 { display: flex; align-items: center; gap: 0.4rem; margin-top: 1rem; }

/* ------------------------------------------------------------------ videos */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 1020px) { .video-layout { grid-template-columns: 1fr; } }
.video-title { margin: 1.2rem 0 0.5rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.video-main .prose { margin-top: 1rem; }
.video-main .tag-list { margin-top: 1rem; }
.related-list { display: grid; gap: 0.8rem; }
.related-list .card-media { aspect-ratio: 16 / 9; }
.playlist-list { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.playlist-list li { padding: 0.2rem 0; }
.playlist-list li.current a { color: #fff; font-weight: 700; }
.playlist-list .muted { margin-left: 0.4rem; }
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.playlist-tile { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.playlist-tile:hover { color: var(--text); border-color: rgba(244, 114, 182, 0.45); }
.playlist-tile strong { display: block; color: #fff; }
.playlist-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, #f472b6, #8b5cf6); color: #fff; flex: none; }

/* ------------------------------------------------------------------ store */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.product-hero { margin: 0 0 0.8rem; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.product-hero img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin: 0.6rem 0 0.4rem; }
.product-price { margin: 1rem 0 0.4rem; }
.product-price .price { font-size: 1.8rem; }
.buy-box { margin: 1.4rem 0; padding: 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.buy-box label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.buy-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.buy-row input { width: 90px; padding: 0.8rem; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 700; }
.buy-row .btn { flex: 1; }
.assurance { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--text-soft); }
.assurance li { display: flex; gap: 0.5rem; align-items: flex-start; }
.assurance .icon { margin-top: 0.2rem; color: var(--success); }
.product-details { max-width: 820px; padding: 2rem 0 3rem; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin: 2.5rem 0 1rem; padding: 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-size: 0.92rem; }
.trust-strip span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cart-root { padding-bottom: 3rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { display: grid; gap: 0.8rem; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.cart-line.unavailable { opacity: 0.6; }
.cart-thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-title { font-weight: 700; color: #fff; }
.cart-line-meta { font-size: 0.84rem; color: var(--muted); }
.cart-line-message { font-size: 0.84rem; color: var(--warning); }
.cart-line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 34px; height: 34px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.qty-control button:hover { background: var(--surface-3); }
.qty-control span { min-width: 38px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.link-button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.82rem; cursor: pointer; padding: 0; }
.link-button:hover { color: var(--danger); }
.cart-summary { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); position: sticky; top: calc(var(--header-h) + 1rem); }
.cart-summary .kv { margin-bottom: 1rem; }
.cart-summary .btn { width: 100%; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 64px minmax(0, 1fr); } .cart-thumb { width: 64px; height: 64px; } .cart-line-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* ------------------------------------------------------------------ about & contact */
.about-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skills-title { margin-top: 2rem; font-size: 1.2rem; }
.about-body .actions { margin-top: 2rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 0.8rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); overflow-wrap: anywhere; }
a.contact-item:hover { color: #fff; border-color: var(--border-strong); }
.contact-item > .icon { margin-top: 0.2rem; color: #c4b5fd; }
.contact-item strong { display: block; color: #fff; }
.contact-social a { display: inline-block; margin-right: 0.8rem; }
.contact-form-card { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 650; color: var(--text-soft); }
.field input, .field textarea, .field select { width: 100%; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: inherit; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

/* ------------------------------------------------------------------ order & error pages */
.order-page .detail-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.error-page { padding: 5rem 0 6rem; text-align: center; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .actions { justify-content: center; margin-top: 1.5rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: rgba(5, 8, 16, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); margin: 0.9rem 0 0.4rem; max-width: 360px; }
.footer-tagline { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.26em; color: #c4b5fd !important; }
.footer-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-soft); margin-bottom: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding: 1.2rem 0 1.6rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer-secure { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ------------------------------------------------------------------ interactive bits (site.js) */
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: grid; gap: 0.5rem; max-width: min(380px, calc(100vw - 2rem)); }
.toast { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; border-radius: 14px; background: #121a33; border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: var(--text); animation: toast-in 0.25s ease; }
.toast a { font-weight: 700; margin-left: auto; white-space: nowrap; }
.toast-error { border-color: rgba(248, 113, 113, 0.5); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 2rem; background: rgba(3, 5, 12, 0.92); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
.copy-done { color: var(--success) !important; }
