/* features.css - Advanced Features page dedicated styles */

/* ===== Page Hero ===== */
.feat-hero {
    background: var(--gradient-main);
    padding: 80px 0 70px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feat-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.feat-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.feat-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.feat-hero-gradient {
    background: linear-gradient(90deg, #ffd6ec, #b39ddb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feat-hero p {
    font-size: 17px;
    opacity: 0.88;
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.feat-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.feat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
}

.feat-pill:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    color: white;
    transform: translateY(-2px);
}

/* ===== Feature Overview Grid ===== */
.feat-overview {
    padding: 64px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--divider);
}

.feat-overview-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.feat-ov-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--divider);
    transition: all 0.3s ease;
}

.feat-ov-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feat-ov-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin: 0 auto 14px;
}

.feat-ov-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.feat-ov-card p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== Common Section Layout ===== */
.feat-section {
    padding: 96px 0;
    background: var(--bg-white);
}

.feat-section-alt {
    background: var(--bg-light);
}

.feat-section-dark {
    background: #06020e;
}

.feat-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Prevent grid children (especially pre/code) from overflowing column bounds */
.feat-section-inner > * {
    min-width: 0;
}

.feat-section-reverse {
    direction: rtl;
}

.feat-section-reverse > * {
    direction: ltr;
}

.feat-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.feat-section-header h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(217,77,136,0.1), rgba(64,51,99,0.07));
    color: var(--brand-pink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.feat-badge-light {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.9);
}

.feat-section-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.feat-lead {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 32px;
}

.feat-lead strong {
    color: var(--text-dark);
    font-weight: 600;
}

.feat-lead-center {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 40px;
}

