/**
 * DVDVPN download page styles
 * Depends on :root variables and shared components from index.css (header / footer / section-cta / btn-*)
 */

/* ============================================================
   1. HERO — full-width dark, dot-grid background + blue glow
   ============================================================ */
.dl-hero {
    background: #0a0a0a;
    padding: 160px 40px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dl-hero::before {
    content: '';
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 700px;
    background: radial-gradient(ellipse, rgba(66, 133, 244, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.dl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    pointer-events: none;
}

.dlh-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

/* Version badge */
.dlh-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.65);
    padding: 7px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    margin-bottom: 36px;
}

.dlh-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
}

.dl-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 600;
    letter-spacing: -2.5px;
    line-height: 1.04;
    color: #fff;
    margin-bottom: 24px;
}

.dl-hero > .dlh-inner > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 52px;
}

/* Platform nav capsule */
.dlh-os-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dlh-os-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dlh-os-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.dlh-os-btn svg {
    width: 15px; height: 15px;
    flex-shrink: 0;
    opacity: 0.75;
}

/* ============================================================
   2. Main download section
   ============================================================ */
.dl-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 40px;
}

.dls-header {
    margin-bottom: 64px;
}

.dls-header h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: #111;
}

.dls-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.65;
}

/* --- Windows — wide horizontal card --- */
.dl-win-card {
    background: #f5f7ff;
    border: 1px solid rgba(66, 133, 244, 0.14);
    border-radius: 32px;
    padding: 60px 68px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.dl-win-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -8%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.08) 0%, transparent 68%);
    pointer-events: none;
}

/* Common card text elements */
.dlc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 14px;
    font-family: ui-monospace, 'Cascadia Code', monospace;
}

.dlc-platform-name {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #111;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dlc-platform-name svg {
    width: 36px; height: 36px;
    color: #4285F4;
    flex-shrink: 0;
}

.dlc-compat {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 22px;
}

.dlc-version-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dlc-ver-badge {
    background: rgba(66, 133, 244, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: ui-monospace, 'Cascadia Code', monospace;
}

.dlc-date {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: ui-monospace, 'Cascadia Code', monospace;
}

/* Architecture switcher */
.dl-arch-switcher {
    display: inline-flex;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 5px;
    gap: 3px;
    margin-bottom: 28px;
}

.dl-arch-tab {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-secondary);
    transition: all 0.22s;
    font-family: var(--font-body);
    line-height: 1.2;
}

.dl-arch-tab.active {
    background: #111;
    color: #fff;
}

.dl-arch-tab span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.6;
    margin-top: 2px;
}

.dl-arch-panel { display: none; }
.dl-arch-panel.active { display: block; }

/* Button group */
.dl-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-btn-primary {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #111;
    color: #fff;
    padding: 16px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, transform 0.22s var(--ease-smooth);
}

.dl-btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}

.dl-btn-primary > svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.dl-btn-primary-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.dl-btn-primary-info span:first-child { font-size: 15px; font-weight: 600; }
.dl-btn-primary-info span:last-child { font-size: 11px; opacity: 0.5; font-weight: 400; }

.dl-btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: background 0.2s, color 0.2s;
}

.dl-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111;
}

.dl-btn-secondary svg {
    width: 16px; height: 16px;
    opacity: 0.5;
}

.dl-btn-sm {
    padding: 12px 18px;
    border-radius: 11px;
    font-size: 14px;
}

.dl-btn-sm .dl-btn-primary-info span:first-child { font-size: 14px; }

/* Disabled / coming-soon button */
.dl-btn-disabled {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f7f7;
    color: #bbb;
    padding: 12px 18px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    border: 1px dashed #e0e0e0;
}

.dl-btn-disabled > svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: 0.3;
}

.dl-coming-soon-tag {
    background: #fff3cd;
    color: #92681d;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-left: auto;
    white-space: nowrap;
}

/* --- macOS — Universal Binary single horizontal card --- */
.dl-mac-single {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 32px;
    padding: 60px 68px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.dl-mac-single::before {
    content: '';
    position: absolute;
    top: -50%; right: -8%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 68%);
    pointer-events: none;
}

.dl-mac-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 14px;
    line-height: 1.55;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

/* --- Linux + Android — asymmetric layout --- */
.dl-row-la {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dl-linux-card {
    background: #fffcf0;
    border: 1px solid rgba(202, 138, 4, 0.16);
    border-radius: 28px;
    padding: 48px 52px;
}

.dl-android-card {
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 28px;
    padding: 48px 44px;
}

/* Linux — horizontal format row list */
.dl-linux-formats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.dl-linux-fmt-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: 13px 16px;
}

.dl-fmt-badge {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #78350f;
    background: #fef9c3;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.dl-fmt-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    flex: 1;
    line-height: 1.45;
}

.dl-fmt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.18s var(--ease-smooth);
}

.dl-fmt-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.dl-fmt-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Android installation notes */
.dl-android-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 14px;
    line-height: 1.55;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

