/* ====== CSS RESET & BASE ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #243b68 0%, #050712 55%, #020308 100%);
    color: #f5f7ff;
    line-height: 1.6;
}

/* Scrollbar (optional) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050712;
}
::-webkit-scrollbar-thumb {
    background: #3a4a7b;
    border-radius: 4px;
}

/* ====== CONTAINERS ====== */
.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

/* ====== HEADER / NAV ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(
        to bottom,
        rgba(5, 7, 18, 0.95),
        rgba(5, 7, 18, 0.85),
        transparent
    );
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo-orbit {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #7dd3fc;
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.7);
    position: relative;
}
.logo-orbit::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    top: -4px;
    right: 4px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
}

.logo-text {
    font-size: 1.05rem;
}
.logo-text span {
    color: #7dd3fc;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #e5e7eb;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    transition: width 0.25s ease;
}
.nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.nav-link:hover::after {
    width: 100%;
}

/* ====== HERO SECTION ====== */
.hero-section {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.16) 0, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(129, 140, 248, 0.18) 0, transparent 40%),
        radial-gradient(circle at 30% 80%, rgba(248, 113, 113, 0.16) 0, transparent 45%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero-text {
    max-width: 640px;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-title span {
    background: linear-gradient(120deg, #38bdf8, #a855f7, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: #cbd5f5;
    max-width: 34rem;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.85);
}

/* ====== HERO VISUAL / PLANET ====== */
.hero-visual {
    justify-self: center;
    max-width: 360px;
    text-align: center;
}

.planet-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin-inline: auto;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.9));
    animation: float 6s ease-in-out infinite;
}

.planet-glow {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 60%);
    filter: blur(10px);
}

.planet {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 20% 25%, #f9fafb 0, #bae6fd 18%, #1d4ed8 35%, #020617 75%),
        radial-gradient(circle at 70% 70%, #22c55e 0, #15803d 18%, #0f172a 55%);
    background-blend-mode: screen;
    box-shadow:
        inset 0 -16px 28px rgba(15, 23, 42, 0.9),
        0 0 18px rgba(56, 189, 248, 0.8);
    overflow: hidden;
}

.planet::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image: radial-gradient(circle, rgba(15, 23, 42, 0.55), transparent 70%);
    mix-blend-mode: multiply;
}

.orbit {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.45);
}

/* Different orbit sizes */
.orbit-1 {
    transform: scale(1.15);
}
.orbit-2 {
    transform: scale(1.3);
    opacity: 0.75;
}
.orbit-3 {
    transform: scale(1.45);
    opacity: 0.55;
}

/* Satellites dots */
.satellite-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

.sat-1 {
    top: -5px;
    left: 50%;
    animation: orbit1 14s linear infinite;
}
.sat-2 {
    right: -5px;
    top: 50%;
    animation: orbit2 18s linear infinite;
}
.sat-3 {
    bottom: -5px;
    left: 25%;
    animation: orbit3 22s linear infinite;
}

.hero-caption {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.86rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.2s ease,
        color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.primary-btn {
    background: linear-gradient(120deg, #38bdf8, #a855f7);
    color: #0b1020;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 42px rgba(37, 99, 235, 0.6);
}

.ghost-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}
.ghost-btn:hover {
    background: rgba(15, 23, 42, 0.85);
}

.small-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
}

.secondary-btn {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e5e7eb;
}
.secondary-btn:hover {
    background: rgba(30, 64, 175, 0.8);
}

.disabled-btn {
    background: rgba(31, 41, 55, 0.9);
    color: #9ca3af;
    cursor: not-allowed;
}

/* ====== SECTIONS ====== */
.section {
    padding: 3.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2.2rem;
}
.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}
.section-header p {
    max-width: 540px;
    margin: 0.25rem auto 0;
    font-size: 0.94rem;
    color: #cbd5f5;
}

