:root {
    --bg-primary: #0d0d14;
    --bg-secondary: #14141f;
    --bg-card: #1a1a2a;
    --bg-card-hover: #222233;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    
    --accent-orange: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    
    --gradient-1: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    --gradient-2: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    --gradient-3: linear-gradient(135deg, var(--accent-orange), var(--accent-purple));
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s ease;
    
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #000000 !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.08);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: transparent;
    transition: var(--transition);
    z-index: 1000;
}

#header.scrolled {
    background: rgba(13, 13, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-orange);
    font-size: 2rem;
}

.logo:hover {
    color: var(--text-primary);
}

.logo:hover i {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-menu a:not(.btn):hover {
    color: var(--accent-orange);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: calc(var(--header-height) + 24px) 24px 60px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 18%, rgba(0,0,0,0.75) 45%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0.9) 82%, rgba(0,0,0,0.95) 100%),
        radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.04) 0%, transparent 50%),
        url('../img/SPOTeventplanner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    background-blend-mode: multiply;
}

.hero::before { display: none; }

.hero-content {
    flex: 1;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--accent-orange);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-orange);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-orange) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    max-width: 550px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-panel {
    width: 100%;
    max-width: 500px;
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 13, 20, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 16px;
}

.hero-panel-head span {
    font-weight: 700;
    color: var(--text-primary);
}

.hero-panel-head small {
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.spot-icon {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.spot-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
}

.spot-icon::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 3px solid var(--accent-orange);
    opacity: 0.6;
}

.spot-icon i {
    font-size: 5rem;
    color: var(--accent-orange);
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.about-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.about-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border-radius: var(--radius-md);
    font-size: 2rem;
    color: white;
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.feature-icon.show-control {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: white;
}

.feature-icon.devices {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: white;
}

.feature-icon.workorders {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: white;
}

.feature-icon.preventive {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: white;
}

.feature-icon.assets {
    background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
    color: white;
}

.feature-icon.reports {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-header {
    max-width: 840px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-intro {
    margin: 18px auto 0;
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.group-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
}

.module-group + .module-group {
    margin-top: 56px;
}

.about-card,
.feature-card {
    display: flex;
    flex-direction: column;
}

.card-shot,
.shot-placeholder,
.module-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

/* Ensure any inserted screenshots fit the placeholder area and don't grow it */
.card-shot img,
.module-visual img,
.shot-placeholder img {
    display: block;
    width: 100%;         /* match the placeholder width */
    height: 100%;        /* fill the placeholder height */
    max-height: 100%;    /* don't exceed the placeholder */
    object-fit: cover;   /* crop/scale to cover without distortion */
    pointer-events: none; /* prevent accidental interactions */
}

.card-shot {
    min-height: 180px;
    margin-bottom: 24px;
    padding: 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

.shot-placeholder {
    min-height: 320px;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    color: var(--text-secondary);
}

/* Make the hero placeholder use the full area for screenshots (crop as needed) */
.shot-placeholder--hero {
    min-height: 320px;
    padding: 0;
    position: relative;
    border: none;
    background: transparent;
    border-radius: 0;
}
.shot-placeholder--hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop/scale to fully cover the box */
    display: block;
}

/* Make smaller card shots fill their boxes but align to the top-left corner */
.card-shot--director,
.card-shot--lite,
.card-shot--local {
    padding: 0; /* remove inner padding so image can fill the box */
    position: relative;
}
.card-shot--director img,
.card-shot--lite img,
.card-shot--local img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* crop/scale to cover the box */
    object-position: left top; /* anchor to top-left so that corner remains visible */
    display: block;
}

/* Make module and extension card visuals fill their boxes and center the image */
.module-visual {
    padding: 0; /* remove inner padding so image can fill the rounded box */
    position: relative;
}
.module-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* crop/scale to cover the box */
    object-position: center center; /* anchor to center so image grows from center */
    display: block;
}

.shot-placeholder i {
    font-size: 2.4rem;
    color: var(--accent-orange);
}

.module-visual {
    min-height: 170px;
    margin-bottom: 20px;
    padding: 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.card-shot--director,
.module-visual--cmms,
.module-visual--autowo {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(59, 130, 246, 0.14));
}

.card-shot--lite,
.module-visual--docs,
.module-visual--field,
.module-visual--reports {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(6, 182, 212, 0.14));
}

.card-shot--local,
.module-visual--telegram,
.module-visual--custom,
.module-visual--equipment {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(245, 158, 11, 0.12));
}

.module-visual--ai,
.module-visual--hours,
.module-visual--roster,
.module-visual--incident,
.module-visual--stock,
.module-visual--training {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(245, 158, 11, 0.08));
}

.card-bullets {
    margin-top: 18px;
    padding-left: 18px;
    color: var(--text-secondary);
}

.card-bullets li + li {
    margin-top: 10px;
}

.module-card .card-tag {
    margin-bottom: 14px;
}

.module-card h3,
.benefit-card h3 {
    margin-top: 0;
}

.module-card p,
.benefit-card p {
    font-size: 0.95rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.benefit-card {
    min-height: 100%;
}

.benefit-card:hover {
    border-color: var(--accent-orange);
}

/* Contact Section */
.contact-box {
    text-align: center;
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.contact-box h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 16px;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-box a.btn {
    margin-bottom: 8px;
}

.contact-note {
    margin-top: 24px !important;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--header-height) + 16px);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 48px;
    }

    .hero-panel {
        max-width: 100%;
    }

    .spot-icon {
        width: 160px;
        height: 160px;
    }

    .spot-icon i {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(13, 13, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a:not(.btn) {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .about-grid,
    .features-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .feature-card {
        padding: 28px 24px;
    }

    .module-visual {
        min-height: 150px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .shot-placeholder {
        min-height: 260px;
    }

    .spot-icon {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .contact-box {
        padding: 40px 24px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
