@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --background: #050914;
    --background-light: #080e1b;
    --surface: #0b1424;
    --surface-light: #101d30;
    --cyan: #42d9ff;
    --blue: #477bff;
    --text: #f0f5ff;
    --muted: #95a5bd;
    --border: rgba(130, 166, 210, 0.15);
    --container: 1160px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.gradient-text {
    color: var(--cyan);
    background: linear-gradient(100deg, #53e5ff 0%, #659aff 65%, #a1a9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 110px 0;
}

.section-index {
    display: block;
    margin-bottom: 20px;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.3px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-heading h2,
.group-container h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.16;
    letter-spacing: -1.5px;
}

.section-heading > p {
    max-width: 600px;
    margin-top: 17px;
    color: var(--muted);
}

/* Navigation */

.header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(5, 9, 20, 0.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.logo span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 31px;
    list-style: none;
}

.nav-links a {
    color: #b6c2d4;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.nav-links .nav-contact {
    padding: 9px 17px;
    border: 1px solid rgba(66, 217, 255, 0.45);
    border-radius: 6px;
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Hero */

.hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 80% 40%, rgba(28, 91, 157, 0.19), transparent 42%),
        linear-gradient(135deg, #050914 20%, #081326 100%);
}

.hero-grid,
.visual-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(66, 217, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 217, 255, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 70px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #a7bad2;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.status-dot,
.branch-indicator {
    width: 7px;
    height: 7px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(66, 217, 255, 0.75);
}

.hero h1 {
    margin-top: 27px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.6rem, 8vw, 6.6rem);
    font-weight: 600;
    line-height: 0.99;
    letter-spacing: -5px;
}

.hero-description {
    max-width: 590px;
    margin-top: 27px;
    color: #a5b4ca;
    font-size: 1.04rem;
    line-height: 1.9;
}

.hero-buttons,
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #03101b;
    background: var(--cyan);
}

.button-primary:hover {
    background: #91edff;
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(157, 185, 220, 0.26);
}

.button-secondary:hover {
    background: rgba(66, 217, 255, 0.07);
    border-color: var(--cyan);
}

