:root {
    --bg: #07101b;
    --bg-deep: #040913;
    --panel: rgba(10, 19, 35, 0.78);
    --panel-strong: rgba(11, 20, 39, 0.92);
    --line: rgba(125, 156, 231, 0.18);
    --line-strong: rgba(142, 242, 255, 0.28);
    --text: #eef3ff;
    --text-soft: #c9d4f2;
    --muted: #8a97ba;
    --accent: #8ef2ff;
    --accent-strong: #7b8dff;
    --accent-soft: #67ebb8;
    --warning: #ffd479;
    --error: #ff97af;
    --success: #8af2ba;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --radius: 28px;
    --radius-sm: 18px;
    --container: min(1240px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #04070f;
}

body {
    margin: 0;
    font-family: "Inter", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(123, 141, 255, 0.18), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(142, 242, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #09111d 0%, #060b14 45%, #04070f 100%);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::selection {
    background: rgba(142, 242, 255, 0.24);
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.background-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.5;
}

.background-orb--one {
    width: 320px;
    height: 320px;
    top: 80px;
    left: -70px;
    background: rgba(123, 141, 255, 0.28);
}

.background-orb--two {
    width: 380px;
    height: 380px;
    right: -100px;
    top: 260px;
    background: rgba(103, 235, 184, 0.16);
}

.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
    pointer-events: none;
    z-index: -3;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 18px 0 0;
    backdrop-filter: blur(14px);
}

.site-header__frame {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    background: rgba(7, 13, 24, 0.62);
    box-shadow: var(--shadow);
}

.site-header__topline,
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
}

