:root {
    --bg-primary: #07070a;
    --bg-secondary: #0f0f16;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #8b8b9e;
    --text-tertiary: #5a5a6e;
    --accent-berry: #b75ab7;
    --accent-berry-glow: rgba(183, 90, 183, 0.4);
    --accent-android: #3ddc84;
    --accent-android-glow: rgba(61, 220, 132, 0.3);
    --accent-ios: #5ac8fa;
    --accent-ios-glow: rgba(90, 200, 250, 0.3);
    --accent-windows: #00a4ef;
    --accent-windows-glow: rgba(0, 164, 239, 0.3);
    --accent-macos: #ff9f0a;
    --accent-macos-glow: rgba(255, 159, 10, 0.3);
    --accent-linux: #ff9500;
    --accent-linux-glow: rgba(255, 149, 0, 0.3);
    --accent-bb10: #1c1c1e;
    --accent-bb10-glow: rgba(255, 255, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(183, 90, 183, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(61, 220, 132, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(90, 200, 250, 0.05) 0%, transparent 60%),
        var(--bg-primary);
    animation: bgShift 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

@keyframes bgShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    padding: 12px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    background: rgba(15, 15, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.header__logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-berry), #8b3a8b);
    border-radius: 12px;
    box-shadow: 0 0 20px var(--accent-berry-glow);
    position: relative;
    overflow: hidden;
}

.header__logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
    position: relative;
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__search {
    position: relative;
    display: flex;
    align-items: center;
}

.header__search-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 9px 14px 9px 36px;
    color: var(--text-primary);
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    outline: none;
}

.header__search-input:focus {
    width: 260px;
    border-color: var(--accent-berry);
    box-shadow: 0 0 0 3px rgba(183, 90, 183, 0.15);
}

.header__search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.theme-toggle,
.header__burger {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover,
.header__burger:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Burger is mobile-only; shown again in the max-width:768px media query */
.header__burger {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-berry), #9b4a9b);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(183, 90, 183, 0.25);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(183, 90, 183, 0.4);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn--secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    box-shadow: none;
}

.btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(255,255,255,0.05);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-xl);
}

/* Platform logos */
.platform-logo {
    display: inline-block;
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.platform-logo--native {
    filter: none;
}

.platform-chip .platform-logo {
    width: 14px;
    height: 14px;
}

.card__meta .platform-chip {
    padding: 4px 10px;
    font-size: 11px;
    gap: 4px;
}

.card__meta .platform-chip .platform-logo {
    width: 12px;
    height: 12px;
}

/* Hero */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-berry);
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(183, 90, 183, 0.1);
    border: 1px solid rgba(183, 90, 183, 0.2);
    border-radius: var(--radius-lg);
}

.hero__title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin: 0 0 28px;
    background: linear-gradient(135deg, #fff 0%, #c4c4d4 50%, #b75ab7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero__title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    filter: blur(40px);
    opacity: 0.4;
    background: linear-gradient(135deg, var(--accent-berry), var(--accent-android));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
}

.hero__subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 0 40px;
    line-height: 1.6;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Platform Orbit */
.hero__orbit {
    position: relative;
    padding: 40px 0;
}

.hero__orbit-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.hero__orbit-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 4px 40px;
    scrollbar-width: none;
}

.hero__orbit-track::-webkit-scrollbar {
    display: none;
}

.platform-orbit {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 120px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.platform-orbit::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--platform-color, var(--accent-berry)), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.platform-orbit:hover {
    transform: translateY(-8px) scale(1.05);
    color: var(--text-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--platform-glow, var(--accent-berry-glow));
}

.platform-orbit:hover::before {
    opacity: 1;
}

.platform-orbit__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    color: var(--platform-color, var(--accent-berry));
    transition: all 0.3s;
}

.platform-orbit:hover .platform-orbit__icon {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.platform-orbit__name {
    font-size: 15px;
    font-weight: 600;
}

/* Stats */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
}

.hero__stat {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.hero__stat:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.hero__stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.hero__stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Editorial hero layout */
.hero--editorial .container {
    position: relative;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.hero__main {
    padding-top: 20px;
}

.hero__side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Terminal */
.hero__terminal {
    background: rgba(8, 8, 12, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
    font-family: var(--font-mono);
    font-size: 13px;
    transform: rotate(1deg);
    transition: transform 0.4s ease;
}

.hero__terminal:hover {
    transform: rotate(0deg);
}

.hero__terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-tertiary);
    font-size: 11px;
}

.hero__terminal-header span:nth-child(1),
.hero__terminal-header span:nth-child(2),
.hero__terminal-header span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}

.hero__terminal-header span:nth-child(2) { background: #ffbd2e; }
.hero__terminal-header span:nth-child(3) { background: #27c93f; }

.hero__terminal-header span:nth-child(4) {
    margin-left: 8px;
}

.hero__terminal-body {
    padding: 18px 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.hero__terminal-line {
    opacity: 0;
    transform: translateX(-8px);
    animation: terminalReveal 0.4s ease forwards;
    animation-delay: var(--line-delay, 0s);
}

@keyframes terminalReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__terminal-prompt {
    color: var(--accent-berry);
    margin-right: 8px;
    font-weight: 700;
}

.hero__terminal-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dot-color, var(--accent-berry));
    margin-left: 6px;
    box-shadow: 0 0 8px var(--dot-color, var(--accent-berry));
}

.hero__terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--accent-berry);
    margin-left: 4px;
    animation: cursorBlink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Inline stats */
