/* ===================================
   Outline VPN — Mode C Service Styles
   Cloned from getoutline.org design
   Light theme + dark green sections
   =================================== */

:root {
    --primary: #3f8353;
    --primary-dark: #2d5f3c;
    --primary-light: #4a9960;
    --dark-bg: #1c372a;
    --dark-bg-deep: #152b21;
    --grey-bg: #f5f6f7;
    --white: #ffffff;
    --text: #1c1e21;
    --text-muted: #6b7280;
    --text-light: rgba(255,255,255,.85);
    --border: #e5e7eb;
    --border-light: rgba(255,255,255,.12);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --transition: all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(63,131,83,.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--dark-bg);
    border-color: var(--white);
}
.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    color: var(--dark-bg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--border-light);
}
.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.1);
    color: var(--white);
}

.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}

.navbar-brand { display: flex; align-items: center; }
.navbar-logo { height: 32px; }

.navbar-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.navbar-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}
.navbar-nav a:hover { background: var(--grey-bg); color: var(--primary); }

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ── */
.hero-section {
    padding: 60px 0 40px;
    background: var(--white);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-top { max-width: 640px; margin-bottom: 32px; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(63,131,83,.08);
    border: 1px solid rgba(63,131,83,.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 540px;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.lottie-container {
    width: 100%;
    margin: 0 auto;
}

.lottie-container svg { width: 100% !important; height: auto !important; }

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
}

.hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}

.tag {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Stats ── */
.stats-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-card { padding: 16px; }

.stat-num {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Dark Sections ── */
.dark-section {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0;
}

.dark-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.dark-left h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
}

.dark-right p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.dark-sub { font-weight: 600; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-grey { background: var(--grey-bg); }

.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
}

.section-grey .feature-card { background: var(--white); }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(63,131,83,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ── Servers ── */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.server-pill {
    padding: 12px 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.server-pill:hover {
    border-color: var(--primary);
    background: rgba(63,131,83,.05);
    transform: scale(1.05);
}

.server-pill .flag { margin-right: 4px; }

/* ── Security ── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.security-card {
    background: var(--grey-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

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

.security-icon { font-size: 36px; margin-bottom: 16px; }
.security-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.security-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.pricing-popular {
    border: 2px solid var(--primary);
    transform: scale(1.03);
}

.pricing-card.pricing-popular:hover {
    transform: scale(1.03) translateY(-8px);
}

.popular-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.price-amount {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0 4px;
}

.price-period { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-per-month { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.pricing-card .btn { margin-top: 20px; }

.pricing-trial {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-muted);
}
.pricing-trial span { color: var(--primary); font-weight: 700; }

/* ── Referral ── */
.referral-card {
    background: var(--dark-bg);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
}

.referral-icon { font-size: 52px; margin-bottom: 20px; }
.referral-card h2 { font-size: 28px; margin-bottom: 12px; color: var(--white); }
.referral-desc { font-size: 17px; color: var(--text-light); max-width: 520px; margin: 0 auto 32px; }

.referral-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.referral-step { text-align: center; }

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 12px;
}

.referral-step p { font-size: 14px; color: var(--text-light); max-width: 150px; }

/* ── Download ── */
.download-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.dl-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.dl-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.dl-icon { margin-bottom: 12px; }
.dl-icon svg { width: 40px; height: 40px; fill: var(--primary); }

.dl-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dl-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.dl-btn:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

/* ── FAQ ── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    background: var(--white);
    transition: var(--transition);
}

details[open] { border-color: var(--primary); background: rgba(63,131,83,.02); }

summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    font-size: 22px;
    color: var(--primary);
    transition: transform .3s ease;
    flex-shrink: 0;
}

details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ── CTA Dark ── */
.cta-dark { text-align: center; padding: 80px 0; }
.cta-content h2 { font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-content p { font-size: 17px; color: var(--text-light); max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
    background: var(--dark-bg-deep);
    color: var(--text-light);
    padding: 48px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.footer-logo { height: 28px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-links a:hover { color: var(--white); }

.footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,.4);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ── SEO Block (footer) ── */
.seo-block {
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}

.seo-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.seo-col-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 12px;
}

.seo-col ul { list-style: none; }
.seo-col ul li { margin-bottom: 6px; }
.seo-col ul li a { color: rgba(255,255,255,.5); font-size: 13px; }
.seo-col ul li a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .servers-grid { grid-template-columns: repeat(4, 1fr); }
    .download-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-visual { max-width: 600px; }
}

@media (max-width: 860px) {
    .hero-section h1 { font-size: 36px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .pricing-card.pricing-popular { transform: none; }
    .pricing-card.pricing-popular:hover { transform: translateY(-8px); }
    .dark-content { grid-template-columns: 1fr; gap: 32px; }
    .dark-left h2 { font-size: 30px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .security-grid { grid-template-columns: 1fr; }
    .navbar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .navbar-nav.open { display: flex; }
    .navbar-toggle { display: flex; }
    .navbar .btn-primary { display: none; }
    .seo-columns { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
    .hero-section h1 { font-size: 28px; }
    .section { padding: 56px 0; }
    .section-title { font-size: 26px; }
    .features-grid { grid-template-columns: 1fr; }
    .servers-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .download-grid { grid-template-columns: repeat(2, 1fr); }
    .referral-card { padding: 36px 20px; }
    .referral-steps { gap: 24px; }
    .container { padding: 0 16px; }
    .cta-content h2 { font-size: 28px; }
}

@media (max-width: 400px) {
    .download-grid { grid-template-columns: 1fr; }
    .hero-badges { gap: 6px; }
}
