/* style.css */
:root {
    --bg-color: #020c11;
    /* Deep dark background */
    --surface-color: #081a24;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;

    /* Neon Accents */
    --primary-color: #2ac8d2;
    /* Bright Teal/Cyan */
    --primary-glow: rgba(42, 200, 210, 0.5);
    --secondary-color: #d9b07b;
    /* Logo Gold */
    --secondary-glow: rgba(217, 176, 123, 0.5);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-color: #0f172a;
    --text-muted: #475569;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    
    --primary-color: #1b919b; /* Darker teal for light mode */
    --primary-glow: rgba(42, 200, 210, 0.2);
    --secondary-color: #c49658; /* Darker Gold for light mode */
    --secondary-glow: rgba(196, 150, 88, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--secondary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 24px 0;
}

header.scrolled {
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

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

.logo img {
    height: 70px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-links a:not(.btn):hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.nav-links .nav-btn {
    color: white;
    padding: 10px 24px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    width: 32px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 0px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(42, 200, 210, 0.15) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulseBg 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 176, 123, 0.15) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulseBg 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulseBg {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(30px, 30px);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Device Frames styled like Midas layout */
.hero-devices {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 400px;
    margin-top: 40px;
    perspective: 1200px;
}

.device {
    position: absolute;
    bottom: -80px;
    background: var(--surface-color);
    border: 4px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(42, 200, 210, 0.1);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.device .screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.device .screen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Laptop Device */
.laptop-device {
    width: 760px;
    height: 480px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 12px 12px 0 0;
    border-width: 12px 12px 0 12px;
    border-color: #111;
    background: #111;
}

/* Tablet Device */
.tablet-device {
    width: 280px;
    height: 400px;
    left: 2%;
    transform: translateY(20px) rotate(-3deg);
    z-index: 2;
    border-radius: 16px;
    border-width: 12px;
    border-color: #1a1a24;
}

/* Phone Device */
.phone-device {
    width: 220px;
    height: 440px;
    right: 5%;
    transform: translateY(10px) rotate(3deg);
    z-index: 3;
    border-radius: 32px;
    border-width: 10px;
    border-color: #1a1a24;
}

/* Phone Notch */
.phone-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: #1a1a24;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.device:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(42, 200, 210, 0.3);
    z-index: 10;
}

.laptop-device:hover {
    transform: translateX(-50%) translateY(-15px) scale(1.02);
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

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

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, border-color 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 200, 210, 0.15), rgba(217, 176, 123, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-card .icon {
    font-size: 28px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Benefits Section */
.split-layout {
    display: flex;
    align-items: center;
    gap: 100px;
}

.split-image {
    flex: 1;
}

.logo-showcase {
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.glow-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    opacity: 0.15;
    filter: blur(20px);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.secondary-logo {
    max-width: 70%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(42, 200, 210, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 800;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    margin-bottom: 32px;
    padding-left: 40px;
    position: relative;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.benefit-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.benefit-list strong {
    color: var(--text-color);
    display: block;
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
    border-color: rgba(42, 200, 210, 0.2);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(42, 200, 210, 0.05);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-form {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.demo-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.demo-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(42, 200, 210, 0.2);
}

.demo-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.demo-form .btn {
    padding: 16px 32px;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(ellipse at bottom, rgba(42, 200, 210, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.footer-img {
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(0.8) contrast(1.2);
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

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

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .split-layout {
        gap: 50px;
    }

    .laptop-device {
        width: 600px;
        height: 380px;
    }
    .tablet-device {
        width: 240px;
        height: 350px;
    }
    .phone-device {
        width: 180px;
        height: 360px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding-top: 130px;
        min-height: auto;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-devices {
        height: 300px;
    }
    
    .laptop-device {
        width: 500px;
        height: 300px;
    }
    
    .tablet-device {
        left: -2%;
        width: 200px;
        height: 280px;
        transform: translateY(30px) rotate(-5deg);
    }
    
    .phone-device {
        right: -2%;
        width: 160px;
        height: 320px;
        transform: translateY(20px) rotate(5deg);
    }
    
    .tablet-device:hover { transform: translateY(15px) rotate(-5deg) scale(1.02); }
    .phone-device:hover { transform: translateY(5px) rotate(5deg) scale(1.02); }

    .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .benefit-list li {
        text-align: left;
    }

    .demo-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.98);
        padding: 30px 20px;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
    }

    .menu-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-logo p {
        margin: 0 auto;
    }

    .mockup-container:hover {
        transform: none;
    }
}

/* Theme Switch Button */
.theme-switch {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-left: 10px;
}
.theme-switch:hover {
    background: var(--glass-bg);
    transform: scale(1.1);
}

/* Showcase Gallery */
.showcase {
    background: linear-gradient(180deg, transparent 0%, rgba(42, 200, 210, 0.03) 100%);
}

.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.showcase-item {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.showcase-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(42, 200, 210, 0.2);
    z-index: 10;
}

.showcase-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
    background: rgba(0,0,0,0.2);
}

.showcase-item:hover img {
    transform: scale(1.03);
}

.showcase-caption {
    margin-top: auto;
}

.showcase-caption h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.showcase-caption p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Light Mode Overrides */
[data-theme="light"] .benefit-list strong { color: var(--text-color); }
[data-theme="light"] .demo-form input { color: var(--text-color); background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .demo-form input::placeholder { color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .feature-card::before { background: radial-gradient(circle at top right, rgba(0,0,0,0.03) 0%, transparent 50%); }
[data-theme="light"] .btn-secondary { color: var(--text-color); border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .menu-toggle span { background-color: var(--text-color); }
[data-theme="light"] .nav-links.active { background: rgba(255,255,255,0.98); }
[data-theme="light"] header.scrolled { background: rgba(255,255,255,0.9); }
[data-theme="light"] .cta-box { box-shadow: 0 20px 80px rgba(0,0,0,0.05), inset 0 0 40px rgba(42, 200, 210, 0.05); }
[data-theme="light"] .glass-panel { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05); }
[data-theme="light"] footer { background: rgba(0,0,0,0.02); }