@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    /* Modern Teal Theme - Matching Designer.png */
    --primary-teal: #14B8A6;
    --teal-dark: #0D9488;
    --teal-light: #2DD4BF;
    --teal-lighter: #CCFBF1;

    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #F3F4F6;
    --bg-section: #FAFBFC;

    --text-black: #1F2937;
    --text-dark: #374151;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;

    --border-gray: #E5E7EB;
    --border-light: #F3F4F6;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-teal: 0 4px 16px rgba(20, 184, 166, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-teal);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link:hover {
    color: var(--primary-teal);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-top: none;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    animation: dropdownSlide 0.3s ease-out;
    overflow: hidden;
    z-index: 1001;
    border-radius: 0 0 12px 12px;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 0.4s ease-out forwards;
}

.dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dropdown-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-teal);
    padding-left: 2rem;
    border-left-color: var(--primary-teal);
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: var(--teal-lighter);
    border-radius: 50px;
    border: 1px solid var(--teal-light);
}

.user-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.logout-btn {
    padding: 8px 20px;
    background: var(--primary-teal);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--teal-dark);
    box-shadow: 0 4px 12px rgba(11, 169, 132, 0.3);
    transform: translateY(-2px);
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Backgrounds */
.section-white {
    background: var(--bg-white);
}

.section-gray {
    background: var(--bg-section);
}

.section-light {
    background: var(--bg-light);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 4rem 2rem;
}

/* Hero with Split Layout (Left text, Right visual) */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 4rem 2rem;
    text-align: left;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 968px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out;
}

/* Stylized Logo Section */
.hero-logo-section {
    background: #1f3a5f;
    border-radius: 24px;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo-section .tagline {
    color: rgba(220, 225, 235, 0.7);
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    -webkit-text-fill-color: rgba(220, 225, 235, 0.7);
}

.logo-text {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 200;
    letter-spacing: 0.25em;
    color: #E8ECF2;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 2rem;
    line-height: 1;
}

.logo-text .logo-char-e {
    display: inline-block;
    font-size: 0.85em;
    letter-spacing: 0;
    vertical-align: baseline;
    line-height: 1;
    transform: scaleX(0.75);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeInUp 1s ease-out 0.2s both;
    max-width: 700px;
}

.tech-accent {
    color: var(--primary-teal);
    font-weight: 700;
}

/* Statistics Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: var(--bg-white);
    border: none;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Content Pages */
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    letter-spacing: -1px;
}

.content-section {
    background: var(--bg-white);
    border: none;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.content-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.content-section h2 {
    color: var(--text-black);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-teal);
    border-radius: 2px;
}

.content-section p {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-white);
    border: none;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 0;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Models Grid - Derivatives Page */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.model-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: none;
    border-radius: 16px;
    padding: 3rem 2rem;
    min-height: 180px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

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

.model-card h2 {
    color: var(--text-black);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.model-card:hover h2 {
    color: var(--primary-teal);
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
}

.cta-button:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in.animate-in {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Canvas elements (hide them in light theme) */
#particles-canvas,
#stars-canvas {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .company-name {
        font-size: 5rem;
    }

    .logo-text {
        font-size: 3.5rem;
    }

    .page-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .company-name {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .logo-text {
        font-size: 2.5rem;
    }

    .hero-logo-section {
        padding: 4rem 1.5rem;
        border-radius: 16px;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    nav {
        padding: 0 1rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid var(--border-gray);
    }

    .dropdown-menu {
        position: static;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-light);
    }

    .content-section {
        padding: 2rem;
    }

    .features-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .hero-logo-section {
        padding: 3rem 1rem;
    }

    .hero-logo-section .tagline {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }

    .tagline {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .model-card h2 {
        font-size: 1.3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--teal-lighter);
    color: var(--text-black);
}

/* Get Started Button (Primary CTA in Nav) */
.btn-get-started {
    padding: 10px 24px;
    background: var(--primary-teal);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-get-started:hover {
    background: var(--teal-dark);
    box-shadow: 0 4px 12px rgba(11, 169, 132, 0.3);
    transform: translateY(-2px);
}

/* Analytics/Visual Card */
.analytics-card {
    background: var(--bg-white);
    border: none;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Metric Display */
.metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--primary-teal);
}

.metric-change.negative {
    color: #EF4444;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 2rem; padding-bottom: 2rem; }
.py-4 { padding-top: 3rem; padding-bottom: 3rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 2rem; padding-right: 2rem; }
.px-4 { padding-left: 3rem; padding-right: 3rem; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green {
    background: var(--teal-lighter);
    color: var(--primary-teal);
}

.badge-gray {
    background: var(--bg-gray);
    color: var(--text-gray);
}
