/* ============================================
   LANDING.CSS - Professional Hosting Design
   Clean, functional layout
   ============================================ */

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    padding: 64px 0 48px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* Ambient glow - primary & accent */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 60%);
    pointer-events: none;
    filter: blur(60px);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -10%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 60%);
    pointer-events: none;
    filter: blur(80px);
}

[data-theme="dark"] .hero-bg::before {
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 60%);
}

[data-theme="dark"] .hero-bg::after {
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 60%);
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: center;
}

@media (max-width: 1400px) {
    .hero-container {
        grid-template-columns: 1fr 360px;
        gap: 48px;
    }
}

@media (max-width: 1100px) {
    .hero-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 36px;
    }
    .hero { min-height: auto; padding: 48px 0; }
}

/* Hero Content */
.hero-content { max-width: 640px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(139,92,246,0.06) 100%);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: var(--fw-medium);
    color: var(--primary);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success, #22c55e);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #2563eb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

[data-theme="dark"] .gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #60a5fa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

.hero-sub {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 6px 14px 6px 10px;
    border-radius: var(--radius-pill);
}

[data-theme="dark"] .trust-item {
    background: rgba(21,29,46,0.6);
    border-color: rgba(255,255,255,0.08);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-item span:first-child { font-size: 0.95rem; }

/* Status Card */
.hero-panel { position: relative; }

.status-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .status-card {
    background: rgba(17,24,39,0.85);
    backdrop-filter: blur(20px) saturate(150%);
    border-color: rgba(148,163,184,0.15);
}

.status-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: var(--fw-semibold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success, #22c55e);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.status-uptime {
    font-size: 0.8rem;
    color: var(--muted);
}

.status-uptime strong {
    color: var(--success, #22c55e);
    font-size: 1rem;
    font-weight: var(--fw-semibold);
}

.status-list { display: flex; flex-direction: column; gap: 8px; }

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.green { background: var(--success, #22c55e); }

.tag {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.tag.green { color: var(--success, #22c55e); background: rgba(34,197,94,0.1); }

.status-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted);
}

.latency { color: var(--success, #22c55e); font-weight: var(--fw-semibold); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border);
    text-decoration: none;
    min-height: 40px;
}

.btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: transparent;
    box-shadow: var(--shadow-primary-lg);
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn.ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.white {
    background: white;
    border-color: white;
    color: var(--primary);
}

.btn.white:hover {
    background: rgba(255,255,255,0.9);
}

.btn.outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn.outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn.full { width: 100%; justify-content: center; }

/* ==================== SECTIONS ==================== */
section { padding: 80px 0; }

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head .tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.06) 100%);
    border: 1px solid rgba(59,130,246,0.18);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: var(--fw-bold);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== PRICING ==================== */
.pricing {
    background: var(--bg2);
    position: relative;
}

[data-theme="dark"] .pricing {
    background: var(--bg2);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.toggle-group {
    display: inline-flex;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
}

.toggle-group.hidden { display: none; }

.toggle-group button {
    padding: 8px 18px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: var(--fw-semibold);
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.toggle-group button:hover { color: var(--text); }

.toggle-group button.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.discount {
    background: rgba(34,197,94,0.15);
    color: var(--success, #22c55e);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    margin-left: 4px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    border-color: rgba(59,130,246,0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card.featured {
    border-color: transparent;
    background: linear-gradient(var(--card), var(--card)) padding-box,
                linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #3b82f6 100%) border-box;
    box-shadow: var(--shadow-primary-lg);
}

.card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, rgba(139,92,246,0.02) 100%);
    pointer-events: none;
}

.card.featured:hover {
    box-shadow: 0 0 0 1px rgba(59,130,246,0.5), 0 20px 48px rgba(37,99,235,0.25);
    transform: translateY(-6px);
}

.card-badge {
    position: absolute;
    top: 14px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 4px 36px;
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transform: rotate(45deg);
    z-index: 1;
}

.card-head { margin-bottom: 20px; }
.card-head h3 { font-size: 1.2rem; font-weight: var(--fw-bold); margin-bottom: 6px; }
.card-head p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.card-price { margin-bottom: 6px; }
.card-price .amount {
    font-size: 2.6rem;
    font-weight: var(--fw-bold);
    letter-spacing: -1px;
}

.card.featured .card-price .amount {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-price .period { color: var(--muted); font-size: 0.85rem; }

.card-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features svg { color: var(--success, #22c55e); flex-shrink: 0; }

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ==================== COMPARE ==================== */
.compare { background: var(--bg); }

.compare-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tab {
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--muted);
    font-weight: var(--fw-semibold);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab:hover { border-color: var(--primary); color: var(--text); box-shadow: var(--shadow); }
.tab.active { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); border-color: transparent; color: white; box-shadow: var(--shadow-primary); }

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: var(--card2);
    font-weight: var(--fw-semibold);
    font-size: 0.85rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: var(--fw-medium);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table .hl { background: rgba(59,130,246,0.04); }

/* ==================== FEATURES ==================== */
.features {
    background: var(--bg);
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, #22c55e, #4ade80); }

.feature-card:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* Give each feature card a unique icon color */
.feature-card:nth-child(1) .feature-icon { background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0.04) 100%); color: #3b82f6; }
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(139,92,246,0.04) 100%); color: #8b5cf6; }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.04) 100%); color: #f59e0b; }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, rgba(34,197,94,0.12) 0%, rgba(34,197,94,0.04) 100%); color: #22c55e; }

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ==================== FAQ ==================== */
.faq { background: var(--bg2); }

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: var(--shadow-md);
}

.faq-item[open] {
    border-color: transparent;
    background: linear-gradient(var(--card), var(--card)) padding-box,
                linear-gradient(135deg, rgba(59,130,246,0.5), rgba(139,92,246,0.3)) border-box;
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
    background: var(--card2);
}

.faq-q {
    font-weight: var(--fw-semibold);
    font-size: 0.95rem;
    line-height: 1.4;
}

.faq-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: var(--radius-sm);
    background: var(--card2);
    position: relative;
    transition: all 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--muted);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.2s;
}

.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; }

.faq-item[open] .faq-icon {
    background: var(--primary);
    transform: rotate(45deg);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: white; }

.faq-a {
    padding: 0 20px 18px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin: 0 20px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 14px;
}

/* ==================== CTA ==================== */
.cta { padding: 80px 0; }

.cta-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 35%, #7c3aed 100%);
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(37,99,235,0.35);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 60%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }
}

.cta-content h2 {
    font-size: 1.8rem;
    font-weight: var(--fw-bold);
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
}

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

[data-theme="dark"] .footer {
    background: var(--bg2);
    border-top-color: rgba(148,163,184,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }

.footer-brand .logo { font-size: 1.4rem; font-weight: var(--fw-bold); margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; max-width: 260px; }

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    color: var(--text);
}

.footer-links a {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