/* --- iOS — dark strip --- */
.dl-ios-strip {
    background: linear-gradient(135deg, #0d0d0d 0%, #111827 60%, #0a1628 100%);
    border-radius: 28px;
    padding: 44px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dl-ios-strip::before {
    content: '';
    position: absolute;
    top: -50%; right: -5%;
    width: 400px; height: 300%;
    background: radial-gradient(ellipse, rgba(66, 133, 244, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.dl-ios-left {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.dl-ios-icon {
    width: 64px; height: 64px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-ios-icon svg {
    width: 30px; height: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.dl-ios-text h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #fff;
}

.dl-ios-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 380px;
    line-height: 1.6;
}

.dl-ios-right {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dl-btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.dl-btn-appstore:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
}

.dl-appstore-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================================
   3. Installation guide — dark two-column editorial style
   ============================================================ */
.dl-install {
    background: #0b0b0b;
    padding: 100px 40px;
    color: #fff;
}

.dl-install-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 80px;
    align-items: start;
}

.dl-install-left h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.18;
    margin-bottom: 20px;
    color: #fff;
}

.dl-install-left > p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.75;
}

.dl-install-steps {
    display: flex;
    flex-direction: column;
}

.dl-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 22px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    align-items: start;
}

.dl-step:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dl-step-num {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dl-step-body { padding-top: 4px; }

.dl-step-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.dl-step-body p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.75;
    margin-bottom: 10px;
}

.dl-step-body p:last-child { margin-bottom: 0; }

.dl-step-body code {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.75);
}

.dl-step-body a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.dl-step-body a:hover { text-decoration: underline; }

/* ============================================================
   4. System requirements — light card table
   ============================================================ */
.dl-sysreq {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 40px;
}

.dl-sysreq-inner {
    background: var(--surface-gray);
    border-radius: 24px;
    padding: 48px 56px;
}

.dl-sysreq-inner h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 32px;
}

.dl-req-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.dl-req-item {
    padding: 0 28px 0 0;
    border-right: 1px solid var(--border-light);
}

.dl-req-item:first-child { padding-left: 0; }
.dl-req-item:last-child { border-right: none; padding-right: 0; }

.dl-req-item + .dl-req-item { padding-left: 28px; }

.dl-req-os {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-family: ui-monospace, monospace;
}

.dl-req-spec {
    font-size: 14px;
    color: #111;
    font-weight: 500;
    line-height: 1.6;
}

/* ============================================================
   5. Download FAQ — serif left column + accordion right column
   ============================================================ */
.dl-faq-wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.dl-faq-left h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.dl-faq-left p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.dl-faq-left a {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
}

.dl-faq-left a:hover { text-decoration: underline; }

.dl-faq-items {
    display: flex;
    flex-direction: column;
}

.dl-faq-item {
    border-bottom: 1px solid var(--border-light);
}

.dl-faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.dl-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    gap: 16px;
    line-height: 1.4;
}

.dl-faq-q svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 0.3s var(--ease-smooth);
}

.dl-faq-q[aria-expanded="true"] svg {
    transform: rotate(180deg);
    opacity: 0.65;
}

.dl-faq-a {
    display: none;
    padding-bottom: 22px;
}

.dl-faq-a p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================================
   6. Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .dl-win-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 44px 40px;
    }

    .dl-mac-single {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 44px 40px;
    }

    .dl-row-la { grid-template-columns: 1fr; }

    .dl-ios-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 40px 40px;
    }

    .dl-install-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dl-faq-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dl-req-grid { grid-template-columns: repeat(3, 1fr); }

    .dl-req-item:nth-child(3) { border-right: none; }
    .dl-req-item:nth-child(4) { border-right: 1px solid var(--border-light); padding-left: 0; }
}

@media (max-width: 768px) {
    .dl-hero { padding: 140px 24px 80px; }

    .dl-section { padding: 64px 24px; }

    .dl-win-card { padding: 36px 28px; }
    .dl-mac-single { padding: 36px 28px; }
    .dl-linux-card { padding: 36px 28px; }
    .dl-android-card { padding: 36px 28px; }
    .dl-ios-strip { padding: 32px 28px; border-radius: 22px; }

    .dl-install { padding: 72px 24px; }
    .dl-sysreq { padding: 60px 24px; }
    .dl-sysreq-inner { padding: 36px 28px; }

    .dl-faq-wrap { padding: 0 24px 72px; }

}

@media (min-width: 601px) and (max-width: 768px) {
    .dl-req-grid { grid-template-columns: 1fr 1fr; }
    .dl-req-item:nth-child(2) { border-right: none; }
    .dl-req-item:nth-child(3) { border-right: 1px solid var(--border-light); padding-left: 0; }
    .dl-req-item:nth-child(4) { border-right: none; }
    .dl-req-item:nth-child(5) { padding-left: 0; }
}

@media (max-width: 600px) {
    .dlh-os-nav { gap: 8px; }
    .dl-fmt-desc { display: none; }
    .dl-sysreq-inner { padding: 28px 22px; }

    .dl-req-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .dl-req-item {
        padding: 16px 0;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .dl-req-item + .dl-req-item { padding-left: 0; }
    .dl-req-item:last-child { border-bottom: none; padding-bottom: 0; }
}
