:root {
    --bg: #070914;
    --bg-soft: #0d1224;
    --panel: rgba(255,255,255,.06);
    --panel-strong: rgba(255,255,255,.1);
    --text: #eef3ff;
    --muted: #aab5d4;
    --line: rgba(255,255,255,.12);
    --brand: #7c5cff;
    --brand-2: #00d4ff;
    --accent: #2bf59b;
    --warning: #ffd166;
    --danger: #ff6b6b;
    --shadow: 0 20px 70px rgba(0,0,0,.35);
    --radius: 24px;
    --radius-sm: 14px;
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 5%, rgba(124,92,255,.24), transparent 34rem),
        radial-gradient(circle at 90% 8%, rgba(0,212,255,.18), transparent 30rem),
        linear-gradient(180deg, #070914 0%, #0a0f20 42%, #070914 100%);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(7,9,20,.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap {
    display: flex;
    align-items: center;
    min-height: 78px;
    gap: 24px;
}
.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .3px;
}
.brand img { width: 88px; height: auto; image-rendering: auto; }
.brand span, .footer-brand { font-size: 1.05rem; }
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
}
.main-nav a {
    padding: 10px 13px;
    color: var(--muted);
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--text);
    background: rgba(255,255,255,.08);
}
.nav-cta, .btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nav-cta, .btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    box-shadow: 0 14px 38px rgba(0,212,255,.18);
}
.btn-secondary {
    color: var(--text);
    background: rgba(255,255,255,.1);
    border: 1px solid var(--line);
}
.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
}
.nav-cta:hover, .btn-primary:hover, .btn-secondary:hover, .btn-ghost:hover { transform: translateY(-2px); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.05); }
.nav-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: white; }

