/* ═══════════════════════════════════════════════════════════════
   Hosterlo Design System v2.0 — Premium Hosting UI
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    --primary: 258, 79%, 45%; /* #4f17ce */
    --primary-glow: 258, 79%, 60%;
    --secondary: 243, 62%, 55%;
    --accent: 243, 82%, 66%;
    --bg: 240, 100%, 99%;
    --surface: 0, 0%, 100%;
    --on-bg: 217, 44%, 12%;
    --on-surface: 231, 11%, 31%;
    --muted: 254, 8%, 50%;
    --border: 214, 32%, 91%, 0.5;
    
    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 40px;
    
    /* Shadows - More layered and premium */
    --shadow-sm: 0 2px 4px rgba(0,0,0,.04);
    --shadow-md: 0 10px 20px rgba(79, 23, 206, 0.04);
    --shadow-lg: 0 15px 40px rgba(0,0,0,.08);
    --shadow-xl: 0 30px 60px rgba(79, 23, 206, 0.12);
    --shadow-premium: 0 0 0 1px rgba(79, 23, 206, 0.05), 0 10px 30px rgba(0,0,0,0.05);
}

/* Helper for HSL colors */
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary)); }


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--on-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
a:hover { color: hsl(var(--primary)); }
/* ── Navigation ─────────────────────────────────────────────── */
.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--on-surface);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}
.nav-link:hover { color: hsl(var(--primary)); }
.nav-link.active { color: hsl(var(--primary)); font-weight: 700; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { cursor: default; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--on-bg);
    transition: background .2s;
}
.nav-dropdown-menu a:hover {
    background: #f1f0ff;
    color: hsl(var(--primary));
}
.nav-dropdown-menu a .material-symbols-outlined {
    font-size: 18px;
    color: hsl(var(--primary));
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,.2), transparent);
    transform: rotate(45deg);
    transition: .6s;
    opacity: 0;
}
.btn:hover::after { left: 100%; top: 100%; opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 23, 206, .3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 23, 206, .4);
    color: #fff;
}

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

.btn-white {
    background: #fff;
    color: hsl(var(--primary));
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all .3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
}

/* ── Section helpers ────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-dark { background: #0f0a1e; color: #fff; }
.section-muted { background: #f3f1ff; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: hsl(var(--primary));
    background: rgba(79, 23, 206, .08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.6;
}
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Pricing Table ──────────────────────────────────────────── */
.price-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    text-align: center;
    transition: all .3s ease;
    position: relative;
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.price-card.featured {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--primary)), var(--shadow-lg);
}
.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 20px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.price-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--on-bg);
    line-height: 1;
}
.price-amount sup { font-size: 22px; top: -16px; }
.price-amount sub { font-size: 14px; font-weight: 500; color: var(--muted); bottom: 0; }
.price-original {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 18px;
}
.price-features {
    list-style: none;
    text-align: left;
    margin: 24px 0;
}
.price-features li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.price-features li .material-symbols-outlined {
    font-size: 18px;
    color: #22c55e;
}

/* ── Minimalist FAQ (Hostinger Style) ───────────────────────── */
.faq-minimal {
    font-family: 'Inter', sans-serif;
}
.faq-minimal-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.faq-minimal-question {
    width: 100%;
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.3s ease;
}
.faq-minimal-question:hover {
    color: hsl(var(--primary));
}
.faq-minimal-icon {
    font-size: 24px;
    color: #a0aec0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-minimal-item.active .faq-minimal-icon {
    transform: rotate(45deg);
    color: hsl(var(--primary));
}
.faq-minimal-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.faq-minimal-item.active .faq-minimal-answer {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 32px;
}
.faq-minimal-answer p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 17px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: #0f0a1e; color: rgba(255,255,255,.7); padding: 80px 0 32px; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 60px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .desktop-nav { display: none !important; }
    .mobile-toggle { display: flex !important; }
}
@media (min-width: 1025px) {
    .mobile-toggle { display: none !important; }
    .mobile-overlay { display: none !important; }
}
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
}

/* ── Utility grids ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Effects ────────────────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.premium-border {
    position: relative;
}
.premium-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, hsl(var(--primary)), transparent, hsl(var(--secondary)));
    z-index: -1;
    border-radius: inherit;
    opacity: 0.15;
}
.glow-on-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(79, 23, 206, 0.15);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes border-beam {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.animate-in { animation: fadeInUp .8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 4s ease-in-out infinite; }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all .3s ease;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-size: 72px;
    font-weight: 900;
    color: hsl(var(--primary));
    opacity: .08;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79,23,206,.15);
}
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars .material-symbols-outlined {
    font-size: 18px;
    color: #f59e0b;
    font-variation-settings: 'FILL' 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.04);
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Contact Form ──────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    background: var(--surface);
    color: var(--on-bg);
    transition: border-color .3s;
    outline: none;
}
.form-input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px rgba(79,23,206,.1);
}
.form-input::placeholder { color: var(--muted); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--on-bg);
    margin-bottom: 6px;
}
