/* First-screen visual direction */
.header {
    background: rgba(7, 23, 36, .94);
    border-bottom-color: rgba(105, 219, 226, .16);
    box-shadow: 0 1px 18px rgba(0, 0, 0, .15);
}
.header.scrolled { background: rgba(7, 23, 36, .97); box-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.header .nav-link { color: #d2e8ec; }
.header .nav-link:hover, .header .nav-link:focus-visible { color: #76e5df; background: rgba(73, 216, 208, .1); }
.header .dropdown-menu { background: #102d3c; border-color: rgba(105, 219, 226, .2); box-shadow: 0 14px 35px rgba(0, 0, 0, .3); }
.header .dropdown-menu a { color: #d2e8ec; }
.header .dropdown-menu a:hover, .header .dropdown-menu a:focus-visible { color: #76e5df; background: rgba(73, 216, 208, .1); }
.header .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.header .nav-link:focus-visible, .header .dropdown-menu a:focus-visible { outline: 2px solid #76e5df; outline-offset: 2px; }

.header .container,
.hero-banner .container {
    max-width: 1800px;
    padding-left: clamp(24px, 5vw, 100px);
    padding-right: clamp(24px, 5vw, 100px);
}

.hero-banner {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 90px 0;
    background: #071724;
}

.hero-bg-pattern {
    background:
        radial-gradient(ellipse at 73% 46%, rgba(7, 120, 143, .23), transparent 43%),
        radial-gradient(ellipse at 3% 95%, rgba(8, 90, 111, .18), transparent 45%),
        linear-gradient(rgba(97, 192, 205, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 192, 205, .055) 1px, transparent 1px);
    background-size: auto, auto, 64px 64px, 64px 64px;
    mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.55));
}

.hero-banner .container { width: 100%; }
.hero-wrapper { gap: clamp(48px, 6vw, 120px); }
.hero-content { flex: 1 1 43%; max-width: 690px; }
.hero-showcase { flex: 1 1 57%; min-width: 0; max-width: 900px; }
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: #71d9df;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
}
.hero-eyebrow span { width: 30px; height: 1px; background: #51d7db; }
.hero-title {
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 3.35vw, 4.5rem);
    line-height: 1.25;
    letter-spacing: -.035em;
    font-weight: 700;
}
.hero-description {
    max-width: 510px;
    margin-bottom: 38px;
    color: #a9c2cc;
    font-size: clamp(1rem, 1.05vw, 1.16rem);
    line-height: 1.9;
}
.btn-primary-download {
    min-height: 54px;
    padding: 14px 27px;
    border-radius: 4px;
    background: #49d8d0;
    box-shadow: 0 8px 32px rgba(45, 212, 191, .2);
    transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.btn-primary-download:hover { background: #5eead4; }
.showcase-frame {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(105, 219, 226, .35);
    border-radius: 8px;
    background: #0b2231;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .4), 0 0 70px rgba(30, 197, 206, .08);
}
.showcase-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    color: #9bbbc5;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .13em;
}
.showcase-bar i { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #5be3d2; box-shadow: 0 0 12px #5be3d2; }
.showcase-bar b { margin: 0 8px; color: #4c7380; }
.showcase-frame .carousel-container { height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.showcase-frame .carousel-slide { background: #101c2c; }
.showcase-frame .carousel-dots { bottom: 12px; }

/* Introduction and video share one section. */
.intro-section { padding: clamp(70px, 7vw, 120px) 0; background: #f3f7f8; }
.intro-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(48px, 6vw, 110px);
}
.intro-content { max-width: none; margin: 0; text-align: left; }
.intro-eyebrow { margin-bottom: 16px; color: #0c8ea1; font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.intro-content .section-title { margin-bottom: 18px; font-size: clamp(2rem, 2.5vw, 3rem); color: #102c3c; }
.intro-content .section-line { margin: 0 0 26px; }
.intro-text { max-width: 560px; line-height: 2; }
.intro-layout .video-container { width: 100%; max-width: none; margin: 0; }
.intro-video-title { margin-bottom: 14px; color: #42616d; font-size: .9rem; font-weight: 600; }
.intro-layout .video-wrapper { border: 1px solid rgba(12, 142, 161, .22); border-radius: 8px; box-shadow: 0 20px 55px rgba(11, 45, 57, .15); }

/* Carry the hero's deep blue and cyan palette through the content sections. */
.intro-section {
    background: radial-gradient(ellipse at 80% 15%, rgba(24, 116, 132, .16), transparent 48%), #0d2533;
}
.news-section {
    background: radial-gradient(ellipse at 10% 0%, rgba(25, 117, 136, .12), transparent 45%), #091d2a;
}
.examples-section {
    background: radial-gradient(ellipse at 90% 30%, rgba(25, 117, 136, .13), transparent 42%), #0d2533;
}
.contact-section {
    background: radial-gradient(ellipse at 50% 100%, rgba(22, 128, 142, .16), transparent 55%), #091d2a;
}
.intro-section, .news-section, .examples-section, .contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.intro-section::before, .news-section::before, .examples-section::before, .contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(97, 192, 205, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(97, 192, 205, .055) 1px, transparent 1px);
    background-size: 80px 80px;
}
.intro-section::after, .news-section::after, .examples-section::after, .contact-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(117, 245, 239, .9) 0 2px, rgba(71, 215, 218, .28) 3px, transparent 9px),
        radial-gradient(circle, rgba(112, 221, 240, .7) 0 1.5px, rgba(65, 190, 218, .22) 3px, transparent 8px);
    background-size: 240px 240px, 320px 320px;
    background-position: 40px 40px, 120px 200px;
    animation: particles-flow 16s linear infinite;
}
.news-section::after, .contact-section::after { animation-delay: -8s; }
.intro-content .section-title,
.news-section .section-title,
.examples-section .section-title,
.contact-section .section-title { color: #edf8fa; }
.intro-eyebrow { color: #65d8dd; }
.intro-text, .intro-video-title { color: #b8d1d9; }
.intro-layout .video-wrapper { border-color: rgba(105, 219, 226, .25); box-shadow: 0 20px 55px rgba(0, 0, 0, .28); }
.news-card, .example-card {
    background: #132f3e;
    border-color: rgba(125, 199, 210, .16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.news-card:hover, .example-card:hover {
    border-color: rgba(91, 227, 219, .7);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .25);
}
.news-title, .example-title { color: #edf8fa; }
.news-summary, .example-meta { color: #b2cbd3; }
.news-date, .example-category { background: rgba(68, 211, 209, .12); color: #79e0df; }
.example-header { border-bottom-color: rgba(125, 199, 210, .14); }
.example-meta i { color: #65d8dd; }
.filter-btn { background: #163746; border-color: rgba(125, 199, 210, .22); color: #c4dce2; }
.filter-btn:hover, .filter-btn.active { background: #49d8d0; border-color: #49d8d0; color: #09232d; }
.news-more .btn-primary { background: #49d8d0; color: #09232d; font-weight: 600; }
.news-more .btn-primary:hover { background: #73e6de; box-shadow: 0 6px 22px rgba(45, 212, 191, .2); }
.contact-item, .contact-section .label { color: #e1f1f4; }
.contact-item a { color: #77e0df; }
.contact-section .qr-item p { color: #b8d1d9; }
.contact-section .qr-placeholder { border-color: rgba(125, 199, 210, .3); }
.contact-section .qr-placeholder {
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.contact-section .qr-item:hover .qr-placeholder {
    transform: translateY(-6px);
    border-color: #76e5df;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25), 0 0 22px rgba(73, 216, 208, .22);
}

/* Restrained motion reinforces the simulation theme. */
.hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(117, 245, 239, .9) 0 2px, rgba(71, 215, 218, .28) 3px, transparent 9px),
        radial-gradient(circle, rgba(112, 221, 240, .7) 0 1.5px, rgba(65, 190, 218, .22) 3px, transparent 8px);
    background-size: 240px 240px, 320px 320px;
    background-position: 40px 40px, 120px 200px;
    animation: particles-flow 16s linear infinite;
}
.hero-bg-pattern::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at 65% 50%, rgba(55, 211, 211, .1), transparent 35%);
    animation: ambient-drift 12s ease-in-out infinite alternate;
}
.hero-content { animation: hero-arrive .8s ease-out both; }
.hero-showcase { animation: hero-arrive .9s .15s ease-out both; }
.showcase-frame { transition: border-color .35s ease, box-shadow .35s ease; }
.showcase-frame:hover {
    border-color: rgba(105, 219, 226, .65);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .4), 0 0 75px rgba(30, 197, 206, .18);
}
.showcase-bar i { animation: status-glow 3s ease-in-out infinite; }
.intro-layout .video-wrapper { transition: border-color .35s ease, box-shadow .35s ease; }
.intro-layout .video-wrapper:hover, .intro-layout .video-wrapper:focus-within {
    border-color: rgba(105, 219, 226, .65);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .3), 0 0 35px rgba(30, 197, 206, .12);
}
.intro-layout .play-btn { position: relative; }
.intro-layout .play-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(103, 232, 224, .7);
    border-radius: 50%;
    pointer-events: none;
    animation: video-ring 3s ease-out infinite;
}
.intro-layout .play-btn:focus-visible { outline: 2px solid #76e5df; outline-offset: 6px; }
.news-card, .example-card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.filter-btn, .news-more .btn-primary { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }

@keyframes ambient-drift {
    from { transform: translate3d(-3%, 2%, 0) scale(.95); opacity: .65; }
    to { transform: translate3d(3%, -2%, 0) scale(1.08); opacity: 1; }
}
@keyframes particles-flow {
    from { background-position: 40px 40px, 120px 200px; }
    to { background-position: 280px -200px, -200px -120px; }
}
@keyframes hero-arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes status-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(91, 227, 210, .5); }
    50% { box-shadow: 0 0 15px rgba(91, 227, 210, .9); }
}
@keyframes video-ring {
    0% { transform: scale(.95); opacity: .7; }
    70%, 100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg-pattern::before, .hero-bg-pattern::after, .hero-content, .hero-showcase, .showcase-bar i { animation: none; }
    .intro-section::after, .news-section::after, .examples-section::after, .contact-section::after { animation: none; }
    .intro-layout .play-btn::after { animation: none; }
    .intro-layout .video-wrapper, .intro-layout .play-btn { transition: none; }
    .contact-section .qr-placeholder { transition: none; }
    .contact-section .qr-item:hover .qr-placeholder { transform: none; }
    .scroll-animate { opacity: 1; transform: none; transition: none; }
    .news-card, .example-card, .showcase-frame, .filter-btn, .news-more .btn-primary { transition: none; }
    .news-card:hover, .example-card:hover { transform: none; }
}

@media (max-width: 800px) {
    .intro-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 992px) {
    .hero-banner { min-height: auto; padding: 80px 0; }
    .hero-wrapper { flex-direction: column; align-items: stretch; gap: 48px; text-align: left; }
    .hero-actions { justify-content: flex-start; }
    .hero-content, .hero-showcase { flex: auto; width: 100%; max-width: none; }
    .hero-title { max-width: 760px; }
}
@media (max-width: 768px) {
    .header .nav-link span { display: inline; }
    .hero-banner { min-height: calc(100vh - 60px); padding: 64px 0; }
    .hero-wrapper { text-align: left; gap: 38px; }
    .hero-actions { justify-content: flex-start; }
    .hero-eyebrow { font-size: .6rem; letter-spacing: .12em; margin-bottom: 22px; }
    .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
    .hero-description { margin-bottom: 28px; }
    .showcase-frame .carousel-container { height: auto; }
    .showcase-bar { min-height: 40px; font-size: .55rem; padding: 0 12px; }
}