.site-header__topline {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.site-header__status,
.site-header__clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    box-shadow: 0 0 18px rgba(103, 235, 184, 0.8);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__mark {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
        linear-gradient(135deg, rgba(123, 141, 255, 0.92), rgba(142, 242, 255, 0.48));
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand__mark::before,
.brand__mark::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand__mark::after {
    inset: auto 11px 11px 11px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: none;
}

.brand strong,
.site-footer strong {
    display: block;
    letter-spacing: 0.06em;
    font-size: 1rem;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.site-nav a {
    color: var(--text-soft);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.site-main {
    padding: 34px 0 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
    opacity: 0.8;
}

.hero-intro,
.page-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0 22px;
}

.hero-title,
.page-intro h1,
.section-heading h2,
.story-panel h2,
.cta-band h2,
.panel h2 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    max-width: 12ch;
}

.lead,
.section-heading p,
.story-panel p,
.panel-text,
.feature-card p,
.step-card p,
.cta-band p {
    color: var(--text-soft);
}

.hero-intro .lead,
.page-intro .lead {
    max-width: 64ch;
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.hero-badges,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.hero-badges span,
.tag-cloud span,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.badge--live {
    color: var(--accent);
    border-color: rgba(142, 242, 255, 0.28);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.55fr 1.05fr;
    gap: 20px;
    align-items: stretch;
}

.panel,
.feature-card,
.story-panel,
.step-card,
.cta-band,
.site-footer__inner {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel::before,
.feature-card::before,
.story-panel::before,
.step-card::before,
.cta-band::before,
.site-footer__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(142, 242, 255, 0.1), transparent 38%);
    pointer-events: none;
}

.panel {
    padding: 24px;
}

.panel--hero {
    background:
        radial-gradient(circle at 50% 20%, rgba(123, 141, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        var(--panel-strong);
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel__header--hero {
    align-items: center;
}

.panel h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.panel-text,
.hero-copy {
    margin: 0 0 18px;
}

.stack-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
}

.stack-list__item,
.ops-timeline__item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.stack-list__item span,
.ops-timeline__item span,
.step-card span {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stack-list__item strong,
.ops-timeline__item strong,
.feature-card h3,
.feature-card h2,
.step-card h3 {
    font-weight: 700;
}

.mini-links {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.mini-links a {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    transition: 0.25s ease;
}

.mini-links a:hover {
    transform: translateY(-1px);
    color: var(--text);
    border-color: var(--line-strong);
}

.hero-actions,
.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(142, 242, 255, 0.92), rgba(123, 141, 255, 0.88));
    color: #03101b;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(123, 141, 255, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(123, 141, 255, 0.3);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: none;
}

.hero-visual {
    position: relative;
    height: 240px;
    margin: 28px 0 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at 50% 50%, rgba(142, 242, 255, 0.12), transparent 35%),
        rgba(5, 10, 20, 0.66);
    overflow: hidden;
}

.hero-visual__core,
.hero-visual__ring,
.hero-visual__scan {
    position: absolute;
    border-radius: 999px;
}

.hero-visual__core {
    width: 110px;
    height: 110px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(123, 141, 255, 0.25) 40%, rgba(0, 0, 0, 0) 72%);
    box-shadow: 0 0 60px rgba(123, 141, 255, 0.5);
}

.hero-visual__ring {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(142, 242, 255, 0.2);
}

.hero-visual__ring--one {
    width: 190px;
    height: 190px;
}

.hero-visual__ring--two {
    width: 280px;
    height: 280px;
    border-color: rgba(123, 141, 255, 0.16);
}

.hero-visual__scan {
    inset: auto 10% 26%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(142, 242, 255, 0.92), transparent);
    box-shadow: 0 0 22px rgba(142, 242, 255, 0.42);
}

.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.story-panel,
.step-card {
    padding: 22px;
}

.feature-card h3,
.feature-card h2,
.step-card h3,
.story-panel h2 {
    margin: 0 0 12px;
    line-height: 1.25;
}

.feature-card p,
.feature-card ul,
.story-panel p,
.story-panel ul,
.step-card p,
.cta-band p {
    margin: 0;
}

.feature-card ul,
.bullet-list {
    padding-left: 18px;
    margin-top: 14px;
    color: var(--text-soft);
}

.feature-card ul li + li,
.bullet-list li + li {
    margin-top: 8px;
}

.section-block {
    padding: 38px 0 0;
}

.section-block--split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.section-heading {
    margin-bottom: 18px;
    max-width: 68ch;
}

.ops-timeline {
    display: grid;
    gap: 12px;
}

.ops-timeline__item {
    align-items: flex-start;
}

.ops-timeline__item p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.tag-cloud--inline {
    justify-content: flex-start;
    margin-top: 18px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card span {
    display: inline-block;
    margin-bottom: 12px;
}

.cta-band {
    margin-top: 40px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.panel--form {
    padding: 24px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    color: var(--text-soft);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(142, 242, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
}

textarea {
    resize: vertical;
}

.is-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.flash {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.flash--success {
    background: rgba(138, 242, 186, 0.08);
    border-color: rgba(138, 242, 186, 0.28);
}

.flash--error {
    background: rgba(255, 151, 175, 0.08);
    border-color: rgba(255, 151, 175, 0.28);
}

.flash--info {
    background: rgba(255, 212, 121, 0.08);
    border-color: rgba(255, 212, 121, 0.28);
}

.site-footer {
    padding: 0 0 32px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    gap: 24px;
    padding: 26px;
}

.site-footer p,
.site-footer a,
.site-footer span {
    color: var(--text-soft);
}

.site-footer__links,
.site-footer__meta {
    display: grid;
    gap: 10px;
    align-content: start;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .panel--center {
        grid-column: span 2;
        order: -1;
    }

    .card-grid,
    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-block--split,
    .contact-layout,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        position: static;
    }

    .site-header__topline,
    .site-header__bar,
    .hero-intro,
    .page-intro,
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .dashboard-grid,
    .card-grid,
    .card-grid--compact,
    .card-grid--two,
    .card-grid--three,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .panel--center {
        grid-column: auto;
    }

    .hero-visual {
        height: 220px;
    }

    .header-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-visual__ring--one {
        animation: pulse 8s linear infinite;
    }

    .hero-visual__ring--two {
        animation: pulseReverse 12s linear infinite;
    }

    .hero-visual__scan {
        animation: scan 5s ease-in-out infinite;
    }

    .signal-dot {
        animation: blink 1.8s ease-in-out infinite;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.65;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.03);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.65;
    }
}

@keyframes pulseReverse {
    0% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.97);
        opacity: 0.82;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 0.5;
    }
}

@keyframes scan {
    0%,
    100% {
        transform: translateY(-26px);
        opacity: 0.25;
    }
    50% {
        transform: translateY(28px);
        opacity: 1;
    }
}

@keyframes blink {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.14);
        opacity: 1;
    }
}
