/* ==================== DESIGN SYSTEM ==================== */

:root {
    /* Color Palette */
    --primary-600: #4F46E5;
    --primary-500: #6366F1;
    --primary-400: #818CF8;
    --primary-50: #EEF2FF;

    --purple-600: #7C3AED;
    --purple-500: #8B5CF6;

    --success-600: #16A34A;
    --success-500: #22C55E;
    --success-50: #F0FDF4;

    --error-600: #DC2626;
    --error-500: #EF4444;
    --error-50: #FEF2F2;

    --warning-600: #D97706;
    --warning-500: #F59E0B;
    --warning-50: #FEF3C7;

    --neutral-900: #111827;
    --neutral-800: #1F2937;
    --neutral-700: #374151;
    --neutral-600: #4B5563;
    --neutral-500: #6B7280;
    --neutral-400: #9CA3AF;
    --neutral-300: #D1D5DB;
    --neutral-200: #E5E7EB;
    --neutral-100: #F3F4F6;
    --neutral-50: #F9FAFB;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== TYPOGRAPHY ==================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== LAYOUT UTILITIES ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--neutral-700);
    border: 2px solid var(--neutral-200);
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn>span {
    position: relative;
    z-index: 1;
}

.btn svg {
    position: relative;
    z-index: 1;
}

/* ==================== NAVBAR ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) 0;
    animation: slideDown 0.5s ease-out;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    transition: width var(--transition-base);
}

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

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

.nav-link-cta {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    color: white;
    border-radius: var(--radius-md);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ==================== HERO SECTION ==================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    top: -250px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #EC4899, #F59E0B);
    bottom: -200px;
    left: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #22C55E, #6366F1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: var(--spacing-3xl) var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1.25rem;
    background: white;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-xl);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--neutral-200);
}

/* ==================== ABOUT SECTION ==================== */

.about-section {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-xl);
    background: white;
    border: 2px solid var(--neutral-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    margin-bottom: var(--spacing-lg);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ==================== CTA SECTION ==================== */

.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: var(--spacing-lg);
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary-600);
}

.cta-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-visual {
    position: relative;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-2xl);
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 0;
    left: 0;
    width: 200px;
    animation-delay: 0s;
}

.card-2 {
    top: 80px;
    right: 0;
    width: 220px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 0;
    left: 60px;
    width: 190px;
    animation-delay: 4s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.card-header {
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.card-body {
    color: var(--neutral-600);
    font-size: 0.875rem;
}

/* ==================== FOOTER ==================== */

.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo-text {
    color: white;
    -webkit-text-fill-color: white;
}

.footer-tagline {
    margin-top: var(--spacing-md);
    color: var(--neutral-400);
}

.footer-links {
    display: flex;
    gap: var(--spacing-3xl);
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.footer-column a {
    display: block;
    color: var(--neutral-400);
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--neutral-800);
    text-align: center;
    color: var(--neutral-500);
}

/* ==================== HAMBURGER MENU ==================== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neutral-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== RESPONSIVE ==================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

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

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navigation */
    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px var(--spacing-xl) var(--spacing-xl);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-slow);
        z-index: 1000;
        gap: var(--spacing-lg);
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        width: 100%;
        padding: var(--spacing-sm) 0;
    }

    .nav-link-cta {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-md);
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 100px 0 var(--spacing-3xl);
    }

    .hero-content {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-description {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-xl);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    /* CTA Section */
    .cta-section {
        padding: var(--spacing-2xl) 0;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .cta-visual {
        display: none;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-links {
        gap: var(--spacing-xl);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --spacing-3xl: 2rem;
        --spacing-2xl: 1.5rem;
    }

    /* Typography */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Stats */
    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    /* Feature cards */
    .feature-title {
        font-size: 1.125rem;
    }

    .feature-description {
        font-size: 0.9375rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 0.9375rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    /* Gradient orbs - reduce on mobile for performance */
    .gradient-orb {
        opacity: 0.3;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav-links {
        width: 100%;
        right: -100%;
    }

    .nav-links.active {
        right: 0;
    }
}