/* ===== Check List ===== */
.feat-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.feat-check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feat-check-list li > i {
    color: var(--brand-pink);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.feat-check-list h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feat-check-list p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.feat-check-list-light li > i {
    color: #f09bc5;
}

/* ===== Code Snippet ===== */
.feat-code-snippet {
    background: #0f0a1e;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.fcs-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fcs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.fcs-red    { background: #ff5f57; }
.fcs-yellow { background: #ffbd2e; }
.fcs-green  { background: #28c840; }

.fcs-filename {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-left: 6px;
    font-family: 'Courier New', monospace;
}

.fcs-body {
    padding: 20px 22px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    overflow-x: auto;
    margin: 0;
    white-space: pre;
}

.fcs-key    { color: #f09bc5; }
.fcs-bool   { color: #7ec8e3; }
.fcs-str    { color: #a8ff78; }
.fcs-comment { color: rgba(255,255,255,0.3); font-style: italic; }

/* ===== TUN Diagram ===== */
.feat-diagram {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid var(--divider);
}

.feat-section-alt .feat-diagram {
    background: var(--bg-white);
}

.tun-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.diag-label-top {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diag-flow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.diag-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-gray);
    min-width: 64px;
}

.feat-section-alt .diag-app {
    background: var(--bg-light);
}

.diag-app i {
    font-size: 18px;
    color: var(--brand-purple);
}

.diag-arrow-down {
    color: var(--text-gray);
    opacity: 0.5;
    font-size: 14px;
}

.diag-tun-box {
    background: var(--gradient-main);
    color: white;
    border-radius: 14px;
    padding: 14px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(217,77,136,0.25);
    width: 100%;
    max-width: 240px;
}

.diag-tun-box i { font-size: 22px; margin-bottom: 2px; }
.diag-tun-box small { font-size: 11px; font-weight: 400; opacity: 0.8; }

.diag-clash-core {
    background: var(--btn-dark);
    color: white;
    border-radius: 12px;
    padding: 11px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.diag-branches {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 240px;
}

.diag-branch {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.diag-branch-direct {
    background: rgba(0,184,148,0.12);
    color: #00b894;
    border: 1px solid rgba(0,184,148,0.25);
}

.diag-branch-proxy {
    background: rgba(217,77,136,0.12);
    color: var(--brand-pink);
    border: 1px solid rgba(217,77,136,0.25);
}

/* ===== Rule Diagram ===== */
.rule-diagram {
    padding: 24px;
}

.rd-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rd-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rd-step-incoming {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.feat-section-alt .rd-step-incoming {
    background: var(--bg-light);
}

.rd-arrow {
    color: var(--text-gray);
    font-size: 12px;
    opacity: 0.5;
}

.rd-rule-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rd-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 12px;
    background: var(--bg-white);
    border: 1px solid var(--divider);
}

.feat-section-alt .rd-rule {
    background: var(--bg-light);
}

.rd-rule-fallback {
    border-color: rgba(217,77,136,0.3);
    background: rgba(217,77,136,0.05);
}

.rd-rule-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(64,51,99,0.08);
    color: var(--brand-purple);
    letter-spacing: 0.5px;
}

.rd-tag-match {
    background: rgba(217,77,136,0.15);
    color: var(--brand-pink);
}

.rd-direct { color: #00b894; }
.rd-proxy  { color: var(--brand-pink); }

.rd-outputs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

.rd-out {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.rd-out-direct {
    background: rgba(0,184,148,0.1);
    color: #00b894;
    border: 1px solid rgba(0,184,148,0.2);
}

.rd-out-proxy {
    background: rgba(217,77,136,0.1);
    color: var(--brand-pink);
    border: 1px solid rgba(217,77,136,0.2);
}

.rd-out-reject {
    background: rgba(231,76,60,0.08);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.15);
}

/* ===== Protocol Full Grid ===== */
.proto-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.proto-full-card {
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: 18px;
    padding: 24px 22px;
    transition: all 0.3s ease;
}

.proto-full-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(217,77,136,0.2);
}

.proto-highlight {
    border-color: rgba(217,77,136,0.18);
    background: linear-gradient(135deg, rgba(217,77,136,0.03), rgba(64,51,99,0.02));
}

.pfc-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.pfc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.pfc-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.pfc-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.pfc-tag-hot  { background: rgba(217,77,136,0.15); color: var(--brand-pink); }
.pfc-tag-new  { background: rgba(0,184,148,0.15);  color: #00b894; }
.pfc-tag-stable { background: rgba(64,51,99,0.1); color: var(--brand-purple); }

.proto-full-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.65;
    margin-bottom: 14px;
}

.pfc-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pfc-features span {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pfc-features span i {
    color: #00b894;
    font-size: 10px;
}

/* ===== DNS Diagram ===== */
.dns-diagram {
    padding: 24px;
    text-align: center;
}

.dns-diag-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.dns-query-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.feat-section-alt .dns-query-box {
    background: var(--bg-light);
}

.dns-arrow {
    color: var(--text-gray);
    opacity: 0.4;
    font-size: 14px;
    margin: 6px 0;
}

.dns-clash-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-main);
    color: white;
    border-radius: 12px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(217,77,136,0.2);
}

.dns-branches-wrap {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    width: 100%;
}

.dns-branch {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dns-branch-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-gray);
}

.dns-server-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.dns-server-box i { font-size: 18px; margin-bottom: 2px; }
.dns-server-box small { font-size: 10px; font-weight: 400; opacity: 0.7; }

.dns-server-cn {
    background: rgba(64,51,99,0.08);
    color: var(--brand-purple);
    border: 1px solid rgba(64,51,99,0.15);
}

.dns-server-global {
    background: rgba(217,77,136,0.08);
    color: var(--brand-pink);
    border: 1px solid rgba(217,77,136,0.2);
}

.dns-result {
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

.dns-result-direct {
    background: rgba(0,184,148,0.1);
    color: #00b894;
    border: 1px solid rgba(0,184,148,0.2);
}

.dns-result-proxy {
    background: rgba(217,77,136,0.1);
    color: var(--brand-pink);
    border: 1px solid rgba(217,77,136,0.2);
}

/* ===== DNS Mode Cards ===== */
.dns-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.dns-mode-card {
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    transition: all 0.3s;
}

.feat-section-alt .dns-mode-card {
    background: var(--bg-light);
}

.dns-mode-card.dns-mode-active {
    border-color: rgba(217,77,136,0.3);
    background: linear-gradient(135deg, rgba(217,77,136,0.04), rgba(64,51,99,0.03));
}

.dmc-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--brand-pink);
    color: white;
}

.dns-mode-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dns-mode-card h4 i { color: var(--brand-pink); }

.dns-mode-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.dmc-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dmc-points li {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dmc-points li i {
    color: #00b894;
    font-size: 10px;
}

/* ===== Proxy Groups Grid ===== */
.proxy-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pg-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 28px 26px;
    border: 1px solid var(--divider);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.pg-card-url-test::before  { background: linear-gradient(90deg, #00b894, #00cec9); }
.pg-card-fallback::before  { background: linear-gradient(90deg, #d94d88, #403363); }
.pg-card-load-balance::before { background: linear-gradient(90deg, #0984e3, #74b9ff); }
.pg-card-select::before    { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }

.pg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pg-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.pg-card-url-test .pg-card-icon   { background: rgba(0,184,148,0.12); color: #00b894; }
.pg-card-fallback .pg-card-icon   { background: rgba(217,77,136,0.12); color: var(--brand-pink); }
.pg-card-load-balance .pg-card-icon { background: rgba(9,132,227,0.1); color: #0984e3; }
.pg-card-select .pg-card-icon     { background: rgba(108,92,231,0.12); color: #6c5ce7; }

.pg-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: 'Courier New', monospace;
}

.pg-card h3 span {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    display: block;
    margin-top: 3px;
}

.pg-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.65;
    margin-bottom: 18px;
}

.pg-config-preview {
    background: #0f0a1e;
    border-radius: 10px;
    padding: 14px 16px;
}

.pg-config-preview code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #a8ff78;
    white-space: pre;
    line-height: 1.8;
}

/* ===== Script Engine Dark Code Block ===== */
.feat-code-block-dark {
    background: #0c0618;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.fcbd-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fcbd-title {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-left: 8px;
    font-family: 'Courier New', monospace;
}

.fcbd-body {
    padding: 24px 26px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.85;
    overflow-x: auto;
    margin: 0;
    white-space: pre;
    color: rgba(255,255,255,0.75);
}

.js-comment  { color: rgba(255,255,255,0.3); font-style: italic; }
.js-kw       { color: #f09bc5; }
.js-fn       { color: #7ec8e3; }
.js-str      { color: #a8ff78; }
.js-num      { color: #ffd980; }

/* ===== API Features Grid ===== */
.api-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.api-feat-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid var(--divider);
    transition: all 0.3s;
}

.api-feat-card:hover {
    background: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.api-feat-card > i {
    font-size: 24px;
    color: var(--brand-pink);
    margin-bottom: 12px;
    display: block;
}

.api-feat-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.api-feat-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.dashboard-panels {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 32px;
    border: 1px solid var(--divider);
    flex-wrap: wrap;
}

.dp-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    white-space: nowrap;
}

.dp-panel-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.dp-panel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
}

.dp-panel:hover {
    border-color: rgba(217,77,136,0.3);
    color: var(--brand-pink);
}

.dp-panel i { color: var(--brand-pink); }

/* ===== Rule Type Cards ===== */
.feat-rule-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.rule-type-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--divider);
    transition: all 0.25s;
}

.feat-section-alt .rule-type-card {
    background: var(--bg-white);
}

.rule-type-card:hover {
    border-color: rgba(217,77,136,0.2);
    transform: translateX(3px);
}

.rtc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(217,77,136,0.12), rgba(64,51,99,0.08));
    color: var(--brand-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.rtc-body h4 {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.rtc-body p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== More Features ===== */
.feat-more {
    padding: 80px 0;
    background: var(--bg-light);
}

.feat-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fm-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid var(--divider);
    transition: all 0.3s;
}

.fm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.fm-card > i {
    font-size: 26px;
    color: var(--brand-pink);
    margin-bottom: 12px;
    display: block;
}

.fm-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.fm-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.feat-cta {
    padding: 80px 0;
    background: var(--bg-white);
}

.feat-cta-inner {
    background: var(--gradient-main);
    border-radius: 28px;
    padding: 60px 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.feat-cta-inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.feat-cta-content {
    z-index: 2;
    flex: 1;
}

.feat-cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    line-height: 1.3;
}

.feat-cta-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 480px;
}

.feat-cta-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.feat-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--brand-purple);
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}

.feat-cta-btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    color: var(--brand-purple);
}

.feat-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    color: white;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.feat-cta-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.feat-cta-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
    flex-shrink: 0;
}

.feat-cta-stat {
    text-align: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 120px;
}

.fcstat-val {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.fcstat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .feat-overview-grid  { grid-template-columns: repeat(3, 1fr); }
    .feat-section-inner  { grid-template-columns: 1fr; gap: 48px; }
    .feat-section-reverse { direction: ltr; }
    .proto-full-grid     { grid-template-columns: repeat(2, 1fr); }
    .api-features-grid   { grid-template-columns: repeat(2, 1fr); }
    .feat-more-grid      { grid-template-columns: repeat(2, 1fr); }
    .feat-cta-inner      { flex-direction: column; padding: 48px 36px; text-align: center; }
    .feat-cta-content p  { max-width: 100%; }
    .feat-cta-btns       { justify-content: center; }
    .feat-cta-stats      { flex-direction: row; justify-content: center; }
}

@media (max-width: 768px) {
    .feat-hero h1        { font-size: 36px; }
    .feat-hero-pills     { gap: 8px; }
    .feat-pill           { font-size: 12px; padding: 7px 14px; }
    .feat-overview-grid  { grid-template-columns: repeat(2, 1fr); }
    .feat-section        { padding: 64px 0; }
    .feat-section-content h2 { font-size: 28px; }
    .feat-section-header h2  { font-size: 28px; }
    .proto-full-grid     { grid-template-columns: 1fr; }
    .proxy-groups-grid   { grid-template-columns: 1fr; }
    .feat-rule-types     { grid-template-columns: 1fr; }
    .dns-modes           { grid-template-columns: 1fr; }
    .api-features-grid   { grid-template-columns: 1fr; }
    .feat-more-grid      { grid-template-columns: 1fr; }
    .feat-cta-inner      { padding: 36px 24px; }
    .feat-cta-content h2 { font-size: 24px; }
    .feat-cta-stats      { flex-wrap: wrap; gap: 12px; }
    .dns-branches-wrap   { flex-direction: column; }
}

@media (max-width: 480px) {
    .feat-hero h1       { font-size: 28px; }
    .feat-overview-grid { grid-template-columns: 1fr 1fr; }
    .diag-flow          { gap: 8px; }
}