.hero-footer {
    max-width: 530px;
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 75px;
    color: #667d99;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.hero-line {
    height: 1px;
    flex: 1;
    background: rgba(110, 151, 197, 0.27);
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    right: -160px;
    top: 12%;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(66, 217, 255, 0.11);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-two {
    right: -65px;
    top: 23%;
    width: 330px;
    height: 330px;
    border-color: rgba(88, 135, 255, 0.12);
}

/* About */

.about-section {
    background: #070d19;
    border-top: 1px solid rgba(130, 166, 210, 0.08);
    border-bottom: 1px solid rgba(130, 166, 210, 0.08);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 75px;
    align-items: center;
}

.about-main p {
    max-width: 640px;
    margin-bottom: 20px;
    color: var(--muted);
}

.about-main .large-text {
    color: #e9f2ff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    line-height: 1.5;
}

.about-panel {
    position: relative;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(66, 217, 255, 0.13), transparent 43%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.panel-symbol {
    margin-bottom: 40px;
    color: var(--cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.panel-symbol span {
    color: #718cff;
}

.panel-label {
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-panel h3 {
    margin-top: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
}

.about-panel p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.91rem;
}

.panel-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: #71849e;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Technology */

.technology-section {
    background: var(--background);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.technology-card {
    position: relative;
    min-height: 310px;
    padding: 27px 22px;
    overflow: hidden;
    background: linear-gradient(150deg, #0b1526, #080f1c);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.technology-card:hover {
    transform: translateY(-5px);
    border-color: rgba(66, 217, 255, 0.45);
}

.tech-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #50627b;
    font-size: 0.68rem;
    letter-spacing: 1px;
}

.tech-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    color: var(--cyan);
    background: rgba(66, 217, 255, 0.07);
    border: 1px solid rgba(66, 217, 255, 0.19);
    border-radius: 8px;
    font-size: 1.6rem;
}

.technology-card h3 {
    margin-bottom: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    line-height: 1.4;
}

.technology-card p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.8;
}

.tech-label {
    display: block;
    margin-top: 22px;
    color: #6284a8;
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Projects */

.projects-section {
    background: #070d19;
    border-top: 1px solid rgba(130, 166, 210, 0.08);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    min-width: 0;
    overflow: hidden;
    background: #0a1322;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(66, 217, 255, 0.42);
}

/* EDITH Phase-1 image */

.project-image {
    position: relative;
    height: 275px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(25, 101, 149, 0.2), transparent 70%),
        #060c18;
    border-bottom: 1px solid var(--border);
}

.project-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.edith-card:hover .project-image img {
    transform: scale(1.035);
}

.image-corner {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    padding: 4px 8px;
    color: #8ceaff;
    background: rgba(5, 9, 20, 0.8);
    border: 1px solid rgba(66, 217, 255, 0.25);
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.image-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: #8ceaff;
    font-size: 0.78rem;
    letter-spacing: 2px;
}

.image-missing .image-fallback {
    display: flex;
}

.fallback-symbol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 700;
}

.fallback-symbol span {
    color: #718cff;
}

.image-fallback small {
    color: #667d99;
    font-size: 0.6rem;
    letter-spacing: 1px;
}

.project-content {
    padding: 25px;
}

.project-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.project-category,
.project-status {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-category {
    color: #8298b4;
}

.project-status {
    color: var(--cyan);
}

.project-content h3 {
    margin-top: 17px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    line-height: 1.3;
}

.project-content > p {
    min-height: 100px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.85;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tags span {
    padding: 5px 10px;
    color: #9cb8d4;
    background: rgba(115, 158, 210, 0.07);
    border: 1px solid rgba(130, 166, 210, 0.17);
    border-radius: 4px;
    font-size: 0.7rem;
}

.project-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: #71849e;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-bottom b {
    color: var(--cyan);
}

/* Project illustrations */

.project-visual {
    position: relative;
    height: 275px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(28, 87, 164, 0.18), transparent 65%),
        #060c18;
    border-bottom: 1px solid var(--border);
}

.project-visual .visual-grid {
    background-size: 30px 30px;
    opacity: 0.7;
}

.visual-top-label,
.visual-code,
.visual-caption {
    position: absolute;
    z-index: 2;
    color: #6384a6;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.visual-top-label {
    top: 17px;
    left: 18px;
}

.visual-code {
    right: 18px;
    bottom: 16px;
}

.ai-interface {
    position: relative;
    z-index: 1;
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
}

.ai-orb {
    position: relative;
    width: 125px;
    height: 125px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(66, 217, 255, 0.65);
    border-radius: 50%;
    box-shadow:
        0 0 35px rgba(66, 217, 255, 0.09),
        inset 0 0 35px rgba(66, 217, 255, 0.08);
}

.ai-orb::before,
.ai-orb::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(66, 217, 255, 0.24);
    border-radius: 50%;
}

.ai-orb::before {
    inset: 10px;
}

.ai-orb::after {
    inset: -13px;
    border-style: dashed;
}

.ai-orb span {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #a0f1ff, #2684ff 50%, transparent 72%);
    border-radius: 50%;
    box-shadow: 0 0 28px rgba(66, 217, 255, 0.65);
}

.visual-caption {
    bottom: -9px;
    white-space: nowrap;
}

.jarvis-interface {
    position: relative;
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
}

.jarvis-ring {
    position: absolute;
    border: 1px solid rgba(66, 217, 255, 0.48);
    border-radius: 50%;
}

.ring-outer {
    inset: 0;
    border-style: dashed;
    animation: rotate-ring 35s linear infinite;
}

.ring-middle {
    inset: 20px;
    border-color: rgba(94, 137, 255, 0.55);
    animation: rotate-ring 25s linear infinite reverse;
}

.ring-inner {
    inset: 40px;
    border-color: rgba(66, 217, 255, 0.7);
    box-shadow: 0 0 25px rgba(66, 217, 255, 0.08);
}

.jarvis-core {
    color: var(--cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    text-shadow: 0 0 25px rgba(66, 217, 255, 0.55);
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Philosophy */

.philosophy-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(39, 100, 188, 0.15), transparent 65%),
        #050914;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.philosophy-container {
    max-width: 850px;
    text-align: center;
}

.philosophy-mark {
    height: 80px;
    margin-top: 20px;
    color: var(--cyan);
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: 1;
    opacity: 0.7;
}

.philosophy-container h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.25;
    letter-spacing: -1.4px;
}