.hero__stats--inline {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
    transform: rotate(-1deg);
    transition: transform 0.4s ease;
}

.hero__stats--inline:hover {
    transform: rotate(0deg);
}

/* Disclaimer */
.hero__disclaimer {
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 16px 0 0;
    line-height: 1.5;
    max-width: 640px;
}

/* Ticker */
.ticker {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 14px 0;
    overflow: hidden;
    margin-top: 60px;
}

.ticker__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: ticker 24s linear infinite;
}

.ticker__track span {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.ticker__track span::before {
    content: '◆';
    margin-right: 48px;
    color: var(--accent-berry);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
}

.section__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 12px;
}

.section__subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

.section__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-berry);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
}

.section__link:hover {
    gap: 12px;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.grid--categories {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.grid--bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(240px, auto);
    gap: 24px;
}

.grid--bento .card {
    display: flex;
    flex-direction: column;
}

.grid--bento .card:first-child {
    grid-column: span 2;
    grid-row: span 1;
}

.grid--bento .card:nth-child(2) { transform: rotate(-1deg); }
.grid--bento .card:nth-child(3) { transform: rotate(0.5deg); }
.grid--bento .card:nth-child(5) { transform: rotate(-0.8deg); }
.grid--bento .card:nth-child(7) { transform: rotate(1deg); }

.grid--bento .card:hover {
    transform: translateY(-8px) rotate(0deg) rotateX(2deg) rotateY(2deg);
}

/* Cards */
.card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--card-accent, var(--accent-berry)), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 40px var(--card-glow, var(--accent-berry-glow));
    border-color: rgba(255,255,255,0.12);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 0.8;
}

.card__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    color: var(--card-accent, var(--accent-berry));
    margin-bottom: 16px;
    font-size: 20px;
    transition: all 0.3s;
}

.card:hover .card__icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 30px var(--card-glow, var(--accent-berry-glow));
}

.card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card__desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.card__meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    row-gap: 4px;
}

.card__meta > span {
    white-space: nowrap;
}

.card__meta > span:last-child {
    margin-left: auto;
}

.card__price {
    font-weight: 700;
    color: var(--accent-berry);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 159, 10, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.badge--verified {
    background: rgba(61, 220, 132, 0.1);
    border: 1px solid rgba(61, 220, 132, 0.3);
    color: var(--accent-android);
}

/* Category cards */
.cat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

.cat-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: var(--accent-berry);
}

.cat-card__title {
    font-weight: 700;
    font-size: 15px;
}

.cat-card__count {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Platform cards */
.platform-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    transform: translateY(-6px);
    border-color: var(--platform-color, var(--accent-berry));
    box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 30px var(--platform-glow, var(--accent-berry-glow));
}

.platform-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    color: var(--platform-color, var(--accent-berry));
}

.platform-card__name {
    font-size: 20px;
    font-weight: 700;
}

.platform-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Catalog */
.catalog-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.catalog-bar input,
.catalog-bar select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.catalog-bar input:focus,
.catalog-bar select:focus {
    border-color: var(--accent-berry);
    box-shadow: 0 0 0 3px rgba(183, 90, 183, 0.1);
}

.catalog-bar input {
    flex: 1 1 240px;
    min-width: 200px;
}

.catalog-bar select {
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

/* App page */
.app-hero {
    padding: 60px 0 50px;
    position: relative;
}

.app-hero__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

.app-hero__icon {
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid var(--border-glass);
    color: var(--card-accent, var(--accent-berry));
    font-size: 64px;
    box-shadow: 0 0 60px var(--card-glow, var(--accent-berry-glow));
    transition: all 0.4s ease;
}

.app-hero__icon:hover {
    transform: rotate(-5deg) scale(1.05);
}

.app-hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0 0 12px;
}

.app-hero__tagline {
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.app-hero__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.app-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}

.app-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-section {
    padding: 40px 0 80px;
}

.app-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
}

.app-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 760px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.platform-chip:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-glass);
    margin-top: 40px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer__desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer__col-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer__col-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__col-links li {
    margin-bottom: 10px;
}

.footer__col-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer__col-links a:hover {
    color: var(--text-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 24px;
    right: 24px;
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav__search-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px; /* >=16px so iOS doesn't auto-zoom on focus */
    outline: none;
}

.mobile-nav__search-input:focus {
    border-color: var(--accent-berry);
}

/* Auth */
.auth-box {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.auth-box h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 28px;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-berry);
    box-shadow: 0 0 0 3px rgba(183, 90, 183, 0.1);
}

