/* 
====================================================================
  HOSTFLOW - WEB HOSTING SALES PAGE STYLES
  CSS-Only, No JavaScript dependencies.
==================================================================== 
*/

/* 
  THEME CONFIGURATION
*/
:root {
    /* Colors */
    --bg-dark: #0a0a1f;
    --bg-darker: #050510;
    --bg-card: #0e0e24;
    --primary: #00f3ff;
    --primary-glow: rgba(0, 243, 255, 0.4);
    --secondary: #bd00ff;
    --secondary-glow: rgba(189, 0, 255, 0.4);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 31, 0.8);
    --accent-surface: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --top-bar-height: 40px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 
====================================================================
  CURRENCY SWITCHER LOGIC (CSS-ONLY)
==================================================================== 
*/
.currency-checkbox {
    display: none;
}

/* Default: Show USD, Hide INR */
.currency-inr, .price-inr-inline {
    display: none;
}
.currency-usd, .price-usd-inline {
    display: inline-block;
}

/* Checked State: Hide USD, Show INR */
/* We use sibling combinator ~ to target content inside .page-wrapper */
#currency-switch:checked ~ .page-wrapper .currency-usd {
    display: none;
}
#currency-switch:checked ~ .page-wrapper .price-usd-inline {
    display: none;
}
#currency-switch:checked ~ .page-wrapper .currency-inr {
    display: inline-block;
}
#currency-switch:checked ~ .page-wrapper .price-inr-inline {
    display: inline-block;
}

/* 
====================================================================
  TOP BAR
==================================================================== 
*/
.top-bar {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 101;
}

.top-bar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.btn-signin {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-signin:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

/* Toggle Switch UI */
.currency-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Active label highlighting */
#currency-switch:not(:checked) ~ .page-wrapper .currency-toggle-wrapper .currency-label:first-child {
    color: var(--primary);
}
#currency-switch:checked ~ .page-wrapper .currency-toggle-wrapper .currency-label:last-child {
    color: var(--primary);
}

.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: var(--text-main);
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Move slider when checkbox is checked */
#currency-switch:checked ~ .page-wrapper .toggle-slider {
    transform: translateX(16px);
    background-color: var(--primary);
}

/* 
====================================================================
  MAIN HEADER
==================================================================== 
*/
.main-header {
    position: absolute;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    background: linear-gradient(to bottom, rgba(10,10,31,0.95), rgba(10,10,31,0.8));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 102;
}

.logo img {
    border-radius: 8px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* Navigation */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; z-index: 102; }
.nav-toggle-label span { display: block; width: 25px; height: 2px; background-color: var(--text-main); margin-bottom: 5px; transition: all 0.3s; }

.main-nav { height: 100%; }
.nav-list { display: flex; height: 100%; align-items: center; gap: 32px; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-item:hover .nav-link { color: var(--primary); }
.arrow-icon { font-size: 0.7rem; transition: transform 0.2s; }
.nav-item:hover .arrow-icon { transform: rotate(180deg); }

.submenu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0e0e24;
    min-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-item:hover .submenu, .nav-item:focus-within .submenu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li a {
    display: block; padding: 10px 20px;
    color: var(--text-muted); font-size: 0.9rem;
}
.submenu li a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-main); }

/* 
====================================================================
  HERO SECTION
==================================================================== 
*/
.hero {
    position: relative;
    min-height: 550px; /* Reduced height further as requested */
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + var(--top-bar-height));
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/img/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 243, 255, 0.05), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(189, 0, 255, 0.05), transparent 50%),
                linear-gradient(to bottom, rgba(10,10,31,0.7), #0a0a1f);
    z-index: -1;
}

.hero-container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 800px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500; color: var(--primary);
    margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 8px var(--primary); }

.hero-title {
    font-family: var(--font-heading); font-size: 4rem; line-height: 1.1;
    font-weight: 800; margin-bottom: 20px; letter-spacing: -1.5px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem; color: var(--text-muted);
    margin-bottom: 40px; max-width: 600px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; margin-bottom: 50px; }

.btn {
    padding: 14px 30px; border-radius: 6px;
    font-weight: 600; font-size: 1rem;
    text-align: center; cursor: pointer; transition: all 0.3s;
}
.btn-primary {
    background: var(--primary); color: #050510;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}
.btn-primary:hover { background: #33f6ff; transform: translateY(-2px); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05); color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.tech-stats {
    display: flex; align-items: center; gap: 40px;
    padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.1); }

/* 
====================================================================
  PRICING SECTION
==================================================================== 
*/
.pricing-section {
    padding: 80px 0 100px;
    background-color: var(--bg-dark);
}
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-badge {
    display: inline-block; color: var(--secondary); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    font-size: 0.85rem; margin-bottom: 16px;
}
.section-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 10px; }

.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-top: 40px;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px; padding: 40px;
    position: relative; transition: all 0.3s ease;
}
.pricing-card:hover { border-color: var(--primary); transform: translateY(-5px); }

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(189, 0, 255, 0.05), var(--bg-card));
    border: 1px solid var(--secondary);
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.15);
    transform: scale(1.05); z-index: 2;
}

.popular-tag {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--secondary); color: white;
    padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.plan-name { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 10px; }
.plan-price { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--text-main); margin-bottom: 20px; }
.plan-price .period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.plan-features { margin: 30px 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.plan-features li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.95rem; }
.check-icon { color: var(--primary); font-size: 0.9rem; }

