:root {
    --bg-color: #050505;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #06b6d4; /* Electric Cyan */
    --secondary-color: #8b5cf6; /* Vivid Purple */
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --accent-glow: rgba(6, 182, 212, 0.2);
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -1px;
}

.logo-img {
    height: 36px;
    width: auto;
}


.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: var(--surface-border);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 50px rgba(6, 182, 212, 0.3));
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 1;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating.parallax {
    animation: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.feature-icon.loc { background: rgba(52, 211, 153, 0.12); }
.feature-icon.bt { background: rgba(167, 139, 250, 0.12); }
.feature-icon.wifi { background: rgba(96, 165, 250, 0.12); }
.feature-icon.bat { background: rgba(251, 191, 36, 0.12); }
.feature-icon.act { background: rgba(248, 113, 113, 0.12); }
.feature-icon.time { background: rgba(196, 181, 253, 0.12); }

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 16px;
}


/* --- Scenario / Logic Cards --- */
.scenarios {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(6, 182, 212, 0.05) 50%, var(--bg-color) 100%);
}

.logic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.formula-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 40px;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
}

.formula-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.formula-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.trigger-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.trigger-box .icon {
    font-size: 20px;
}

.operator {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.arrow {
    font-size: 32px;
    color: var(--text-dim);
    margin: 15px 0;
    animation: fadePulse 2s infinite;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

.result-box {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    text-align: center;
}

/* --- Insights --- */
.insights {
    padding: 100px 0;
}

.insights-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 80px;
}

.insights-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.insights-header p {
    color: var(--text-dim);
    font-size: 18px;
}

.insights-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.insight-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.35;
    line-height: 1;
    min-width: 60px;
}

.insight-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.insight-item p {
    color: var(--text-dim);
    font-size: 16px;
}

/* --- CTA --- */
.cta {
    padding: 120px 0;
}

.cta-container {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 40px;
    border-radius: 40px;
    color: #000;
}

.cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0.8;
}

.play-btn img {
    height: 60px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--surface-border);
}

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

.footer-brand p {
    color: var(--text-dim);
    margin-top: 8px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsive --- */
@media (max-width: 968px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-content h1 { font-size: 48px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .insights-container { grid-template-columns: 1fr; gap: 40px; }
    .logic-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 36px; }
    .logo { font-size: 20px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(12px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--surface-border);
    }
    .nav-links.open { display: flex; }
}
