:root {
    --bg: #050813;
    --bg-soft: #0a1020;
    --panel: rgba(11, 19, 38, 0.78);
    --panel-strong: #0c1427;
    --line: rgba(115, 220, 255, 0.18);
    --text: #e9f5ff;
    --muted: #9db0c5;
    --cyan: #67e8f9;
    --cyan-strong: #22d3ee;
    --blue: #60a5fa;
    --violet: #a78bfa;
    --green: #4ade80;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.12), transparent 24rem),
        radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.10), transparent 28rem),
        linear-gradient(180deg, #050813 0%, #07101d 48%, #040710 100%);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(103, 232, 249, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

/* Header */
.tech-header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-shell {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(103, 232, 249, 0.30);
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.12);
    overflow: hidden;
}

.logo-shell img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.division-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 0.72rem;
    color: var(--muted);
}

.division-name strong {
    font-family: "JetBrains Mono", monospace;
    color: var(--cyan);
    font-size: 1rem;
    letter-spacing: 0.20em;
}

.tech-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.9rem;
}

.tech-nav a {
    color: #cbd8e6;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tech-nav a:hover {
    color: var(--cyan);
    transform: translateY(-1px);
}

.tech-nav .return-link {
    border: 1px solid rgba(103, 232, 249, 0.28);
    padding: 9px 14px;
    border-radius: 8px;
    font-family: "JetBrains Mono", monospace;
    color: var(--cyan);
}

/* Shared section styles */
.section,
.hero-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 92px 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--cyan);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.75);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading h2,
.about-copy h2,
.inquiry-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.3vw, 3.3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow),
.about-copy p,
.inquiry-copy > p {
    color: var(--muted);
}

/* Hero */
.hero-section {
    min-height: 680px;
    padding: 84px 0 72px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(3.5rem, 7.5vw, 6.7rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-copy h1 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(103, 232, 249, 0.85);
    text-shadow: 0 0 36px rgba(34, 211, 238, 0.12);
}

.hero-text {
    max-width: 690px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 9px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #031018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.16);
}

.button-secondary {
    border-color: rgba(103, 232, 249, 0.28);
    color: var(--cyan);
    background: rgba(8, 17, 34, 0.60);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 34px;
}

.hero-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(9, 18, 36, 0.65);
    color: #97a9bd;
    border-radius: 5px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
}

.hero-console {
    position: relative;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 16px;
    background: rgba(4, 9, 20, 0.78);
    box-shadow: var(--shadow), 0 0 70px rgba(34, 211, 238, 0.06);
    overflow: hidden;
}

.hero-console::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 46%, rgba(103, 232, 249, 0.035) 49%, transparent 52%);
}

.console-topbar {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 24, 45, 0.75);
}

.console-topbar p {
    margin: 0 auto;
    color: #6f839a;
    font: 0.72rem "JetBrains Mono", monospace;
}

.console-dots {
    display: flex;
    gap: 7px;
}

.console-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30435a;
}

.console-body {
    min-height: 390px;
    padding: 34px;
    font: 0.88rem/1.8 "JetBrains Mono", monospace;
    color: #c8d7e6;
}

.console-body p {
    margin: 0 0 6px;
}

.console-body ul {
    list-style: none;
    padding: 0 0 18px 19px;
    margin: 0;
    color: #94a8bd;
}

.console-body li::before {
    content: "> ";
    color: var(--violet);
}

.prompt {
    color: var(--green);
}

.console-result {
    color: var(--cyan);
    padding-left: 18px;
    margin-bottom: 17px !important;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 17px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(103, 232, 249, 0.7);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Services */
.services-section {
    border-top: 1px solid var(--line);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    min-height: 330px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(13, 24, 45, 0.72), rgba(7, 13, 27, 0.68));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(103, 232, 249, 0.40);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.service-number {
    font: 0.75rem "JetBrains Mono", monospace;
    color: var(--violet);
}

.service-card h3 {
    margin: 18px 0 10px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

.service-card ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    color: #c5d2df;
    font-size: 0.85rem;
}

.service-card li {
    padding: 6px 0;
    border-top: 1px solid rgba(103, 232, 249, 0.08);
}

.service-card li::before {
    content: "+";
    color: var(--cyan);
    margin-right: 9px;
    font-family: "JetBrains Mono", monospace;
}

/* About */
.about-section {
    padding-top: 30px;
}

.about-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    padding: 50px;
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 18px;
    background:
        linear-gradient(140deg, rgba(14, 25, 49, 0.92), rgba(9, 14, 29, 0.85)),
        radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.16), transparent 20rem);
    box-shadow: var(--shadow);
}

