/* ============================================================
   NQM AGENCY — Landing CSS (FINAL - no hidden sections)
   ============================================================ */

.landing-body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════════ */
.topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px max(3vw, 20px) 0;
}

.site-header {
    max-width: 1180px;
    margin: 0 auto;
    height: 64px;
    padding: 0 12px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
}

.brand-word {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.brand-word span { color: var(--muted); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    color: var(--muted);
}

.main-nav > a:not(.nav-login) {
    transition: color .2s ease;
    white-space: nowrap;
}

.main-nav > a:not(.nav-login):hover { color: var(--text); }

.nav-sep {
    width: 1px;
    height: 20px;
    background: var(--line);
}

.theme-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s ease;
    flex-shrink: 0;
}

.theme-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.login-link {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    transition: color .2s ease;
}
.login-link:hover { color: var(--accent); }

.nav-login {
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    transition: .2s ease;
    white-space: nowrap;
}

.nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25);
}

/* Menu mobile button */
.menu-button {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    flex-shrink: 0;
}

.menu-button span {
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .25s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   NAV USER
   ══════════════════════════════════════════════════════════════ */
.nav-user {
    position: relative;
    display: inline-flex;
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 999px;
    font: 700 13px var(--sans);
    cursor: pointer;
    transition: border-color .2s ease;
}

.nav-user-chip:hover { border-color: var(--line-strong); }

.nav-user-chip > svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    opacity: .6;
    transition: transform .25s ease;
    flex-shrink: 0;
}

.nav-user.is-open .nav-user-chip > svg { transform: rotate(180deg); }

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font: 800 12px var(--sans);
    overflow: hidden;
    flex-shrink: 0;
}

.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-user-avatar.lg {
    width: 44px;
    height: 44px;
    font-size: 17px;
    border: 2px solid var(--line-strong);
}

.nav-user-name {
    font-weight: 800;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
    z-index: 120;
}

.nav-user.is-open .nav-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.nav-user-head > div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
    flex: 1;
}

.nav-user-head strong {
    font-size: 13.5px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-head small {
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.nav-user-balance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: 700 11.5px var(--mono);
    color: var(--accent);
    padding: 3px 9px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 999px;
    width: fit-content;
}

.nav-user-balance svg { width: 11px; height: 11px; stroke: currentColor; }

.nav-user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s ease;
}

.nav-user-menu a:hover { background: var(--surface-2); }

.nav-user-menu a svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    opacity: .85;
    flex-shrink: 0;
}

.nav-user-menu a.danger { color: var(--danger); }
.nav-user-menu a.danger:hover { background: var(--danger-bg); }

.nav-user-menu a.admin-link { color: var(--warning); }
.nav-user-menu a.admin-link:hover { background: var(--warning-bg); }

.nav-user-sep {
    height: 1px;
    background: var(--line);
    margin: 6px 4px;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL PROGRESS
   ══════════════════════════════════════════════════════════════ */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--muted));
    z-index: 999;
    transition: width .1s linear;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   SCENE
   ══════════════════════════════════════════════════════════════ */
.scene {
    position: relative;
    overflow: hidden;
}

.cyber-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .7;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: var(--size, 4px);
    height: var(--size, 4px);
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: particle-rise var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes particle-rise {
    0%   { opacity: 0; transform: translateY(0) scale(.3); }
    15%  { opacity: .5; }
    50%  { opacity: .3; }
    100% { opacity: 0; transform: translateY(-100vh) scale(0); }
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero-block {
    position: relative;
    z-index: 2;
    padding: 90px 0 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 48px;
}

.hero-copy { min-width: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 700 11px var(--mono);
    letter-spacing: .1em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 22px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
    animation: live-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.8); }
}

