/* NusaMonitor - Magenta Theme with Phosphor Icons */

:root {
    --primary: #b8089c;
    --primary-dark: #8a0675;
    --primary-light: #d43ab8;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #fdf0fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Phosphor Icons Base */
.ph {
    font-size: 1.25em;
    vertical-align: middle;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn .ph {
    font-size: 1.1em;
}

.btn-primary {
    background: #b8089c;
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid var(--light);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.logo .ph {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 10, 45, 0.7) 0%, rgba(53, 16, 74, 0.8) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero .hero-desc,
.hero .hero-by {
    color: var(--white);
}

.hero .hero-desc {
    color: rgba(255, 255, 255, 0.85);
}

.hero .hero-by {
    color: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b8089c;
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge .ph {
    font-size: 1rem;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-by {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Features */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--light);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(184, 8, 156, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #b8089c;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon .ph {
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e0a2d 0%, #35104a 100%);
    color: var(--white);
}

.how-it-works h2 {
    color: var(--white);
}

.workflow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    border-radius: 12px;
    min-width: 140px;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: #b8089c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon .ph {
    font-size: 1.5rem;
    color: var(--white);
}

.step-text {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.arrow {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.workflow-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: var(--gray-light);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.workflow-note .ph {
    color: var(--primary-light);
}

/* Preview */
.preview {
    padding: 80px 0;
    background: var(--light);
}

.preview-frame {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(184, 8, 156, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.preview-header {
    background: #374151;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
}

.dot:first-child { background: #ef4444; }
.dot:nth-child(2) { background: #eab308; }
.dot:nth-child(3) { background: #22c55e; }

.preview-content {
    display: grid;
    grid-template-columns: 60px 1fr 180px;
    height: 350px;
}

.preview-sidebar {
    background: #1f2937;
}

.preview-map {
    background: linear-gradient(135deg, #1e0a2d 0%, #35104a 100%);
    position: relative;
}

.marker {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.marker.m1 { background: #f59e0b; top: 25%; left: 35%; }
.marker.m2 { background: var(--primary); top: 55%; left: 65%; }
.marker.m3 { background: #10b981; top: 70%; left: 25%; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.preview-panel {
    background: #111827;
}

/* Contact */
.contact {
    padding: 80px 0;
}

.contact-tagline {
    text-align: center;
    color: var(--primary);
    font-style: italic;
    margin-top: -32px;
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .ph {
    position: absolute;
    left: 14px;
    color: var(--gray);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea-group {
    align-items: flex-start;
}

.textarea-group .ph {
    top: 16px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 8, 156, 0.15);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}

.info-item > .ph {
    font-size: 1.75rem;
    color: var(--primary);
}

.info-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e0a2d 0%, #35104a 100%);
    color: var(--white);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.footer-brand .ph {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.footer p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer p a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer p a:hover {
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 1.5rem;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--dark);
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal p {
    color: var(--gray);
    margin-bottom: 24px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form .btn {
    margin-top: 8px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 900px) {
    h1 { font-size: 2.25rem; }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .preview-sidebar,
    .preview-panel {
        display: none;
    }
    
    .preview-map {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-right.active {
        right: 0;
    }
    
    .nav-right .nav-link {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--light);
        font-size: 1.1rem;
    }
    
    .nav-right .btn {
        width: 100%;
        margin-top: 16px;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .workflow {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .step {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; margin-bottom: 32px; }
    
    .container {
        padding: 0 16px;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .features,
    .how-it-works,
    .preview,
    .contact {
        padding: 60px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        gap: 16px;
    }
    
    .info-item {
        padding: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}