.btn-plan {
    width: 100%; padding: 14px; border-radius: 8px; font-weight: 600;
    background: rgba(255, 255, 255, 0.05); color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.2s;
    display: block;
}
.pricing-card.popular .btn-plan { background: var(--secondary); border-color: var(--secondary); }
.btn-plan:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--text-main); }
.pricing-card.popular .btn-plan:hover { background: #d04fff; }

/* 
====================================================================
  FEATURES SECTION
==================================================================== 
*/
.features-section { padding: 100px 0; background-color: var(--bg-darker); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px; padding: 30px;
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.feature-icon {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--primary); font-size: 1.2rem;
    transition: all 0.3s;
}
.feature-card:hover .feature-icon { background: var(--primary); color: #000; }

.feature-title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.feature-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* 
====================================================================
  TESTIMONIALS SECTION
==================================================================== 
*/
.testimonials-section { padding: 100px 0; background-color: var(--bg-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.testimonial-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: 16px; padding: 30px;
    display: flex; flex-direction: column;
}
.quote-icon { color: var(--secondary); font-size: 1.5rem; margin-bottom: 16px; opacity: 0.5; }
.testimonial-text { font-size: 1rem; font-style: italic; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; flex-grow: 1; }

.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.testimonial-author h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.testimonial-author span { font-size: 0.8rem; color: var(--primary); }

/* 
====================================================================
  PAYMENTS SECTION (New Styles)
==================================================================== 
*/
.payments-section {
    padding: 60px 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.payments-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
    max-width: 900px; margin: 0 auto;
}
.payment-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: 1.1rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.payment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
    color: var(--text-main);
    transform: translateY(-2px);
}
.payment-item i { font-size: 1.5rem; }

/* 
====================================================================
  FAQ SECTION (Revamped)
==================================================================== 
*/
.faq-section { padding: 100px 0; background-color: var(--bg-dark); }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
    transition: all 0.3s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item[open] { background: rgba(255, 255, 255, 0.04); border-color: var(--border-color); }

.faq-item summary {
    padding: 20px 24px; cursor: pointer;
    font-weight: 600; font-size: 1.05rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }

.toggle-icon {
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 50%;
    color: var(--primary); transition: all 0.3s;
}
.faq-item[open] .toggle-icon { transform: rotate(45deg); background: var(--primary); color: #000; }

.faq-content { padding: 0 24px 24px; color: var(--text-muted); line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* 
====================================================================
  CTA SECTION (Redesigned)
==================================================================== 
*/
.cta-section-new { padding: 100px 0; background-color: var(--bg-darker); }

.cta-box {
    background: linear-gradient(90deg, #0f0f2d 0%, #1a1a3a 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: relative; overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3);
}

.cta-box::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%; transform: translate(30%, -30%);
}

.cta-content { max-width: 500px; position: relative; z-index: 2; }

.cta-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
.cta-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }

.cta-buttons { display: flex; gap: 16px; }
.btn-outline {
    padding: 14px 30px; border-radius: 6px; font-weight: 600;
    border: 2px solid var(--border-color); color: var(--text-main);
    transition: all 0.3s; display: inline-block;
}
.btn-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

.cta-visual {
    font-size: 10rem; color: rgba(255,255,255,0.03);
    transform: rotate(-15deg); margin-right: 40px;
}

/* 
====================================================================
  FOOTER
==================================================================== 
*/
.footer { background: #02020a; padding: 80px 0 40px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }

.footer-brand p { color: var(--text-muted); margin-top: 20px; font-size: 0.9rem; max-width: 300px; }
.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-links a {
    width: 36px; height: 36px; background: rgba(255,255,255,0.05);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); color: #000; }

.footer-col h4 { color: var(--text-main); margin-bottom: 24px; font-weight: 600; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 0.85rem;
}
.legal-links { display: flex; gap: 20px; }

/* 
====================================================================
  RESPONSIVE
==================================================================== 
*/
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .pricing-card.popular { transform: scale(1); z-index: 1; }
    .cta-box { flex-direction: column; text-align: center; padding: 40px; }
    .cta-content { max-width: 100%; }
    .cta-visual { display: none; }
    .cta-buttons { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Top Bar - Make visible and stack */
    .top-bar { 
        display: flex; 
        height: auto;
        padding: 10px 0;
        z-index: 1000; /* Ensure high z-index */
    } 
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    /* Adjust Header Positioning */
    .main-header { 
        position: sticky; /* Stick to top */
        top: 0;
        height: 70px; 
        background: rgba(10,10,31,0.95); /* More opaque on mobile */
        z-index: 999;
    }
    
    /* Adjust Hero Padding since Header is now sticky/relative flow */
    .hero { 
        padding-top: 40px; /* Reduced padding as header takes space */
        min-height: auto; /* Allow height to grow */
    }
    
    /* Mobile Nav */
    .nav-toggle-label { display: block; }
    
    .main-nav {
        position: absolute; /* Absolute to the header */
        top: 100%; 
        left: 0; 
        width: 100%;
        background: var(--bg-darker); 
        border-bottom: 1px solid var(--border-color);
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    #nav-toggle:checked ~ .main-nav { max-height: 500px; }
    
    .nav-list { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 0; 
        height: auto; 
    }
    
    .nav-item { 
        width: 100%; 
        flex-direction: column; 
        align-items: flex-start; 
        height: auto;
    }
    
    .nav-link { 
        width: 100%; 
        padding: 15px 20px; 
        justify-content: space-between; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        color: var(--text-main);
    }
    
    /* Submenu Mobile */
    .submenu {
        position: static; 
        transform: none; 
        width: 100%; 
        opacity: 1; 
        visibility: visible;
        background: rgba(0,0,0,0.2); 
        display: block; /* Always show for simplicity or use JS toggle */
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .submenu li a {
        padding-left: 40px; /* Indent submenu items */
        border-bottom: 1px solid rgba(255,255,255,0.02);
    }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    
    /* Prevent horizontal overflow on small screens */
    .pricing-grid, .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .plan-price {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 16px;
    }
}
