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

:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    --accent-50: #fdf4ff;
    --accent-100: #fae8ff;
    --accent-200: #f5d0fe;
    --accent-300: #f0abfc;
    --accent-400: #e879f9;
    --accent-500: #d946ef;
    --accent-600: #c026d3;
    --accent-700: #a21caf;
    --accent-800: #86198f;
    --accent-900: #701a75;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0;
    margin: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: fit-content;
    flex-shrink: 0;
}

.logo-img {
    height: 4rem;
    max-height: 4rem;
    max-width: 10rem;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(to right, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0.75rem;
}

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

.nav-menu .btn-nav {
    background: var(--primary-600);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.nav-menu .btn-nav:hover {
    background: var(--primary-700);
    color: white !important;
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
@media (max-width: 767px) {
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        gap: 0.5rem;
        border-top: 1px solid var(--gray-200);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 6rem;
    background: linear-gradient(to bottom right, var(--primary-600), var(--primary-700), var(--accent-700));
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='white' stroke-width='0.5' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 10;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2.5rem;
    line-height: 1.35;
}

.gradient-text {
    background: linear-gradient(to right, #fde047, var(--accent-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description-line-1,
.description-line-2 {
    display: block;
}

.description-line-1 {
    font-weight: 500;
}

.description-line-2 {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.hero-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to top, white, transparent);
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    .hero-description {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.0rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-700);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--gray-100);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.btn-accent {
    background: var(--accent-600);
    border: 2px solid var(--accent-600);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background: var(--accent-700);
    transform: scale(1.05);
}

.btn-unit {
    background: white;
    color: var(--primary-700);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-unit:hover {
    background: var(--gray-100);
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Business Units */
.business-units {
    background: white;
}

.units-grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .units-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.unit-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 2.5rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.unit-card .btn {
    margin-top: auto;
}

.unit-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.unit-card-tech {
    background: linear-gradient(to bottom right, var(--primary-500), var(--primary-700));
}

.unit-card-consulting {
    background: linear-gradient(to bottom right, var(--accent-500), var(--accent-700));
}

.unit-card-community {
    background: linear-gradient(to bottom right, #10b981, #059669);
}

.unit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.unit-card:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.unit-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.unit-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.unit-logo-container {
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 3.5rem;
}

.unit-logo {
    max-height: 3.5rem;
    width: auto;
    object-fit: contain;
}

.unit-logo.invert {
    filter: brightness(0) invert(1);
}

.unit-logo-svg {
    filter: brightness(0) invert(1);
    max-width: 120px;
    height: auto;
}

.unit-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.unit-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.05em;
}

.unit-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 10;
    line-height: 1.3;
}

.unit-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    letter-spacing: 0.01em;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.units-integration {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
}

.integration-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.integration-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.integration-description {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.8;
    max-width: 48rem;
    margin: 0 auto;
}

.integration-description strong {
    color: var(--gray-900);
    font-weight: 600;
}

@media (min-width: 768px) {
    .integration-title {
        font-size: 2.5rem;
    }
    .integration-description {
        font-size: 1.25rem;
    }
}

/* Partners Section */
.partners {
    background: linear-gradient(to bottom, var(--gray-50), white);
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner-card {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
    display: block;
}

.partner-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.partner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--primary-50), var(--accent-50));
    opacity: 0;
    border-radius: 0.75rem;
    transition: opacity 0.3s;
}

.partner-card:hover::before {
    opacity: 1;
}

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

.partner-logo-container {
    margin-bottom: 0.75rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.partner-logo-emoji {
    font-size: 3rem;
}

.partner-logo-img {
    max-height: 3rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.partner-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.partner-logo-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.partner-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.partner-card:hover h3 {
    color: var(--primary-700);
}

.partner-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-card:hover p {
    color: var(--gray-700);
}

.partner-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.partner-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: var(--primary-100);
    color: var(--primary-700);
}

.partner-card svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
    transition: all 0.2s;
}

.partner-card:hover svg {
    color: var(--primary-600);
    transform: translateX(0.25rem);
}

/* Process/Approach Section */
.process {
    background: white;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
    .process-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: -2rem;
        transform: translateY(-50%);
        z-index: 5;
    }
    .process-arrow svg {
        width: 2rem;
        height: 2rem;
        color: var(--primary-300);
    }
}

.process-step {
    position: relative;
}

.process-step-content {
    background: linear-gradient(to bottom right, var(--gray-50), white);
    border-radius: 0.75rem;
    padding: 2rem;
    border: 2px solid var(--gray-100);
    transition: all 0.3s;
    height: 100%;
}

.process-step:hover .process-step-content {
    border-color: var(--primary-300);
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.process-icon {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
}

.process-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3.75rem;
    font-weight: bold;
    color: var(--primary-100);
    transition: color 0.3s;
}

.process-step:hover .process-number {
    color: var(--primary-200);
}

.process-step-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.process-step:hover .process-step-content h3 {
    color: var(--primary-700);
}

.process-step-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* News/Blog Section */
.news {
    background: linear-gradient(to bottom, white, var(--gray-50));
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.news-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 12rem;
    background: linear-gradient(to bottom right, var(--primary-500), var(--accent-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.75rem;
    opacity: 0.5;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--primary-100);
    color: var(--primary-700);
}

.news-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.news-card:hover h3 {
    color: var(--primary-700);
}

.news-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--primary-700);
}

.news-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Links */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.link-arrow:hover {
    color: var(--primary-700);
}

.link-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Team Highlights (Hidden) */
.team.hidden {
    display: none;
}

/* News/Blog Section (Hidden) */
.news.hidden {
    display: none;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-col-wide {
        grid-column: span 2;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 3rem;
    max-height: 3rem;
    max-width: 10rem;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.footer-logo-text {
    background: linear-gradient(to right, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1rem;
    max-width: 28rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--gray-400);
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--primary-400);
}

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-external-links {
    display: flex;
    gap: 1.5rem;
}

.footer-external-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-external-links a:hover {
    color: white;
}