.philosophy-container > p {
    max-width: 650px;
    margin: 25px auto 0;
    color: var(--muted);
}

.philosophy-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
    color: #7d91ab;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.philosophy-signature span {
    width: 30px;
    height: 1px;
    background: var(--cyan);
}

/* Group */

.group-section {
    background: #070d19;
}

.group-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 75px;
    align-items: start;
}

.group-copy > p {
    color: var(--muted);
}

.group-branches {
    display: grid;
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.group-branches > div {
    display: grid;
    grid-template-columns: 10px 1fr;
    column-gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.branch-indicator {
    grid-row: span 2;
    margin-top: 7px;
    width: 6px;
    height: 6px;
}

.group-branches strong {
    font-size: 0.8rem;
    letter-spacing: 0.6px;
}

.group-branches small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.77rem;
}

/* Contact */

.contact-section {
    padding-top: 80px;
    padding-bottom: 100px;
    background: var(--background);
}

.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding: 55px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(36, 91, 167, 0.16), transparent 50%),
        #0a1424;
    border: 1px solid rgba(66, 217, 255, 0.2);
    border-radius: 10px;
}

.contact-grid-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(66, 217, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 217, 255, 0.035) 1px, transparent 1px);
    background-size: 35px 35px;
}

.contact-content,
.contact-details {
    position: relative;
    z-index: 1;
}

.contact-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.16;
    letter-spacing: -1.5px;
}

.contact-content > p {
    max-width: 470px;
    margin-top: 20px;
    color: var(--muted);
}

.contact-details {
    align-self: center;
    display: grid;
    gap: 0;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail:first-child {
    border-top: 1px solid var(--border);
}

.contact-detail > span {
    color: #6f87a4;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.contact-detail strong,
.contact-detail a {
    font-size: 0.91rem;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    color: var(--cyan);
}

.contact-detail small {
    color: var(--muted);
    font-size: 0.78rem;
}

/* Footer */

.footer {
    background: #040710;
    border-top: 1px solid var(--border);
}

.footer-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-logo {
    font-size: 1rem;
}

.footer-inner p {
    color: #778ba5;
    font-size: 0.76rem;
}

.footer-inner p strong {
    color: #c5d4e7;
}

.footer-copyright {
    color: #62758d;
    font-size: 0.73rem;
}

/* Responsive */

@media (max-width: 1000px) {
    .technology-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        gap: 35px;
    }

    .group-container {
        gap: 40px;
    }

    .contact-panel {
        gap: 35px;
        padding: 38px;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 34px, var(--container));
    }

    .section {
        padding: 78px 0;
    }

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: rgba(5, 9, 20, 0.98);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
    }

    .nav-links li a {
        display: block;
        padding: 12px 5px;
    }

    .nav-links .nav-contact {
        display: inline-block;
        margin-top: 6px;
        padding: 8px 14px;
    }

    .hero {
        min-height: 640px;
    }

    .hero-content {
        padding-top: 75px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 12vw, 5rem);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 0.96rem;
    }

    .hero-footer {
        margin-top: 55px;
        font-size: 0.52rem;
        letter-spacing: 0.8px;
    }

    .hero-orbit {
        right: -300px;
        opacity: 0.6;
    }

    .about-grid,
    .group-container,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 25px;
    }

    .technology-grid {
        gap: 12px;
    }

    .technology-card {
        min-height: 300px;
        padding: 22px 17px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image,
    .project-visual {
        height: 245px;
    }

    .project-content > p {
        min-height: auto;
    }

    .group-container {
        gap: 30px;
    }

    .contact-panel {
        padding: 30px 24px;
        gap: 35px;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 440px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-buttons,
    .contact-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .technology-grid {
        grid-template-columns: 1fr;
    }

    .technology-card {
        min-height: auto;
    }

    .tech-icon {
        margin-bottom: 20px;
    }

    .project-image,
    .project-visual {
        height: 215px;
    }

    .project-content {
        padding: 20px;
    }

    .project-topline {
        flex-direction: column;
        gap: 6px;
    }

    .panel-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}