:root {
    --bg: #071018;
    --bg-elevated: #0c1824;
    --bg-panel: rgba(14, 28, 42, 0.72);
    --surface: #102032;
    --line: rgba(120, 180, 210, 0.18);
    --line-strong: rgba(90, 220, 210, 0.35);
    --text: #e8f1f6;
    --text-muted: #93a8b8;
    --brand: #2ad4c2;
    --brand-deep: #149a8c;
    --accent: #3aa0ff;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 4px;
    --font-display: "Syne", "Segoe UI", sans-serif;
    --font-body: "Outfit", "Segoe UI", sans-serif;
    --container: 1120px;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(42, 212, 194, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(58, 160, 255, 0.1), transparent 50%),
        linear-gradient(180deg, #071018 0%, #0a1520 45%, #071018 100%);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 180, 210, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 180, 210, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
    pointer-events: none;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    backdrop-filter: blur(16px);
    background: rgba(7, 16, 24, 0.78);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 16, 24, 0.92);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    position: relative;
    box-shadow: 0 0 0 1px rgba(42, 212, 194, 0.3);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px solid rgba(7, 16, 24, 0.85);
    border-radius: 3px;
    border-right-color: transparent;
    transform: rotate(45deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-en {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.site-nav > a,
.nav-dropdown-trigger {
    padding: 0.55rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.site-nav > a:hover,
.nav-dropdown-trigger:hover,
.site-nav > a.is-active,
.nav-dropdown.is-active > .nav-dropdown-trigger {
    color: var(--white);
    background: rgba(42, 212, 194, 0.08);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 180px;
    padding: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    display: block;
    padding: 0.65rem 0.85rem;
    color: var(--text-muted);
    border-radius: var(--radius);
    font-size: 0.92rem;
}

.nav-dropdown-panel a:hover {
    color: var(--white);
    background: rgba(42, 212, 194, 0.1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    background: var(--brand);
    color: #042018;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
}

.header-cta:hover {
    background: #56e4d4;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    place-items: center;
    gap: 5px;
    flex-direction: column;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--brand);
    color: #042018;
}

.btn-primary:hover {
    background: #56e4d4;
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: rgba(42, 212, 194, 0.04);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    color: rgba(42, 212, 194, 0.35);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(7, 16, 24, 0.55) 45%, rgba(7, 16, 24, 0.92) 100%),
        radial-gradient(circle at 70% 45%, rgba(58, 160, 255, 0.18), transparent 42%),
        radial-gradient(circle at 55% 70%, rgba(42, 212, 194, 0.14), transparent 35%),
        linear-gradient(135deg, #0a1a28 0%, #071018 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 10s ease-in-out infinite;
}

.hero-orb--a {
    width: 280px;
    height: 280px;
    right: 12%;
    top: 18%;
    background: rgba(42, 212, 194, 0.22);
}

.hero-orb--b {
    width: 220px;
    height: 220px;
    right: 28%;
    bottom: 16%;
    background: rgba(58, 160, 255, 0.18);
    animation-delay: -4s;
}

.hero-scan {
    position: absolute;
    left: 45%;
    right: 0;
    height: 1px;
    top: 20%;
    background: linear-gradient(90deg, transparent, rgba(42, 212, 194, 0.55), transparent);
    animation: scan 5.5s ease-in-out infinite;
}

.hero-circuit {
    position: absolute;
    width: min(55vw, 680px);
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    animation: circuitPulse 4s ease-in-out infinite;
}

.hero-content {
    padding: 5rem 0 6rem;
    max-width: 720px;
}

.hero-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    color: var(--brand);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Sections */
.section {
    padding: 5.5rem 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 2.75rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.intro-panel {
    border: 1px solid var(--line);
    background: var(--bg-panel);
    backdrop-filter: blur(8px);
}

.intro-item {
    display: grid;
    gap: 0.35rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.intro-item:last-child {
    border-bottom: 0;
}

.intro-item strong {
    font-family: var(--font-display);
    color: var(--brand);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-item span {
    color: var(--text);
    font-size: 1.05rem;
}

.product-rows {
    display: grid;
    gap: 0.75rem;
}

.product-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(16, 32, 50, 0.9), rgba(12, 24, 36, 0.4));
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.product-row:hover {
    border-color: var(--line-strong);
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(20, 48, 58, 0.95), rgba(12, 24, 36, 0.55));
}

.product-code {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand);
}

.product-row h3 {
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
}

.product-row p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.product-arrow {
    color: var(--brand);
    font-size: 1.4rem;
    transition: transform 0.25s;
}

.product-row:hover .product-arrow {
    transform: translateX(4px);
}

.section-services {
    background: linear-gradient(180deg, transparent, rgba(16, 40, 52, 0.35), transparent);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-block {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 1.75rem;
    border: 1px solid var(--line);
    background: var(--bg-panel);
    transition: border-color 0.25s, transform 0.25s;
}

.service-block:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.service-block h3 {
    font-size: 1.3rem;
}

.service-block p {
    color: var(--text-muted);
    flex: 1;
}

.service-block span {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.92rem;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 2.75rem;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(120deg, rgba(42, 212, 194, 0.1), rgba(58, 160, 255, 0.08)),
        var(--surface);
}

.cta-panel h2 {
    margin-bottom: 0.5rem;
}

.cta-panel p {
    margin: 0;
    color: var(--text-muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Page hero (secondary) */
.page-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 85% 50%, rgba(42, 212, 194, 0.12), transparent 60%),
        linear-gradient(90deg, transparent, rgba(58, 160, 255, 0.05));
    pointer-events: none;
}

.page-hero .eyebrow {
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 16ch;
}

.page-hero .lead {
    max-width: 38rem;
    margin-bottom: 0;
}

.content-section {
    padding: 4rem 0;
}

.feature-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.feature-item:last-child {
    border-bottom: 0;
}

.feature-index {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand);
    font-size: 0.95rem;
    padding-top: 0.15rem;
}

.feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-muted);
}

.dual-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.detail-panel {
    padding: 1.75rem;
    border: 1px solid var(--line);
    background: var(--bg-panel);
}

.detail-panel h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.detail-panel ul li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.2rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(120, 180, 210, 0.1);
}

.detail-panel ul li:last-child {
    border-bottom: 0;
}

.detail-panel ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.related-links a {
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: border-color 0.2s, color 0.2s;
}

.related-links a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* About / Contact */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.stat-block {
    padding: 1.5rem;
    border-top: 2px solid var(--brand);
    background: rgba(16, 32, 50, 0.55);
}

.stat-block strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: var(--white);
}