.form-error {
    padding: 12px 16px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: var(--radius-md);
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-success {
    padding: 12px 16px;
    background: rgba(61, 220, 132, 0.1);
    border: 1px solid rgba(61, 220, 132, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-android);
    font-size: 14px;
    margin-bottom: 20px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

/* Admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.admin-table a {
    color: var(--accent-berry);
    text-decoration: none;
}

/* Pricing */
.pricing-hero {
    padding-bottom: 32px;
    text-align: center;
}

.pricing-hero .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle {
    display: inline-flex;
    gap: 4px;
    margin-top: 28px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
}

.pricing-toggle__btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pricing-toggle__btn--active {
    background: var(--accent-berry);
    color: #fff;
}

.pricing-toggle__save {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    margin-left: 4px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card--featured {
    border-color: var(--accent-berry);
    box-shadow: 0 0 60px var(--accent-berry-glow);
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.12);
}

.pricing-card__tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--accent-berry);
    background: var(--accent-berry-glow);
    border: 1px solid var(--accent-berry);
    border-radius: 999px;
    padding: 3px 10px;
}

.pricing-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    color: var(--accent-berry);
    margin-bottom: 20px;
}

.pricing-card__name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card__desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 20px;
    min-height: 39px;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.pricing-card__amount {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

.pricing-card__period {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.pricing-card__features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-berry);
}

.pricing-card__cta {
    width: 100%;
    margin-top: auto;
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px auto 0;
    max-width: 640px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.5;
}

.pricing-note svg {
    flex-shrink: 0;
    color: var(--accent-berry);
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card__desc {
        min-height: 0;
    }
    .pricing-toggle {
        max-width: 100%;
    }
    .pricing-toggle__btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .pricing-toggle__save {
        display: block;
        margin-left: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
    .hero__side {
        max-width: 560px;
    }
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--bento .card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    /* Header doesn't fit with the search field in this range; search stays available on /catalog */
    .header__search {
        display: none;
    }
}

@media (max-width: 560px) {
    /* Auth buttons would push the burger off-screen; they live in the mobile menu too */
    .header__actions .btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .header__nav,
    .header__search,
    .theme-toggle:not(.header__burger) {
        display: none;
    }
    .header__burger {
        display: grid;
    }
    .hero__title {
        letter-spacing: -1px;
    }
    .hero__stats {
        grid-template-columns: 1fr;
    }
    .hero__terminal,
    .hero__stats--inline {
        transform: none;
    }
    .app-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .app-hero__icon {
        margin: 0 auto;
    }
    .app-hero__actions {
        justify-content: center;
    }
    .footer__inner {
        grid-template-columns: 1fr;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .grid--bento {
        grid-template-columns: 1fr;
    }
    .grid--bento .card:first-child {
        grid-column: span 1;
    }
}

/* Utility */
.text-secondary {
    color: var(--text-secondary);
}

.hidden-sm {
    display: inline;
}

@media (max-width: 768px) {
    .hidden-sm {
        display: none;
    }
}

/* 404 */
.error-hero {
    text-align: center;
    padding: 120px 20px;
}

.error-hero h1 {
    font-size: 120px;
    font-weight: 800;
    letter-spacing: -6px;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #fff, var(--accent-berry));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-hero p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

/* Card extras: corner badge overlay */
.card__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.card__badges .badge {
    padding: 3px 8px;
    font-size: 10px;
}

.badge--new {
    background: rgba(90, 200, 250, 0.1);
    border: 1px solid rgba(90, 200, 250, 0.3);
    color: var(--accent-ios);
}

/* Trust signals on version page */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.trust-item--hash {
    color: var(--accent-android);
    border-color: rgba(61, 220, 132, 0.3);
    background: rgba(61, 220, 132, 0.08);
}

.source--official {
    color: var(--accent-android);
    border-color: rgba(61, 220, 132, 0.3);
    background: rgba(61, 220, 132, 0.08);
}

.source--apkmirror {
    color: var(--accent-windows);
    border-color: rgba(0, 164, 239, 0.3);
    background: rgba(0, 164, 239, 0.08);
}

.source--community {
    color: var(--accent-macos);
    border-color: rgba(255, 159, 10, 0.3);
    background: rgba(255, 159, 10, 0.08);
}

/* Install guides */
.install-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.install-guide {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.install-guide__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

.install-guide__steps {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.install-guide p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Blog */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-berry);
}

.article__hero {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
}

.article__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0 0 16px;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.article__body {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.article__body h2 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 12px;
}

.article__body h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.article__body p {
    margin: 0 0 16px;
}

.article__body ul,
.article__body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.article__body li {
    margin-bottom: 8px;
}

.article__body a {
    color: var(--accent-berry);
}

.article__body strong {
    color: var(--text-primary);
}

.article__body blockquote {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-left: 3px solid var(--accent-berry);
    background: rgba(183, 90, 183, 0.07);
    border-radius: 0 12px 12px 0;
}

.article__related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-glass);
}

/* Blog cards: equal height, pinned footer */
.blog-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-grid .card__desc {
    min-height: 42px;
}

.blog-card__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
}

.blog-card__row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    overflow: hidden;
}

.blog-card__tags {
    display: flex;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.blog-card__footer {
    display: flex;
    justify-content: flex-end;
}
