:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #8892b0;
    --primary: #00f0ff;
    --primary-dark: #0088ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated Blobs */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(0, 136, 255, 0.08), transparent 25%);
    filter: blur(80px);
    animation: blobAnim 15s ease-in-out infinite alternate;
}

@keyframes blobAnim {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 30px); }
}

/* Typography & Utils */
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
p { color: var(--text-muted); font-size: 1.1rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid {
    display: grid;
    gap: 2rem;
}

.w-100 { width: 100%; text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

nav { display: flex; gap: 2rem; align-items: center; }
nav a:not(.btn):hover { color: var(--primary); }

/* Sections */
section {
    padding: 8rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 { font-size: 3rem; margin-bottom: 1rem; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out forwards;
}

.hero h1 { font-size: 4.5rem; margin-bottom: 1.5rem; }
.hero p { font-size: 1.4rem; margin-bottom: 3rem; }

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.founder-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards / Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    z-index: 0;
}

.glass-card > * { position: relative; z-index: 1; }

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.glass-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }

/* Pricing */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    background: rgba(0, 240, 255, 0.05);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px); }

.badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--primary);
    color: #000;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}

.pricing-card h3 { font-size: 2rem; margin-bottom: 2rem; }
.features-list { list-style: none; margin-bottom: 3rem; flex-grow: 1; }
.features-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
}
.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* CTA */
.cta {
    text-align: center;
    padding: 8rem 5%;
    margin: 4rem auto;
    background: radial-gradient(circle at center, rgba(0,240,255,0.1), transparent 60%);
    border-radius: 30px;
}

.cta h2 { font-size: 4rem; margin-bottom: 1rem; }
.cta p { font-size: 1.5rem; margin-bottom: 3rem; }

.cta-bounce { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    background: rgba(0,0,0,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links, .social-links { display: flex; gap: 1.5rem; }
.footer-links a:hover, .social-links a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-header nav { display: none; }
    .hero h1 { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    .pricing-card.featured { transform: scale(1); border-radius: 20px;}
    .pricing-card.featured:hover { transform: translateY(-10px); }
    .section-header h2, .cta h2 { font-size: 2.5rem; }
    .cta { border-radius: 0; }
    .mac-console-wrapper { margin: 2rem 5%; }
}

/* Mac Console Structure */
.mac-console-wrapper {
    max-width: 900px;
    margin: 4rem auto 0;
    position: relative;
    z-index: 10;
    text-align: left;
}

.mac-console {
    background: #0b0f19;
    border-radius: 12px;
    border: 1px solid #1f2937;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
}

.mac-header {
    background: #111827;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1f2937;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.mac-title {
    flex-grow: 1;
    text-align: center;
    color: #9ecaed;
    font-size: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
}

.mac-body {
    padding: 25px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    min-height: 250px;
    line-height: 1.7;
}

.mac-body .cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--primary);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.code-comment { color: #64748b; }
.code-keyword { color: #f43f5e; font-weight: bold; }
.code-string { color: #38bdf8; }
.code-function { color: #c084fc; }
.code-orange { color: #fb923c; }
.code-green { color: #4ade80; }

/* Builder Modal Styles */
.builder-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.builder-modal-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 20, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    padding: 3rem;
    animation: modalFadeIn 0.4s ease-out forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover { color: #f43f5e; }

.builder-header {
    text-align: center;
    margin-bottom: 3rem;
}

.builder-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.builder-header p { color: #a1a1aa; font-size: 1.1rem; }

.builder-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.builder-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item:hover {
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

.service-item.selected {
    background: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2);
}

.service-item h4 { font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.service-item p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 1rem; flex-grow: 1; }

.summary-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.summary-card h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }

.cart-items { min-height: 150px; margin-bottom: 1.5rem; }

.cart-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    align-items: center;
}

.cart-item-remove {
    color: #f43f5e;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.8rem;
}

.summary-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }

.total-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.total-row span { color: #a1a1aa; font-size: 1rem; margin-bottom: 0.5rem; }

@media (max-width: 900px) {
    .builder-layout { grid-template-columns: 1fr; }
    .builder-services { grid-template-columns: 1fr; }
    .builder-modal { padding: 1rem; }
    .builder-modal-content { padding: 1.5rem; }
    .close-btn { right: 15px; top: 10px; }
}

/* Music Controller Container */
.music-controller {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
}

.music-toggle-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2; /* keep above slider */
}
.music-toggle-btn:hover {
    transform: scale(1.1);
}
.music-toggle-btn.playing {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    animation: pulse 2s infinite;
}

/* Volume Slider Wrapper */
.volume-slider-wrapper {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    border-radius: 0 30px 30px 0;
    height: 40px;
    display: flex;
    align-items: center;
    margin-left: -20px; /* Hide slightly behind button when closed */
    padding-left: 20px; /* Space for the button overlap */
    z-index: 1;
}

.music-controller:hover .volume-slider-wrapper {
    width: 140px;
    opacity: 1;
    padding-right: 15px;
    border-color: rgba(255, 255, 255, 0.2);
    margin-left: -5px;
}

/* Range Input Styling */
#volume-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00f0ff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
    50% { box-shadow: 0 0 35px rgba(0, 240, 255, 0.8); }
    100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
}

/* Mouse Trail Neon Effect */
.mouse-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    z-index: 9999;
    animation: fadeOutTrail 0.4s ease-out forwards;
}

@keyframes fadeOutTrail {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
}

/* Live Customer Tracker */
.live-customer-tracker {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 1000;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    border-radius: 12px;
    background: rgba(15, 20, 30, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.live-customer-tracker.pulsating {
    transform: scale(1.05);
    border-color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

#live-customer-count {
    color: #00f0ff;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 110px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(10px);
    border-left: 4px solid #00f0ff;
    border-radius: 8px;
    padding: 12px 18px;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: left bottom;
}

.toast-notification strong {
    color: #00f0ff;
    font-weight: 600;
}

.toast-notification p {
    color: #ccc;
    font-size: 0.8rem;
    margin: 0;
}

.toast-notification.fade-out {
    animation: toastFadeOut 0.5s ease forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(-20px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateX(-10px) scale(0.9); }
    to { opacity: 0; transform: translateX(-20px) scale(0.8); }
}
