:root {
    /* Foundation Colors */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --bg-base: #f7f9fc;
    --text-main: #0a2540;
    --text-muted: #425466;

    /* Brand Colors - Stripe style */
    --primary: #635bff;
    --primary-hover: #0a2540;
    --secondary: #ffffff;
    --accent: #00d4ff;

    /* Gradients */
    --gradient-text: linear-gradient(135deg, #635bff 0%, #00d4ff 100%);
    --gradient-bg: linear-gradient(-45deg, #0a2540, #635bff, #00d4ff);

    /* Shadows & Border */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 15px 35px rgba(50,50,93,0.1), 0 5px 15px rgba(0,0,0,0.07);
    --shadow-xl: 0 50px 100px -20px rgba(50,50,93,0.25), 0 30px 60px -30px rgba(0,0,0,0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background canvas setup */
#gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    transform: skewY(-10deg);
    transform-origin: 0;
    background: var(--gradient-bg);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typography classes */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 91, 255, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.23);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(10, 37, 64, 0.05);
}

.btn-blur {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.arrow {
    margin-left: 6px;
    transition: transform 0.2s;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(247, 249, 252, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.logo-img {
    height: 32px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
    border-radius: 8px; /* Added rounded corners */
}

.nav-links {
    display: none;
    gap: 30px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-email {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 8px 16px;
    background: rgba(99, 91, 255, 0.08);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav-email:hover {
    background: rgba(99, 91, 255, 0.15);
    color: var(--primary-hover);
}

/* Hero Section */
.hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 160px 20px 100px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        padding-top: 200px;
    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 91, 255, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 400px;
    perspective: 1200px;
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    position: absolute;
    transform-style: preserve-3d;
}

.main-card {
    width: 100%;
    max-width: 380px;
    height: 250px;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%) rotateX(15deg) rotateY(-15deg);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translate(-50%, -50%) rotateX(15deg) rotateY(-15deg) translateY(0px); }
    50% { transform: translate(-50%, -50%) rotateX(15deg) rotateY(-15deg) translateY(-20px); }
    100% { transform: translate(-50%, -50%) rotateX(15deg) rotateY(-15deg) translateY(0px); }
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.data-row {
    height: 12px;
    background: #e3e8f4;
    border-radius: 6px;
    margin-bottom: 14px;
    width: 100%;
}

.data-row.loading {
    background: linear-gradient(90deg, #e3e8f4 25%, #f7f9fc 50%, #e3e8f4 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.data-row.short {
    width: 60%;
}

.ai-insight {
    margin-top: 24px;
    padding: 12px 16px;
    background: rgba(99, 91, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(99, 91, 255, 0.1);
}

.sub-card1 {
    width: 180px;
    height: 160px;
    bottom: 10px;
    right: 0px;
    transform: translateZ(60px) rotateX(10deg) scale(0.95);
    display: flex;
    align-items: flex-end;
    gap: 12px;
    justify-content: center;
    padding-bottom: 24px;
    animation: floating-delay 7s ease-in-out infinite;
}

@keyframes floating-delay {
    0% { transform: translateZ(60px) rotateX(10deg) scale(0.95) translateY(0px); }
    50% { transform: translateZ(60px) rotateX(10deg) scale(0.95) translateY(-15px); }
    100% { transform: translateZ(60px) rotateX(10deg) scale(0.95) translateY(0px); }
}

.chart-bar {
    width: 16px;
    background: var(--gradient-text);
    border-radius: 4px;
    transition: height 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.h70 { height: 70%; }
.h90 { height: 90%; }
.h40 { height: 40%; }
.h100 { height: 100%; }

/* Features Section */
.features {
    padding: 120px 20px;
    background: #fff;
    position: relative;
    z-index: 10;
}

.section-container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
}

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

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    background-size: cover;
    background-position: center;
}

.icon-ai { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.icon-data { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.icon-security { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }

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

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

/* Bottom CTA */
.bottom-cta {
    padding: 60px 20px 100px;
    background: #fff;
    position: relative;
    z-index: 10;
}

.cta-banner {
    max-width: 1140px;
    margin: 0 auto;
    background: var(--gradient-bg);
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.cta-banner h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-banner .btn-primary {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-banner .btn-primary:hover {
    background: #f7f9fc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.mt-4 {
    margin-top: 1rem;
}

/* Culture Section */
.culture-section {
    padding: 100px 20px;
    background: transparent;
    position: relative;
    z-index: 9;
}

.culture-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.culture-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 30px 0 60px;
    line-height: 1.8;
}

.culture-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.footer {
    background: #f7f9fc;
    padding: 80px 20px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

.footer-desc {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 280px;
}

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: rgba(10, 37, 64, 0.5);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