.cyber-3d-diamond {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 4px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-diamond 4s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

.diamond-face {
    position: absolute;
    inset: 0;
    border: 1.5px solid currentColor;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border-radius: 2px;
}

.diamond-face.f1 { transform: rotateY(0deg) rotateX(45deg); }
.diamond-face.f2 { transform: rotateY(90deg) rotateX(45deg); }
.diamond-face.f3 { transform: rotateY(180deg) rotateX(45deg); }
.diamond-face.f4 { transform: rotateY(270deg) rotateX(45deg); }

@keyframes rotate-diamond {
    0%   { transform: rotateY(0deg) rotateX(25deg); }
    100% { transform: rotateY(360deg) rotateX(25deg); }
}

.hero-title {
    font-size: clamp(34px, 5.4vw, 62px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent), var(--muted), var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 6s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-actions .button {
    padding: 14px 24px;
    font-size: 13px;
}

.hero-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 12.5px;
    color: var(--muted);
    align-items: center;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.hero-trust-item .chk {
    color: var(--text);
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 10px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CODE CUBE
   ══════════════════════════════════════════════════════════════ */
.solar-hero-panel {
    position: relative;
    z-index: 3;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 52% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
        linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    overflow: hidden;
}

.solar-hero-label {
    position: absolute;
    top: 20px;
    left: 22px;
    display: grid;
    gap: 4px;
    z-index: 2;
}

.solar-hero-label span {
    font: 700 10px var(--mono);
    letter-spacing: .14em;
    color: var(--accent);
    text-transform: uppercase;
}

.solar-hero-label strong {
    font: 700 12.5px var(--sans);
    color: var(--muted);
}

.code-cube-scene {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: 1;
    max-height: 480px;
    perspective: 1200px;
    transform-style: preserve-3d;
    margin: 20px 0 10px;
}

.code-cube-scene::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
    filter: blur(20px);
    z-index: -2;
}

.cube-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86%;
    height: 42%;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    animation: cube-orbit-spin 18s linear infinite;
}

.cube-orbit-b {
    width: 62%;
    height: 88%;
    transform: translate(-50%, -50%) rotate(65deg);
    animation-duration: 24s;
    animation-direction: reverse;
}

@keyframes cube-orbit-spin {
    to { transform: translate(-50%, -50%) rotate(340deg); }
}

.code-cube {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    height: 210px;
    transform: translate(-50%, -50%) rotateX(-17deg) rotateY(-38deg);
    transform-style: preserve-3d;
    animation: code-cube-spin 22s linear infinite;
}

@keyframes code-cube-spin {
    0%   { transform: translate(-50%, -50%) rotateX(-17deg) rotateY(-38deg) translateY(0); }
    25%  { transform: translate(-50%, -50%) rotateX(-10deg) rotateY(52deg) translateY(-10px); }
    50%  { transform: translate(-50%, -50%) rotateX(-17deg) rotateY(142deg) translateY(0); }
    75%  { transform: translate(-50%, -50%) rotateX(-23deg) rotateY(232deg) translateY(-10px); }
    100% { transform: translate(-50%, -50%) rotateX(-17deg) rotateY(322deg) translateY(0); }
}

.cube-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent);
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--accent) 18%, transparent),
        color-mix(in srgb, var(--accent) 4%, transparent));
    border-radius: 4px;
    backface-visibility: visible;
}

.cube-face::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 2px;
    pointer-events: none;
}

.cube-front  { transform: translateZ(105px); }
.cube-back   { transform: rotateY(180deg) translateZ(105px); }
.cube-right  { transform: rotateY(90deg) translateZ(105px); }
.cube-left   { transform: rotateY(-90deg) translateZ(105px); }
.cube-top    { transform: rotateX(90deg) translateZ(105px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(105px); }

.cube-front img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .95;
}

[data-theme="light"] .cube-front img { filter: none; }

.cube-face strong {
    font-size: 15px;
    letter-spacing: .04em;
    font-weight: 800;
    text-align: center;
}

.cube-face span {
    font: 800 30px var(--mono);
    color: var(--accent);
    text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
}

.cube-face small {
    font: 9px var(--mono);
    letter-spacing: .14em;
    color: color-mix(in srgb, var(--accent) 70%, transparent);
    text-transform: uppercase;
}

