/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-charcoal: #111827;
    --color-deep-blue: #1D4ED8;
    --color-sky-blue: #60A5FA;
    --color-soft-gray: #D1D5DB;
    --color-ivory: #F9FAFB;
    --color-slate: #475569;

    --primary-color: var(--color-deep-blue);
    --secondary-color: var(--color-ivory);
    --accent-color: var(--color-sky-blue);
    --text-primary: var(--color-charcoal);
    --text-secondary: var(--color-slate);
    --text-light: rgba(71, 85, 105, 0.72);
    --border-color: var(--color-soft-gray);
    --background-color: var(--color-ivory);
    --background-light: #ffffff;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 8px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(249, 250, 251, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.25);
    border: 2px solid rgba(249, 250, 251, 0.75);
    background: var(--color-ivory);
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    background:
        radial-gradient(120% 120% at 12% 18%, rgba(96, 165, 250, 0.45) 0%, transparent 60%),
        radial-gradient(140% 140% at 90% 40%, rgba(29, 78, 216, 0.6) 0%, transparent 65%),
        var(--color-charcoal);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(29, 78, 216, 0.85) 55%, rgba(17, 24, 39, 0.92) 100%);
    z-index: 0;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: center;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(249, 250, 251, 0.8);
}

.hero-kicker::before {
    content: '';
    width: 32px;
    height: 2px;
    background: rgba(96, 165, 250, 0.7);
}

.hero-title {
    font-size: clamp(2.8rem, 3vw + 1rem, 4rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    color: var(--secondary-color);
}

.hero-accent {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(249, 250, 251, 0.8);
    max-width: 560px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero .btn-primary:hover {
    background: rgba(96, 165, 250, 0.15);
    color: var(--secondary-color);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(17, 24, 39, 0.4);
    transform: translateY(-2px);
}

.btn-link {
    color: rgba(249, 250, 251, 0.8);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    transition: var(--transition);
}

.btn-link::after {
    content: '>';
    transition: var(--transition);
}

.btn-link:hover {
    color: #ffffff;
}

.btn-link:hover::after {
    transform: translateX(4px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tag {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: rgba(249, 250, 251, 0.85);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
}

.hero-aside {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(160deg, rgba(249, 250, 251, 0.16) 0%, rgba(96, 165, 250, 0.12) 100%);
    border: 1px solid rgba(209, 213, 219, 0.2);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(26px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-status {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(249, 250, 251, 0.7);
}

.hero-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.7);
}

.hero-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-card-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: rgba(249, 250, 251, 0.8);
}

.list-label {
    font-weight: 500;
}

.list-value {
    font-weight: 600;
    color: rgba(249, 250, 251, 0.8);
}

.list-value.positive {
    color: #34d399;
}

.list-value.warning {
    color: #facc15;
}

.hero-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(249, 250, 251, 0.85);
    background: rgba(96, 165, 250, 0.5);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
    margin-left: -10px;
    position: relative;
}

.avatar:first-child {
    margin-left: 0;
}

.card-caption {
    font-size: 0.85rem;
    color: rgba(249, 250, 251, 0.7);
}

/* Sections */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Core Functions Section */
.core-functions {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-ivory) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.functions-bg-logo {
    position: absolute;
    top: 50%;
    right: -140px;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
    filter: blur(0.5px);
}

.bg-logo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.3) 0%, transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(29, 78, 216, 0.25) 0%, transparent 65%),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(209, 213, 219, 0.2);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
}

.core-functions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.functions-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.functions-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.functions-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.function-card {
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.function-card:hover::before {
    transform: scaleX(1);
}

.function-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.function-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.function-icon span {
    font-size: 2.5rem;
    filter: grayscale(1) brightness(10);
}

.function-card:hover .function-icon {
    transform: scale(1.1) rotate(5deg);
}

.function-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.function-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Technology Section */
.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.tech-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-icon {
    color: var(--primary-color);
    font-weight: 700;
}

.tech-visual {
    display: flex;
    justify-content: center;
}

.tech-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stack-item {
    background: var(--background-light);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stack-item:hover {
    background: var(--secondary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

/* About Section */
.about {
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
}

.about-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.about-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    border: 4px solid rgba(249, 250, 251, 0.85);
    transition: var(--transition);
    background: var(--color-ivory);
}

.about-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.about-logo-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-feature {
    text-align: center;
    padding: 32px 24px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-feature:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.about-feature .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.about-feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    transition: var(--transition);
    background: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--background-light);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.2);
    border: 2px solid rgba(249, 250, 251, 0.7);
    background: var(--color-ivory);
}

.footer-text {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 90px;
        min-height: auto;
    }
    
    .hero-container {
        gap: 32px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }
    
    .hero-description {
        font-size: 1.05rem;
        max-width: 100%;
    }
    
    .hero-container {
        gap: 32px;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-main {
        align-items: center;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .hero-aside {
        justify-content: center;
    }
    
    .hero-card {
        max-width: 420px;
        padding: 28px 24px;
        margin: 0 auto;
    }
    
    .functions-bg-logo {
        right: -150px;
    }
    
    .bg-logo {
        width: 200px;
        height: 200px;
    }
    
    .about-logo {
        width: 90px;
        height: 90px;
        border-radius: 24px;
    }
    
    .about-logo-section h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .functions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .functions-header h2 {
        font-size: 2.2rem;
    }
    
    .function-card {
        padding: 32px 24px;
    }
    
    .tech-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav {
        padding: 0 16px;
    }
    
    section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 70px;
    }
    
    .hero-container {
        gap: 28px;
    }
    
    .hero-main {
        gap: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .btn-link {
        padding: 12px 0;
        justify-content: center;
    }
    
    .hero-tags {
        gap: 8px;
    }
    
    .hero-card {
        width: 100%;
    }
    
    .functions-bg-logo {
        display: none;
    }
    
    .about-logo-section {
        gap: 20px;
    }
    
    .about-logo {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }
    
    .about-logo-section h2 {
        font-size: 1.8rem;
    }
}