.hero { padding: 92px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    border-radius: 999px;
    color: #d9e1ff;
    font-size: .88rem;
    font-weight: 800;
}
.hero h1, .page-hero h1 {
    font-size: clamp(2.55rem, 6vw, 5.15rem);
    line-height: .95;
    margin: 24px 0 18px;
    letter-spacing: -2.2px;
}
.gradient-text { background: linear-gradient(135deg, #fff 18%, var(--brand-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c5cee8; font-size: clamp(1.05rem, 2vw, 1.24rem); line-height: 1.72; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.trust-item { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); }
.trust-item strong { display: block; font-size: 1.2rem; }
.trust-item span { color: var(--muted); font-size: .88rem; }
.hero-panel { position: relative; padding: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border-radius: 34px; box-shadow: var(--shadow); overflow: hidden; }
.hero-panel:before { content:""; position: absolute; inset: -2px; background: radial-gradient(circle at 20% 0, rgba(43,245,155,.23), transparent 15rem), radial-gradient(circle at 90% 40%, rgba(124,92,255,.32), transparent 16rem); pointer-events: none; }
.terminal-card, .stack-card { position: relative; }
.terminal-card { background: rgba(3,6,14,.72); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.terminal-bar { display: flex; gap: 8px; padding: 15px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 999px; background: var(--danger); }
.terminal-bar span:nth-child(2) { background: var(--warning); }
.terminal-bar span:nth-child(3) { background: var(--accent); }
.code-lines { padding: 20px; font-family: "Cascadia Code", "Fira Code", Consolas, monospace; color: #cfe8ff; line-height: 1.8; font-size: .95rem; }
.code-lines b { color: var(--accent); font-weight: 800; }
.stack-card { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-card { padding: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.08); border-radius: 18px; }
.mini-card strong { display:block; margin-bottom: 6px; }
.mini-card span { color: var(--muted); font-size: .9rem; }

.section { padding: 82px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-header h2, .page-hero h1 { margin: 0; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -1px; }
.section-header p { color: var(--muted); max-width: 620px; line-height: 1.65; margin: 10px 0 0; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card, .product-card, .process-card, .pricing-card, .notice-card, .detail-panel, .contact-card, .license-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(0,0,0,.18);
}
.category-card { padding: 22px; min-height: 210px; display:flex; flex-direction:column; }
.category-icon { width: 50px; height: 50px; border-radius: 16px; display:grid; place-items:center; background: rgba(124,92,255,.18); color: var(--accent); font-size: 1.5rem; font-weight: 900; }
.category-card h3 { margin: 18px 0 10px; }
.category-card p { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.text-link { color: #b7f8ff; font-weight: 850; margin-top: auto; }
.text-link:hover { color: white; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { padding: 22px; display: flex; flex-direction: column; min-height: 330px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(0,212,255,.35); background: var(--panel-strong); }
.product-card__top, .product-card__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-card h3 { margin: 20px 0 12px; font-size: 1.28rem; }
.product-card p { color: var(--muted); line-height: 1.62; margin: 0; }
.category-pill, .status-pill, .tag, .product-card__tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: #dfe7ff;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: .75rem;
    font-weight: 850;
}
.status-pill { color: var(--accent); }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.product-card__bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.product-card__bottom strong { font-size: 1.15rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.notice-card { padding: 28px; }
.notice-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 14px; letter-spacing: -1px; }
.notice-card p, .license-card p, .detail-panel p { color: var(--muted); line-height: 1.75; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 22px 0 0; list-style: none; }
.check-list li { display: flex; gap: 12px; color: #dfe7ff; }
.check-list li:before { content: "✓"; color: var(--accent); font-weight: 900; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-card { padding: 22px; }
.process-card span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight: 900; }
.process-card h3 { margin: 18px 0 8px; }
.process-card p { color: var(--muted); line-height: 1.55; margin: 0; }

.page-hero { padding: 72px 0 38px; }
.page-hero p { max-width: 760px; color: var(--muted); line-height: 1.72; font-size: 1.1rem; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filter-pill { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.04); font-weight: 800; }
.filter-pill.active, .filter-pill:hover { color: white; background: rgba(124,92,255,.22); border-color: rgba(124,92,255,.45); }
.search-form { margin-left: auto; display: flex; gap: 10px; }
.search-form input, .field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 13px 14px;
    border-radius: 14px;
    outline: none;
}
.search-form input { min-width: 230px; }
.search-form button { border: 0; cursor: pointer; }

.product-detail-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; align-items: start; }
.detail-panel { padding: 28px; }
.detail-panel h1 { font-size: clamp(2.15rem, 4vw, 3.7rem); line-height: 1; margin: 18px 0 16px; letter-spacing: -1.2px; }
.detail-price { font-size: 1.55rem; font-weight: 950; color: white; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0 0 14px; font-size: 1.25rem; }
.side-stack { display: grid; gap: 16px; position: sticky; top: 98px; }
.pricing-card { padding: 24px; }
.pricing-card h3 { margin: 0 0 10px; }
.pricing-card .price { font-size: 2rem; font-weight: 950; margin: 10px 0 16px; }
.pricing-card p { color: var(--muted); line-height: 1.6; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.contact-card { padding: 26px; }
.form-grid { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; color: #dfe7ff; font-weight: 800; }
.field textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.license-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.license-card { padding: 24px; }
.license-card h3 { margin: 0 0 10px; }

.site-footer { border-top: 1px solid var(--line); padding: 54px 0 30px; background: rgba(0,0,0,.24); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { margin: 0 0 14px; }
.footer-grid a { display: block; color: var(--muted); margin: 9px 0; }
.footer-grid a:hover { color: white; }
.footer-bottom { display:flex; justify-content: space-between; gap: 18px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,9,20,.96); flex-direction: column; align-items: stretch; }
    .main-nav.open { display: flex; }
    .main-nav a { margin: 0; }
    .hero-grid, .split, .product-detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 54px; }
    .hero-panel { order: -1; }
    .section-header { display: block; }
    .search-form { margin-left: 0; width: 100%; }
    .search-form input { min-width: 0; }
    .side-stack { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .container { width: min(var(--container), calc(100% - 28px)); }
    .hero h1, .page-hero h1 { letter-spacing: -1px; }
    .trust-row, .product-grid, .category-grid, .process-grid, .license-grid, .stack-card { grid-template-columns: 1fr; }
    .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary, .hero-actions .btn-ghost { width: 100%; }
}

.video-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(0,0,0,.18);
    padding: 26px;
}
.video-card__header { margin-bottom: 20px; }
.video-card__header h2 { margin: 6px 0 10px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -1px; }
.video-card__header p { color: var(--muted); line-height: 1.65; margin: 0; max-width: 720px; }
.video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.3);
    aspect-ratio: 16 / 9;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.compact-video .video-card { padding: 0; border: 0; box-shadow: none; background: transparent; }
.compact-video .video-card__header h2 { font-size: 1.25rem; letter-spacing: 0; }

@media (min-width: 1101px) {
    .category-grid { grid-template-columns: repeat(6, 1fr); }
}