.cube-dust {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.dust-a { left: 25%; top: 39%; }
.dust-b { right: 28%; top: 31%; width: 2px; height: 2px; }
.dust-c { left: 33%; bottom: 24%; width: 2px; height: 2px; }

.cube-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    animation: cube-card-float 6s ease-in-out infinite;
    z-index: 2;
}

.cube-card b {
    font: 700 22px var(--mono);
    color: var(--accent);
}

.cube-card span { display: grid; gap: 2px; }
.cube-card strong { font-size: 12.5px; }
.cube-card small { font-size: 10px; color: var(--muted); }

.cube-card-api     { left: 3%;  top: 16%;  animation-delay: 0s; }
.cube-card-plugins { right: 3%; top: 24%;  animation-delay: -2s; }
.cube-card-secure  { right: 8%; bottom: 12%; animation-delay: -4s; }

@keyframes cube-card-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.cube-status {
    position: absolute;
    left: 22px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--muted);
    font-size: 10.5px;
    text-decoration: none;
    z-index: 3;
    transition: .2s ease;
}

.cube-status:hover {
    color: var(--text);
    border-color: var(--accent);
}

.cube-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: live-pulse 1.6s ease-in-out infinite;
}

.solar-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding: 5px 0;
    text-decoration: none;
    margin-top: 16px;
    transition: .2s ease;
}

.solar-showcase-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.solar-showcase-link svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

/* ══════════════════════════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════════════════════════ */
.ticker-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--accent);
    color: var(--accent-ink);
    overflow: hidden;
    transform: rotate(-1.1deg);
    margin: 38px 0;
    position: relative;
    z-index: 2;
    display: flex;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 13px 22px;
    animation: ticker-scroll 24s linear infinite;
    min-width: 100%;
}

.ticker-band:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    font: 700 11.5px var(--mono);
    letter-spacing: .04em;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-item b {
    background: color-mix(in srgb, var(--accent-ink) 18%, transparent);
    padding: 3px 7px;
    border-radius: 20px;
    font-size: 9px;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════════════════════════
   STAT RAIL
   ══════════════════════════════════════════════════════════════ */
.stat-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 60px;
    position: relative;
}

.stat {
    background: var(--surface);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background .3s ease;
}

.stat:hover { background: var(--surface-2); }

.stat strong {
    font-size: 30px;
    letter-spacing: -.03em;
    font-weight: 800;
    color: var(--text);
}

.stat span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .02em;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: 700 9.5px var(--mono);
    color: var(--success);
    background: var(--success-bg);
    padding: 3px 8px;
    border-radius: 999px;
    width: fit-content;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   RANDOM TEMPLATES
   ══════════════════════════════════════════════════════════════ */
.services-rail {
    padding: 20px 0 70px;
}

.rail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.section-kicker {
    font: 700 10.5px var(--mono);
    letter-spacing: .16em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rail-heading h2,
.timeline-section h2,
.why-us-section h2,
.testimonials-section h2,
.faq-section h2 {
    font-size: clamp(26px, 3.6vw, 42px);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--text);
    font-weight: 800;
}

.rail-heading h2 strong,
.why-us-section h2 strong,
.testimonials-section h2 strong {
    color: var(--accent);
}

.rail-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.rail-arrows button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s ease;
}

.rail-arrows button:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-2px);
}

.rail-arrows svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.rail-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.rail-scroll::-webkit-scrollbar { display: none; }

.random-card {
    scroll-snap-align: start;
    flex: 0 0 min(340px, 82vw);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: .35s cubic-bezier(.2,.8,.3,1);
    text-decoration: none;
    color: var(--text);
}

.random-card:hover {
    transform: translateY(-8px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .18);
}

.random-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
}

.random-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .6s cubic-bezier(.2,.8,.3,1);
    display: block;
}

.random-card:hover .random-thumb img { transform: scale(1.06); }

.random-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 92%, transparent);
    color: var(--accent-ink);
    font: 800 10px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.random-badge svg { width: 11px; height: 11px; stroke: currentColor; }

.random-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .78) 100%);
    display: grid;
    place-items: end center;
    padding-bottom: 16px;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 2;
}

.random-card:hover .random-overlay {
    opacity: 1;
    visibility: visible;
}