.about-copy p {
    max-width: 720px;
}

.credential-panel {
    align-self: stretch;
    padding: 25px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 12px;
    background: rgba(4, 9, 20, 0.5);
}

.panel-label {
    margin: 0 0 18px;
    font: 0.70rem "JetBrains Mono", monospace;
    color: var(--cyan);
    letter-spacing: 0.16em;
}

.credential-list {
    display: grid;
    gap: 12px;
}

.credential-list div {
    padding: 12px 0;
    border-bottom: 1px solid rgba(103, 232, 249, 0.10);
}

.credential-list span {
    display: block;
    font: 0.86rem "JetBrains Mono", monospace;
    color: var(--violet);
}

.credential-list small {
    color: var(--muted);
}

/* Process */
.process-section {
    border-bottom: 1px solid var(--line);
}

.compact-heading {
    margin-bottom: 30px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.process-step {
    min-height: 210px;
    padding: 24px;
    border-left: 1px solid rgba(103, 232, 249, 0.28);
    background: linear-gradient(90deg, rgba(103, 232, 249, 0.035), transparent);
}

.process-step span {
    font: 0.75rem "JetBrains Mono", monospace;
    color: var(--cyan);
}

.process-step h3 {
    margin: 24px 0 8px;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Inquiry */
.inquiry-section {
    padding-bottom: 110px;
}

.inquiry-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 60px;
    align-items: start;
}

.inquiry-copy {
    position: sticky;
    top: 24px;
}

.contact-box {
    margin-top: 28px;
    padding: 20px;
    border-left: 2px solid var(--cyan);
    background: rgba(9, 18, 36, 0.6);
}

.contact-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.contact-box a {
    color: var(--cyan);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.inquiry-form {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 15, 30, 0.76);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.field-group label {
    color: #cbd8e6;
    font: 0.75rem "JetBrains Mono", monospace;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 8px;
    outline: none;
    color: var(--text);
    background: #070d1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.field-group textarea {
    resize: vertical;
}

.submit-button {
    margin-top: 22px;
    width: 100%;
}

.form-note {
    margin: 14px 0 0;
    color: #74879d;
    font-size: 0.75rem;
}

/* Footer */
.tech-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 48px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    color: #74879d;
    font-size: 0.78rem;
}

.tech-footer p {
    margin: 4px 0;
}

.tech-footer a {
    color: var(--cyan);
    font-family: "JetBrains Mono", monospace;
}

.footer-brand {
    color: #c4d4e4;
    font-family: "JetBrains Mono", monospace;
}

.footer-brand span {
    color: var(--violet);
}

.tech-footer > p:last-child {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 980px) {
    .tech-header {
        padding: 16px 0;
        align-items: flex-start;
    }

    .tech-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px 18px;
    }

    .hero-section,
    .about-card,
    .inquiry-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inquiry-copy {
        position: static;
    }
}

@media (max-width: 680px) {
    .tech-header {
        width: min(100% - 28px, 1180px);
        flex-direction: column;
    }

    .tech-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .tech-nav a:not(.return-link) {
        display: none;
    }

    .hero-section,
    .section,
    .tech-footer {
        width: min(100% - 28px, 1180px);
    }

    .hero-section {
        padding-top: 62px;
    }

    .hero-copy h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
    }

    .services-grid,
    .process-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .service-card,
    .process-step {
        min-height: auto;
    }

    .about-card,
    .inquiry-form {
        padding: 26px;
    }

    .console-body {
        min-height: 340px;
        padding: 24px;
        font-size: 0.75rem;
    }

    .tech-footer {
        grid-template-columns: 1fr;
    }

    .tech-footer > p:last-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
