/* hiddify.fun — light theme, inspired by hiddify.com */
:root {
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --bg-card: #ffffff;
    --border: #e6e8eb;
    --border-strong: #d6d9de;
    --text: #0d1117;
    --text-soft: #4a525c;
    --text-mute: #6e7681;
    --accent: #ff9500;
    --accent-hover: #e08400;
    --accent-soft: #fff5e6;
    --green: #1f883d;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.04);
    --shadow-md: 0 4px 16px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
    --radius: 12px;
    --radius-sm: 8px;
    --fs-base: 16px;
    --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 28px; width: auto; }
.logo-text { font-weight: 700; font-size: 18px; color: var(--text); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--text-soft); font-weight: 500; font-size: 15px; text-decoration: none; transition: color .15s; }
nav a:hover { color: var(--accent); text-decoration: none; }
.gh-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.gh-badge:hover { background: var(--border); text-decoration: none; color: var(--text); }
.gh-badge svg { width: 16px; height: 16px; fill: currentColor; }
.nav-cta {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }

/* Subscription banner under hero */
.sub-banner {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff7a00 100%);
    border-radius: var(--radius);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(255,149,0,.25);
}
.sub-banner-text h3 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.sub-banner-text p { font-size: 15px; margin: 0; opacity: .9; }
.sub-banner .btn-white {
    background: #fff;
    color: var(--accent);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}
.sub-banner .btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.15); text-decoration: none; color: var(--accent); }

/* Inline CTA in step 2 */
.step .step-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.step .step-cta:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

/* Final CTA section */
.cta-final {
    background: linear-gradient(135deg, var(--accent) 0%, #ff7a00 100%);
    color: #fff;
    padding: 72px 24px;
    text-align: center;
}
.cta-final h2 { font-size: 36px; font-weight: 800; color: #fff; margin: 0 0 16px; letter-spacing: -0.02em; }
.cta-final p { font-size: 18px; opacity: .9; margin: 0 0 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-final .btn-white {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: var(--accent);
    border-radius: 10px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.cta-final .btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; color: var(--accent); }
.cta-final .cta-note { font-size: 13px; opacity: .8; margin-top: 16px; }

@media (max-width: 700px) {
    .sub-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
    .sub-banner .btn-white { width: 100%; text-align: center; }
    .cta-final h2 { font-size: 26px; }
    .cta-final p { font-size: 15px; }
}

.burger { display: none; }
.mob-menu { display: none; }

/* ===== Hero ===== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--text);
    max-width: 900px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
    font-size: 20px;
    color: var(--text-soft);
    line-height: 1.5;
    margin: 0 0 40px;
    max-width: 720px;
}

/* Product cards (как у hiddify.com) */
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.product-card .pc-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
}
.product-card .pc-logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.product-card .pc-logo svg { width: 28px; height: 28px; color: var(--accent); }
.product-card .pc-title { font-size: 22px; font-weight: 700; margin: 0; color: var(--text); }
.product-card .pc-sub { font-size: 13px; color: var(--text-mute); margin: 4px 0 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.product-card p { color: var(--text-soft); font-size: 15px; line-height: 1.55; margin: 0 0 20px; min-height: 66px; }
.product-card .pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-card .pc-actions .btn { flex: 1; min-width: 130px; text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    cursor: pointer;
    line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--border-strong); text-decoration: none; color: var(--text); }

/* ===== Metrics ===== */
.metrics {
    padding: 56px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.metric {
    text-align: center;
    padding: 12px;
}
.metric .val {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.metric .lbl {
    font-size: 13px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

/* ===== Sections ===== */
section.section { padding: 80px 0; }
section.section.alt { background: var(--bg-alt); }
section.section h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--text);
}
section.section .sub {
    font-size: 18px;
    color: var(--text-soft);
    margin: 0 0 48px;
    max-width: 720px;
}

/* Features 3-col */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feat {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}
.feat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feat .ic {
    width: 36px; height: 36px;
    color: var(--accent);
    margin-bottom: 18px;
    display: block;
}
.feat h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.feat p { font-size: 15px; color: var(--text-soft); line-height: 1.55; margin: 0; }

/* Platforms grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.plat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    text-align: center;
    transition: border-color .15s;
}
.plat:hover { border-color: var(--accent); }
.plat-icon { font-size: 28px; margin-bottom: 8px; }
.plat-name { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.plat-meta { font-size: 12px; color: var(--text-mute); }
.plat-link {
    display: inline-block; margin-top: 12px;
    font-size: 13px; font-weight: 600;
    color: var(--accent);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step .step-num {
    position: absolute; top: -16px; left: 24px;
    width: 32px; height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 18px; font-weight: 700; margin: 8px 0 10px; color: var(--text); }
.step p { font-size: 15px; color: var(--text-soft); line-height: 1.55; margin: 0; }

/* Protocol tags */
.proto-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.proto-tags span {
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
details[open] { border-color: var(--accent); }
summary {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-size: 22px;
    color: var(--text-mute);
    transition: transform .15s;
}
details[open] summary::after { content: '−'; color: var(--accent); }
.faq-a {
    padding: 0 22px 20px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    color: var(--text-soft);
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: var(--text-soft); }
.footer-grid ul a:hover { color: var(--accent); }
.footer-about p { margin: 12px 0; line-height: 1.6; max-width: 360px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--text-soft);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-mute);
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero h1 { font-size: 40px; }
    .hero .lead { font-size: 17px; }
    .hero { padding: 60px 0 40px; }
    section.section { padding: 56px 0; }
    section.section h2 { font-size: 30px; }
    .product-row { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .feat-grid { grid-template-columns: 1fr; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    nav a:not(.gh-badge) { display: none; }
    .burger { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: none; border: none; cursor: pointer; }
    .burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
    .mob-menu { display: none; padding: 16px 24px; background: var(--bg); border-bottom: 1px solid var(--border); }
    .mob-menu.open { display: flex; flex-direction: column; gap: 14px; }
    .mob-menu a { color: var(--text-soft); font-weight: 500; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .metric .val { font-size: 28px; }
    .product-card { padding: 22px; }
}