.random-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 999px;
    font: 700 12px var(--sans);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    transform: translateY(8px);
    transition: transform .3s cubic-bezier(.2,.8,.3,1);
    white-space: nowrap;
}

.random-card:hover .random-cta { transform: translateY(0); }

.random-cta svg { width: 14px; height: 14px; stroke: currentColor; }

.random-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.random-body strong {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    min-height: 38px;
}

.random-body p {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

.random-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 10.5px var(--mono);
    color: var(--muted-2);
    letter-spacing: .04em;
    margin-top: auto;
    padding-top: 4px;
}

.random-meta svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    opacity: .7;
}

.rail-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 20px;
}

.rail-empty svg {
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    opacity: .35;
    stroke: currentColor;
    display: block;
}

.rail-empty p {
    margin: 0 0 20px;
    font-size: 13.5px;
}

/* ══════════════════════════════════════════════════════════════
   WHY US
   ══════════════════════════════════════════════════════════════ */
.why-us-section { padding: 30px 0 70px; }

.feature-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.feature-card {
    background: linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px 24px;
    transition: .35s cubic-bezier(.2,.8,.3,1);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--line-strong);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--text);
    margin-bottom: 22px;
    transition: .35s ease;
}

.feature-icon-wrap svg { width: 24px; height: 24px; stroke: currentColor; }

.feature-card:hover .feature-icon-wrap {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    transform: scale(1.12) rotate(-6deg);
}

.feature-card h3 {
    font-size: 17px;
    letter-spacing: -.02em;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0 0 18px;
    flex: 1;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.feature-tag {
    font: 700 9px var(--mono);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════════ */
.timeline-section { padding: 20px 0 80px; }

.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 40px;
}

.timeline-line {
    position: absolute;
    left: 14px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
    border-radius: 2px;
}

.timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: height .1s linear;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 0;
}

.timeline-item > b {
    position: absolute;
    left: -40px;
    top: 22px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    font: 800 11px var(--mono);
    z-index: 1;
}

