/* --- Global --- */
:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 35, 0.6);
    --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --accent-color: #00f260;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 20px rgba(0, 198, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
      radial-gradient(circle at 15% 50%, rgba(0, 114, 255, 0.15), transparent 25%),
      radial-gradient(circle at 85% 30%, rgba(0, 242, 96, 0.1), transparent 25%);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.btn-nav {
    padding: 10px 25px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid rgba(0, 198, 255, 0.5);
    color: #00c6ff;
    cursor: pointer;
    transition: 0.3s;
}

.btn-nav:hover {
    background: rgba(0, 198, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.cube {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.cube-1 { top: 20%; left: 15%; animation-delay: 0s; transform: rotate(15deg); }
.cube-2 { bottom: 20%; right: 15%; width: 80px; height: 80px; animation-delay: 1s; transform: rotate(-10deg); }

@keyframes float {
    0% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
    100% { transform: translateY(0) rotate(15deg); }
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero h1 span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 4px;
    color: #00c6ff;
    text-transform: uppercase;
    -webkit-text-fill-color: #00c6ff;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 15px 40px;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.4);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 114, 255, 0.6);
}

.btn-secondary {
    padding: 15px 40px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.features,
.demo-section,
.pain-section,
.metrics-section,
.workflow,
.pricing,
.contact-section,
.ai-ecosystem {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--neon-glow);
    border-color: rgba(0, 198, 255, 0.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 198, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #00c6ff;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Pain Section */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.pain-card {
    border-radius: 22px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
}

.pain-card span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: var(--accent-color);
    text-transform: uppercase;
}

.pain-card h3 {
    margin-bottom: 12px;
}

.pain-card p {
    color: var(--text-muted);
}

/* Demo section */
.demo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.demo-text {
    flex: 1;
    min-width: 300px;
}

.demo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #00f260, #0575e6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-visual {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.scan-circle {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(0, 198, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    animation: pulse 3s infinite;
}

.scan-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #00c6ff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00c6ff;
}

@keyframes pulse {
    0% { width: 200px; height: 200px; opacity: 1; }
    100% { width: 300px; height: 300px; opacity: 0; }
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.metric-card {
    border-radius: 24px;
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border: var(--glass-border);
    min-height: 200px;
}

.metric-card strong {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.metric-card small {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
}

/* Workflow */
.workflow {
    background: rgba(255,255,255,0.02);
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.workflow-step {
    padding: 30px;
    border-radius: 18px;
    border: var(--glass-border);
    background: rgba(5,5,5,0.6);
    position: relative;
}

.workflow-step::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    right: 20px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(0, 198, 255, 0.15);
    border: 1px solid rgba(0,198,255,0.4);
}

/* Pricing */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.plan {
    border-radius: 22px;
    padding: 35px;
    border: var(--glass-border);
    background: rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan h3 {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.plan-price {
    font-size: 2.2rem;
    font-weight: bold;
}

.plan ul {
    list-style: none;
    color: var(--text-muted);
}

.plan ul li {
    margin-bottom: 8px;
}

.plan button {
    margin-top: auto;
    border-radius: 30px;
    padding: 12px 25px;
    border: 1px solid rgba(0,198,255,0.4);
    background: transparent;
    color: #00c6ff;
    cursor: pointer;
}

/* Contact */
.contact-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.contact-card {
    padding: 40px;
    border-radius: 24px;
    border: var(--glass-border);
    background: rgba(5,5,5,0.6);
}

.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card input,
.contact-card textarea {
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    color: #fff;
}

.ai-ecosystem p {
    color: var(--text-muted);
    text-align: center;
    max-width: 760px;
    margin: 10px auto 40px;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.ai-logo {
    border-radius: 18px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: var(--glass-border);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Footer */
footer {
    border-top: var(--glass-border);
    padding: 50px;
    text-align: center;
    background: rgba(5, 5, 5, 0.8);
    margin-top: 50px;
    color: var(--text-muted);
}

.footer-logo {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-links a:hover {
    color: #00c6ff;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.copyright {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Error Page */
.error-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.error-card {
    max-width: 720px;
    width: 100%;
    padding: 64px 48px;
    border-radius: 40px;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(28px);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.65);
    position: relative;
    overflow: hidden;
}

.error-card::before,
.error-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
}

.error-card::before {
    width: 260px;
    height: 260px;
    background: rgba(0, 245, 196, 0.25);
    top: -60px;
    right: -40px;
}

.error-card::after {
    width: 200px;
    height: 200px;
    background: rgba(2, 123, 255, 0.25);
    bottom: -80px;
    left: -20px;
}

.error-code {
    font-size: clamp(80px, 14vw, 180px);
    font-weight: 900;
    letter-spacing: 0.15em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-desc {
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.error-actions button,
.error-actions a {
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    nav { padding: 20px; }
    .nav-links { display: none; }
    .cube { display: none; }
}

@media (max-width: 640px) {
    .error-card {
        padding: 42px 30px;
        border-radius: 28px;
    }

    .error-actions {
        flex-direction: column;
    }
}

