:root {
    --bg: #ffffff;
    --dark: #0f172a;
    --primary: #2563eb;
    --gray: #64748b;
    --light-gray: #f8fafc;
    --border: #e2e8f0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-stack); color: var(--dark); line-height: 1.6; background: var(--bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* HEADER */
header {
    min-height: 80px; display: flex; align-items: center; position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); z-index: 1000; 
    border-bottom: 1px solid var(--border);
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 2rem; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; color: var(--dark); }
.logo span { color: var(--primary); }
nav ul { display: flex; list-style: none; align-items: center; }
nav ul li a { text-decoration: none; color: var(--gray); margin-left: 2rem; font-weight: 500; transition: 0.3s; font-size: 0.9rem; }
nav ul li a:hover { color: var(--dark); }
.nav-btn { background: var(--dark); color: white !important; padding: 0.5rem 1rem; border-radius: 4px; }

/* BUTTONS */
.btn { 
    height: 48px; padding: 0 24px; border-radius: 4px; text-decoration: none; 
    font-weight: 600; transition: 0.3s ease; cursor: pointer; border: none; 
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-outline { border: 1px solid var(--border); color: var(--dark); background: white; }
.btn-outline:hover { background: var(--light-gray); border-color: var(--gray); }
.full-width { width: 100%; margin-top: auto; }

/* HERO */
.hero { padding: 120px 0; background: radial-gradient(circle at 80% 20%, #eff6ff 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.accent { color: var(--primary); }
.hero-text p { font-size: 1.15rem; color: var(--gray); margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; }

/* SERVICES */
.services { padding: 80px 0; background: var(--light-gray); }
.section-header { text-align: center; margin-bottom: 50px; }
.underline { width: 40px; height: 3px; background: var(--primary); margin: 15px auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: white; padding: 3rem 2rem; border: 1px solid var(--border); border-radius: 8px; transition: 0.3s; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.icon-box { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; opacity: 0.3; }
.card h3 { margin-bottom: 1rem; font-size: 1.25rem; }

/* PRICING */
.pricing-section { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.price-card { background: white; padding: 2.5rem 1.5rem; border: 1px solid var(--border); border-radius: 12px; text-align: center; position: relative; transition: 0.3s; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); transform: scale(1.02); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 12px; font-size: 0.7rem; font-weight: 700; border-radius: 20px; }
.price { font-size: 2.25rem; font-weight: 800; margin: 1rem 0; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--gray); }
.scope-box { background: var(--light-gray); padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 0.85rem; border: 1px dashed var(--border); }
.overage-text { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }
.features { list-style: none; text-align: left; margin-bottom: 30px; flex-grow: 1; }
.features li { padding: 8px 0; border-bottom: 1px solid var(--light-gray); font-size: 0.85rem; }

/* MODAL */
.modal {
    display: none; align-items: center; justify-content: center;
    position: fixed; z-index: 1001; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(4px);
}
.modal-content {
    background: #fff; padding: 30px; border-radius: 12px; width: 95%; max-width: 440px;
    max-height: 95vh; position: relative; overflow-y: auto;
}
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; }
.form-group { margin-bottom: 12px; text-align: left; }
.form-group label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.form-group textarea { resize: none; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.code-input { text-align: center; font-size: 24px !important; letter-spacing: 8px; }
body.modal-open { overflow: hidden; }
#user-input { position: absolute; top: -99999px; left: -99999px; }

/* FOOTER */
.site-footer { background: #0f172a; color: #94a3b8; padding: 80px 0 30px; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo { color: #fff; margin-bottom: 20px; }
.footer-tagline { font-size: 14px; margin-bottom: 20px; }
.footer-contact a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-links h4 { color: #fff; font-size: 14px; text-transform: uppercase; margin-bottom: 25px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-links ul li a:hover { color: var(--primary); }
.footer-bottom { padding-top: 30px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.back-to-top { color: #fff; text-decoration: none; background: #1e293b; padding: 8px 15px; border-radius: 4px; }

/* TOAST NOTIFICATION */
.toast {
    position: fixed; top: 20px; right: 20px; background: var(--dark); color: white;
    padding: 16px 24px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 12px; z-index: 2000;
    transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary); font-size: 14px;
}
.toast.show { transform: translateX(0); }

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.toggle-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left and right take equal space */
    align-items: center;
    gap: 15px; /* Adjust spacing between text and toggle */
    max-width: 400px; /* Optional: keeps it from spreading too wide */
    margin: 0 auto;   /* Centers the container itself */
}

.label-left {
    text-align: right; /* Aligns text toward the toggle */
}

.label-right {
    text-align: left; /* Aligns text toward the toggle */
}

@media (max-width: 768px) {
    header { position: relative; }
    header .container { justify-content: center; flex-direction: column; gap: 15px; }
    
    /* Forces the nav list to wrap and centers items */
    nav ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        padding: 0; 
    }

    /* Keeps standard links on the same line */
    nav ul li a { margin: 0 10px; }

    /* Target the list item containing the button */
    nav ul li:has(.nav-btn) { 
        width: 100%; 
        display: flex; 
        justify-content: center; 
        margin-top: 15px; 
    }

    /* Adjust the button itself for mobile */
    .nav-btn { 
        margin-left: 0 !important; 
        width: auto; 
        text-align: center;
    }

    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto;
        margin-bottom: 2rem;
    }
}