.timeline-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.timeline-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    max-width: 520px;
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
.testimonials-section { padding: 20px 0 70px; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.testimonial-card {
    background: linear-gradient(160deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: .3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
}

.testi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testi-stars {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
}

.testi-badge {
    font: 700 9.5px var(--mono);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.testi-quote {
    font-size: 13.5px;
    line-height: 1.75;
    font-style: italic;
    margin: 0;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font: 800 15px var(--sans);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.testi-meta strong { display: block; font-size: 13.5px; }
.testi-meta span { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════ */
.faq-section { padding: 30px 0 90px; }

.faq-list {
    max-width: 840px;
    margin: 38px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
    transition: .25s ease;
}

.faq-item.is-open {
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.faq-btn {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: 0;
    color: var(--text);
    font: 700 15px var(--sans);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: color .2s ease;
}

.faq-btn:hover { color: var(--accent); }

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: .3s ease;
    flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 24px;
}

.faq-item.is-open .faq-body {
    max-height: 400px;
    padding: 0 24px 22px;
}

.faq-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════════ */
.cta-block {
    position: relative;
    border-top: 1px solid var(--line);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, var(--surface));
}

.cta-marquee {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cta-marquee span {
    display: inline-block;
    font-size: 100px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
    animation: cta-scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes cta-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-inner .service-icon { margin: 0 auto 18px; }

.cta-inner h2 {
    font-size: clamp(26px, 3.6vw, 40px);
    margin: 12px 0 16px;
}

.cta-inner h2 strong { color: var(--accent); }

.cta-inner p {
    color: var(--muted);
    font-size: 13.5px;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.cta-inner .hero-actions { justify-content: center; }

.service-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--text);
    display: grid;
    place-items: center;
    transition: .3s ease;
}

.service-icon svg { width: 22px; height: 22px; stroke: currentColor; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px max(3vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 11.5px;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-wrap .brand-mark { width: 28px; height: 28px; }
.footer-brand-wrap .brand-word { font-size: 13px; }

.footer-tagline {
    opacity: .6;
    font-size: 11px;
}

.footer-links-wrap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11.5px;
}

.footer-links-wrap a {
    color: var(--muted);
    transition: color .2s ease;
}

.footer-links-wrap a:hover { color: var(--text); }

.site-footer .mono {
    font-family: var(--mono);
    font-size: 11px;
    opacity: .7;
    letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Card width
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1600px) and (max-width: 1919px) {
    .random-card { flex: 0 0 400px; }
}

@media (min-width: 1920px) {
    .page-wrap { width: min(1440px, calc(100% - 80px)); }
    .site-header { max-width: 1440px; }
    .random-card { flex: 0 0 480px; }
    .hero-title { font-size: 76px; }
    .hero-block { padding: 120px 0 70px; }
    .rail-heading h2,
    .timeline-section h2,
    .why-us-section h2,
    .testimonials-section h2 { font-size: 52px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .solar-hero-panel { min-height: 500px; }
    .feature-bento { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {
    .menu-button { display: flex; }

    .main-nav {
        position: fixed;
        top: 84px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border: 1px solid var(--line-strong);
        border-radius: 20px;
        padding: 14px 18px 18px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
        z-index: 99;
        box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav > a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        color: var(--text);
        font-size: 14px;
    }

    .main-nav .theme-button {
        margin: 12px 0;
        width: 100%;
        height: 44px;
        border-radius: 10px;
    }

    .main-nav .nav-sep { display: none; }

    .main-nav .nav-login {
        margin-top: 12px;
        text-align: center;
        padding: 14px;
        justify-content: center;
    }

    .main-nav .login-link {
        text-align: center;
        padding: 14px;
    }

    .nav-user {
        width: 100%;
        margin-top: 12px;
    }

    .nav-user-chip {
        width: 100%;
        justify-content: center;
        padding: 12px 14px;
        gap: 12px;
    }

    .nav-user-name { max-width: none; font-size: 14px; }
    .nav-user-avatar { width: 32px; height: 32px; }

    .nav-user-menu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 8px;
        display: none;
        background: var(--surface-2);
        border-color: var(--line);
    }

    .nav-user.is-open .nav-user-menu { display: block; }

    .stat-rail {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 40px;
    }

    .rail-heading h2,
    .timeline-section h2,
    .why-us-section h2,
    .testimonials-section h2 { font-size: 30px; }

    .cta-marquee span { font-size: 60px; }
    .feature-bento { grid-template-columns: 1fr; }
    .topbar-wrap { padding: 12px 16px 0; }
    .site-header { padding: 0 8px 0 16px; height: 58px; }
    .hero-block { padding: 50px 0 30px; }

    .random-card { flex: 0 0 82vw; }
    .random-body { padding: 12px 14px 14px; }
    .random-body strong { font-size: 14px; min-height: 36px; }
    .random-body p { font-size: 12px; min-height: 34px; }
}

@media (max-width: 560px) {
    .page-wrap { width: calc(100% - 28px); }
    .hero-title { font-size: 30px; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
    }

    .stat-rail { grid-template-columns: 1fr 1fr; }
    .stat { padding: 18px 14px; }
    .stat strong { font-size: 22px; }

    .timeline { padding-left: 34px; }
    .timeline-item > b {
        left: -34px;
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .cta-marquee span { font-size: 40px; }
    .cta-block { padding: 60px 0; }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand-wrap { justify-content: center; }
    .footer-links-wrap { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .ticker-track,
    .cta-marquee span,
    .code-cube,
    .cube-card,
    .hero-particle,
    .diamond-face,
    .cyber-3d-diamond,
    .hero-title span {
        animation: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   FOCUS — Không blue outline
   ══════════════════════════════════════════════════════════════ */
.landing-body a:focus,
.landing-body button:focus {
    outline: none !important;
    box-shadow: none;
}

.landing-body a:focus-visible,
.landing-body button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}
/* ★ FORCE nav-user dropdown hoạt động */
.nav-user {
    position: relative !important;
    z-index: 999 !important;
}

.nav-user-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    z-index: 9999 !important;
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
}

.nav-user.is-open .nav-user-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}