/* ====== VIEWS GRID ====== */
.section-views {
    position: relative;
}
.section-views::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 0, rgba(56, 189, 248, 0.1), transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.views-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.view-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 60%),
        rgba(15, 23, 42, 0.96);
    border-radius: 1.2rem;
    padding: 1.2rem 1.3rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transform: translateY(6px);
    opacity: 0;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        opacity 0.35s ease;
}

.view-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.95),
        0 0 26px rgba(37, 99, 235, 0.4);
    border-color: rgba(96, 165, 250, 0.9);
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.25), transparent 65%),
        rgba(15, 23, 42, 0.98);
}

.view-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.view-card h3 {
    font-size: 1.02rem;
}

.badge {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.6);
    color: #bfdbfe;
}

.badge.live {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

.card-desc {
    font-size: 0.86rem;
    color: #e5e7eb;
}

.card-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #cbd5f5;
}
.card-meta li::before {
    content: "• ";
    color: #38bdf8;
}

.card-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ====== FEATURES SECTION ====== */
.section-features {
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.35), transparent 60%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1.1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    opacity: 0;
    transform: translateY(6px);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.35s ease,
        border-color 0.35s ease;
}
.feature-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}
.feature-card p {
    font-size: 0.86rem;
    color: #e5e7eb;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
    border-color: rgba(96, 165, 250, 0.85);
}

/* ====== ABOUT SECTION ====== */
.section-about {
    position: relative;
}
.section-about::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 90%, rgba(248, 250, 252, 0.06), transparent 60%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 1.8rem;
}

.about-text,
.about-extra {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1.2rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.about-text p {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}
.about-text ul {
    margin-left: 1rem;
    font-size: 0.86rem;
}
.about-text li {
    list-style: disc;
}

.about-extra h3 {
    margin-bottom: 0.4rem;
    font-size: 0.98rem;
}
.tech-list {
    list-style: none;
    font-size: 0.86rem;
    margin-bottom: 0.7rem;
}
.tech-list li::before {
    content: "• ";
    color: #38bdf8;
}

/* ====== MODAL ====== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #020617;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    width: min(960px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
    animation: popIn 0.25s ease-out;
}

.modal-header {
    padding: 0.8rem 1.1rem 0.4rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}
.modal-header h3 {
    font-size: 0.98rem;
}

.modal-body {
    position: relative;
    flex: 1;
    padding: 0.8rem 1.1rem;
}

.modal-body iframe {
    width: 100%;
    height: 58vh;
    border: none;
    border-radius: 0.9rem;
    background: #020617;
}

.modal-footer {
    padding: 0.7rem 1.1rem 0.9rem;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    display: flex;
    justify-content: flex-end;
}

.modal-close {
    position: absolute;
    top: 0.35rem;
    right: 0.55rem;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
}
.modal-close:hover {
    color: #fca5a5;
}

/* ====== FOOTER ====== */
.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    background: rgba(3, 7, 18, 0.96);
    padding: 1.1rem 0 1.4rem;
    margin-top: 2rem;
}

.footer-content {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}
.footer-note {
    margin-top: 0.2rem;
    font-size: 0.76rem;
}

/* ====== SCROLL REVEAL ====== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ====== ANIMATIONS ====== */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes orbit1 {
    from {
        transform: rotate(0deg) translateX(0);
    }
    to {
        transform: rotate(360deg) translateX(0);
    }
}
@keyframes orbit2 {
    from {
        transform: rotate(360deg) translateX(0);
    }
    to {
        transform: rotate(0deg) translateX(0);
    }
}
@keyframes orbit3 {
    from {
        transform: rotate(0deg) translateX(0);
    }
    to {
        transform: rotate(-360deg) translateX(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 880px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
        gap: 2.2rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-caption {
        max-width: 320px;
        margin-inline: auto;
    }

    .main-nav {
        display: none; /* Simple: hide nav on small screens; can add mobile menu later */
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 3.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .modal-body iframe {
        height: 55vh;
    }
}
