/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #1a1a1a; /* solid hex */
    background: #f2f5f9;
}
a { color: #0033cc; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.2; }

/* === UTILITY === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section__title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0a1a2b;
}
.section__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #3d4f5f;
}

/* === HEADER === */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a2a44;
}
.logo__moon { font-size: 2rem; }
.logo__text { letter-spacing: -0.5px; }

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav__link {
    color: #1f2a3a;
    font-weight: 500;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.nav__link:hover, .nav__link--active {
    color: #0033cc;
    border-bottom-color: #0033cc;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle__bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .nav--open { max-height: 500px; }
    .nav__list {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
}

/* === HERO === */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a1a2b 0%, #1a2f44 60%, #0f2a3f 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}
.hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #ffffff, #aaccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: 1.2rem;
    color: #c0d0e0;
    margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.btn--primary {
    background: #0033cc;
    color: #ffffff;
    border-color: #0033cc;
}
.btn--primary:hover {
    background: #002299;
    border-color: #002299;
    text-decoration: none;
}
.btn--secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.btn--secondary:hover {
    background: rgba(255,255,255,0.13);
    text-decoration: none;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}
.hero__grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 20px;
}
.hero__orbit {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: spin 12s linear infinite;
}
.hero__satellite {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #4c9aff;
    border-radius: 50%;
    box-shadow: 0 0 20px #4c9aff;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__visual { height: 200px; }
    .hero__title { font-size: 2.2rem; }
    .hero__actions { justify-content: center; }
}

/* === SERVICES === */
.services {
    padding: 5rem 0;
    background: #ffffff;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: #f8faff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e0e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.6s forwards;
}
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,51,204,0.08);
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.service-card__icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.service-card__title { font-size: 1.4rem; font-weight: 700; color: #0a1a2b; margin-bottom: 0.5rem; }
.service-card__desc { color: #3d4f5f; }

/* === ABOUT === */
.about {
    padding: 5rem 0;
    background: #f2f5f9;
}
.about__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.about__desc { font-size: 1.1rem; color: #2a3a4a; margin-bottom: 2rem; }
.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat { text-align: center; }
.stat__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0033cc;
    display: block;
}
.stat__label { font-size: 0.9rem; color: #3d4f5f; }
.about__visual { display: flex; justify-content: center; }
.about__shape {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #0033cc, #4c9aff);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@media (max-width: 768px) {
    .about__inner { grid-template-columns: 1fr; }
    .about__stats { grid-template-columns: repeat(2, 1fr); }
    .about__shape { width: 180px; height: 180px; }
}

/* === CONTACT === */
.contact {
    padding: 5rem 0;
    background: #ffffff;
}
.contact__form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.contact__field { display: flex; flex-direction: column; }
.contact__label { font-weight: 600; margin-bottom: 0.3rem; color: #0a1a2b; }
.contact__input, .contact__textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #d0d8e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafcff;
    transition: border-color 0.3s;
}
.contact__input:focus, .contact__textarea:focus {
    outline: none;
    border-color: #0033cc;
}
.contact__error {
    color: #cc0000;
    font-size: 0.85rem;
    min-height: 1.2rem;
}
.contact__submit { align-self: flex-start; }
.contact__success {
    text-align: center;
    color: #006600;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: #e6f7e6;
    border-radius: 12px;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .contact__row { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.footer {
    background: #0a1a2b;
    color: #c0d0e0;
    padding: 3rem 0;
}
.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}
.footer__company { font-weight: 600; color: #ffffff; }
.footer__address { font-style: normal; }
.footer__contact a { color: #8ab4ff; }
.footer__links { display: flex; gap: 1.5rem; justify-content: center; }
.footer__link { color: #8ab4ff; }
.footer__copyright { color: #7a8a9a; font-size: 0.9rem; }

/* === LEGAL PAGES === */
.legal-page {
    padding: 4rem 0;
    background: #ffffff;
    min-height: 60vh;
}
.legal-page__title {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    color: #0a1a2b;
}
.legal-page__date {
    color: #3d4f5f;
    margin-bottom: 2rem;
}
.legal-page__content {
    max-width: 800px;
}
.legal-page__content h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
    color: #0a1a2b;
}
.legal-page__content p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: #1f2a3a;
}

/* === SCROLL ANIMATION === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}