.stat-block span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    border: 1px solid var(--line);
    background: var(--bg-panel);
}

.contact-card + .contact-card {
    margin-top: 1rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.contact-card a.mail {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand);
}

.contact-card a.mail:hover {
    color: #56e4d4;
}

.contact-side {
    padding: 2rem;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(160deg, rgba(42, 212, 194, 0.08), transparent 55%),
        var(--surface);
}

.contact-side h2 {
    font-size: 1.5rem;
}

.contact-side p {
    color: var(--text-muted);
}

.contact-side ol {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.contact-side li {
    counter-increment: step;
    position: relative;
    padding: 0.85rem 0 0.85rem 2.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
}

.contact-side li:last-child {
    border-bottom: 0;
}

.contact-side li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.85rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    padding: 3.5rem 0 1.5rem;
    border-top: 1px solid var(--line);
    background: rgba(5, 12, 18, 0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.site-footer ul a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-footer ul a:hover {
    color: var(--brand);
}

.footer-contact li {
    margin-bottom: 0.85rem;
}

.footer-contact span {
    display: block;
    font-size: 0.8rem;
    color: rgba(147, 168, 184, 0.75);
    margin-bottom: 0.15rem;
}

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes scan {
    0%, 100% { top: 18%; opacity: 0.2; }
    50% { top: 72%; opacity: 0.8; }
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 960px) {
    .split,
    .service-grid,
    .dual-col,
    .contact-grid,
    .footer-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .hero-circuit {
        width: 70vw;
        opacity: 0.3;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        margin: 0;
        padding: 1rem 1.25rem 1.25rem;
        background: rgba(7, 16, 24, 0.97);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 0 0.75rem;
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown-panel {
        display: block;
    }

    .product-row {
        grid-template-columns: 48px 1fr;
    }

    .product-arrow {
        display: none;
    }

    .hero-content {
        padding: 3.5rem 0 4.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
