/* ============================================
   CSS Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --gray-lighter: #f1f5f9;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 120px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   Layout Components
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header h2 {
    margin-bottom: 16px;
    color: var(--dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-lighter);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-lighter);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
}

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

.language-switcher {
    display: flex;
    gap: 4px;
    background: var(--gray-lighter);
    padding: 4px;
    border-radius: 6px;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.lang-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    z-index: 10;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-image {
    position: relative;
    height: 600px;
    z-index: 10;
}

.hero-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 600px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--dark);
    overflow: hidden;
}

.mockup-screen {
    padding: 20px;
    height: 100%;
}

.mockup-header {
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    margin-bottom: 16px;
}

.mockup-content {
    height: calc(100% - 76px);
    background: url('teriai-app.png') no-repeat center center;
    background-size: cover;
    border-radius: 16px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 80px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 280px;
    left: -40px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 80px;
    right: -30px;
    animation-delay: 2s;
}

.card-icon {
    font-size: 2rem;
}

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

.card-desc {
    font-size: 0.75rem;
    color: var(--gray);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -250px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 100px;
    right: -200px;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -150px;
    left: 50%;
    animation-delay: 4s;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--section-padding) 0;
    background: var(--gray-lighter);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

.features-cta {
    text-align: center;
    margin-top: 60px;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: var(--section-padding) 0;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 31px;
    top: 70px;
    bottom: -60px;
    width: 2px;
    background: var(--gray-light);
}

.timeline-number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-content h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.7;
}

.timeline-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

.timeline-link:hover {
    color: var(--primary-dark);
}

/* ============================================
   Technology Section
   ============================================ */
.technology {
    padding: var(--section-padding) 0;
    background: var(--dark);
    color: var(--white);
}

.technology .section-header h2,
.technology .section-header p {
    color: var(--white);
}

.technology .badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.tech-column h4 {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--white);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tech-badge {
    font-size: 1.5rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    position: relative;
    padding: 120px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta h2 {
    margin-bottom: 24px;
}

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

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.orb-4 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    top: -200px;
    right: -100px;
}

.orb-5 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    bottom: -150px;
    left: -100px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 32px;
    background: var(--dark-light);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h4 {
    margin-bottom: 24px;
    color: var(--white);
}

.footer-column a {
    display: block;
    color: var(--gray-light);
    margin-bottom: 12px;
    font-size: 0.875rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column p {
    color: var(--gray-light);
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: var(--gray-light);
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        gap: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.active .language-switcher {
        margin: 12px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        height: 500px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        gap: 24px;
    }
    
    .timeline-number {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 23px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-mockup {
        width: 250px;
        height: 500px;
    }
}