:root {
    --navy: #003466;
    --electric: #0066cc;
    --cream: #faf6ed;
    --charcoal: #1a1a1a;
    --slate: #64748b;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}

.hero {
    min-height: 100vh;
    background: var(--cream);
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

.grid-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,52,102,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,52,102,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

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

.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,52,102,0.3), transparent);
    top: -150px; right: -150px;
}

.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,102,204,0.2), transparent);
    bottom: -100px; left: -100px;
    animation-delay: 2s;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text { animation: slideUp 1s ease-out; }

h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.highlight {
    color: var(--navy);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0.1em;
    width: 100%; height: 0.15em;
    background: var(--electric);
    transform: scaleX(0);
    transform-origin: right;
    animation: underlineExpand 1s ease-out 0.5s forwards;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--slate);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 500;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.7s both;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.01em;
    border-radius: 8px;
}

.btn-primary {
    background: var(--navy);
    color: var(--cream);
    box-shadow: 0 4px 20px rgba(0,52,102,0.3);
}

.btn-primary:hover {
    background: var(--electric);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,52,102,0.4);
}

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

.btn-secondary:hover {
    background: rgba(0,52,102,0.05);
    transform: translateY(-2px);
}

.arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(5px); }

.hero-visual { animation: fadeInScale 1.2s ease-out 0.3s both; }
.logo-container { padding: 3rem; }

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    animation: logoFloat 6s ease-in-out infinite;
}

.features, .cities {
    padding: 8rem 2rem;
    background: var(--cream);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--slate);
    line-height: 1.7;
}

.features-grid, .cities-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.features-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cities-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 4rem; gap: 1.5rem; }

.feature-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(0,102,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--navy);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-box:hover::before { transform: scaleX(1); }

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,52,102,0.15);
    border-color: var(--navy);
}

.feature-icon-wrapper {
    width: 60px; height: 60px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    background: var(--navy);
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon-wrapper::before { transform: scale(1.2); }

.icon-network::before { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.icon-knowledge::before { border-radius: 50%; }
.icon-innovation::before { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.icon-history::before { clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); }

.feature-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--slate);
    line-height: 1.8;
    font-size: 1.05rem;
}

.history {
    padding: 4rem 2rem;
    background: var(--cream);
    border-top: 1px solid rgba(0,52,102,0.1);
}

.history-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.history .section-label {
    color: var(--navy);
    margin-bottom: 1rem;
}

.history-text {
    color: var(--slate);
    font-size: 1.15rem;
    line-height: 1.8;
}

.community {
    padding: 8rem 2rem;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 50px 50px;
    animation: patternMove 30s linear infinite;
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.community-header {
    text-align: center;
    margin-bottom: 5rem;
}

.community-header .section-label { color: var(--electric); }
.community-header .section-title { color: var(--cream); }
.community-header .section-description { color: rgba(255,255,255,0.7); }

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.social-link {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 3rem;
    text-decoration: none;
    color: var(--cream);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.social-icon-wrapper {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon-wrapper {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.social-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.social-text {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    font-size: 1.05rem;
}

.social-arrow {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.social-link:hover .social-arrow {
    opacity: 1;
    transform: translateX(8px);
}

.cities-container { max-width: 1200px; margin: 0 auto; }

.city-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.city-card.city-featured {
    background: linear-gradient(135deg, rgba(0,52,102,0.03), rgba(0,52,102,0.02));
    border: 2px solid rgba(0,52,102,0.2);
}

.city-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--navy);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--navy);
    transition: height 0.3s ease;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border-color: rgba(0,52,102,0.3);
}

.city-card:hover::before { height: 100%; }

.city-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
}

.legal {
    padding: 3rem 2rem;
    background: var(--cream);
}

.legal-container { max-width: 900px; margin: 0 auto; }

.legal-toggle {
    background: transparent;
    border: none;
    color: var(--slate);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Manrope', sans-serif;
    transition: color 0.3s ease;
}

.legal-toggle:hover { color: var(--navy); }
.legal-toggle-icon { transition: transform 0.3s ease; }
.legal-toggle.active .legal-toggle-icon { transform: rotate(180deg); }

.legal-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.legal-box.show {
    max-height: 800px;
    opacity: 1;
    margin-top: 1rem;
    border-left: 4px solid var(--navy);
}

.legal-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2rem;
}

.legal-paragraph {
    color: var(--slate);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.legal-paragraph:last-child { margin-bottom: 0; }

footer {
    background: var(--navy);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--cream); }

@keyframes gridMove { to { transform: translate(60px, 60px); } }
@keyframes float { 50% { transform: translate(30px, -30px) scale(1.1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } }
@keyframes underlineExpand { to { transform: scaleX(1); transform-origin: left; } }
@keyframes logoFloat { 50% { transform: translateY(-20px) rotate(2deg); } }
@keyframes patternMove { to { transform: translate(50px, 50px); } }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-description { margin: 0 auto 3rem; }
    .cta-group { justify-content: center; }
    .logo-container { max-width: 450px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .hero, .features, .community, .cities, .legal, .history { padding: 4rem 1.5rem; }
    h1 { font-size: 2.5rem; }
    .btn { padding: 1rem 2rem; font-size: 1rem; }
    .feature-box, .social-link { padding: 2rem; }
    .section-title { font-size: 2rem; }
    .cities-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
    .city-card { padding: 1.5rem; }
    .city-name { font-size: 1.2rem; }
}
