/* NG TECH — institutional design layer.
   Palette taken from the NG TECH mark: cyan -> blue -> indigo on deep navy. */

:root {
    --ng-ink: #0b1220;
    --ng-night: #0e1628;
    --ng-cyan: #06c8f0;
    --ng-sky: #38bdf8;
    --ng-blue: #2563eb;
    --ng-indigo: #3730a3;
    --ng-text: #0f172a;
    --ng-muted: #475569;
    --ng-line: #e2e8f0;
    --ng-surface: #f8fafc;
    --ng-gradient: linear-gradient(100deg, #06c8f0 0%, #2563eb 55%, #3730a3 100%);
    --ng-radius: 14px;
}

body.ng-body {
    background: #ffffff;
    color: var(--ng-text);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.font-display,
.ng-display {
    font-family: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.ng-gradient-text {
    background: var(--ng-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ng-dark .ng-gradient-text {
    background: linear-gradient(100deg, #22d3ee 0%, #60a5fa 55%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------- Navigation ---------- */
.ng-nav {
    background: rgba(11, 18, 32, .97);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background-color .2s ease, box-shadow .2s ease;
}

.ng-nav.is-scrolled {
    background: rgba(11, 18, 32, .94);
    box-shadow: 0 10px 30px rgba(2, 6, 23, .25);
}

.ng-nav-link {
    position: relative;
    padding: .5rem .75rem;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: .9rem;
    font-weight: 500;
    transition: color .15s ease, background-color .15s ease;
}

.ng-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.ng-nav-link[aria-current="page"] { color: #fff; }

.ng-nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ng-gradient);
}

/* ---------- Buttons ---------- */
.ng-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.9rem;
    padding: .7rem 1.25rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ng-btn svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

.ng-btn:focus-visible { outline: 3px solid rgba(56, 189, 248, .55); outline-offset: 2px; }

.ng-btn-primary {
    background: var(--ng-gradient);
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .28);
}

.ng-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(37, 99, 235, .36); }

.ng-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
}

.ng-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }

.ng-btn-outline {
    border: 1px solid var(--ng-line);
    background: #fff;
    color: var(--ng-text);
}

.ng-btn-outline:hover { border-color: #93c5fd; color: var(--ng-blue); }

.ng-btn-sm { min-height: 2.4rem; padding: .5rem .95rem; font-size: .875rem; }

.ng-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--ng-blue);
    font-weight: 600;
}

.ng-link svg { width: 1rem; height: 1rem; transition: transform .15s ease; }
.ng-link:hover svg { transform: translateX(3px); }

/* ---------- Sections ---------- */
.ng-dark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ng-ink);
    color: #fff;
}

.ng-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(37, 99, 235, .28), transparent 60%),
        radial-gradient(40rem 26rem at -5% 110%, rgba(6, 200, 240, .14), transparent 60%);
}

.ng-dark.ng-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 70%);
}

.ng-surface { background: var(--ng-surface); }

.ng-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ng-blue);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ng-eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ng-gradient);
}

.ng-dark .ng-eyebrow { color: #7dd3fc; }

.ng-lead { color: var(--ng-muted); font-size: 1.125rem; line-height: 1.8; }
.ng-dark .ng-lead { color: #cbd5e1; }

.ng-prose p { color: var(--ng-muted); line-height: 1.85; }
.ng-prose p + p { margin-top: 1.1rem; }

/* ---------- Cards ---------- */
.ng-card {
    position: relative;
    border: 1px solid var(--ng-line);
    border-radius: var(--ng-radius);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ng-card-hover:hover {
    border-color: #bfdbfe;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.ng-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 200, 240, .14), rgba(55, 48, 163, .14));
    color: var(--ng-blue);
}

.ng-icon svg { width: 1.35rem; height: 1.35rem; }

.ng-dark .ng-icon { background: rgba(255, 255, 255, .07); color: #7dd3fc; }

.ng-glass {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--ng-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
}

.ng-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .75rem;
    font-weight: 600;
}

.ng-badge-live { background: #ecfdf5; color: #047857; }
.ng-badge-live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #10b981; }

.ng-check {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    color: #334155;
    line-height: 1.55;
}

.ng-check svg { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex-shrink: 0; color: var(--ng-blue); }
.ng-dark .ng-check { color: #cbd5e1; }
.ng-dark .ng-check svg { color: #7dd3fc; }

/* ---------- Hero visual ---------- */
.ng-hero-visual {
    position: relative;
    min-height: 26rem;
}

.ng-hero-orbit {
    position: absolute;
    inset: 8% 6%;
    border: 1px dashed rgba(125, 211, 252, .22);
    border-radius: 50%;
}

.ng-hero-orbit.is-inner { inset: 24% 22%; border-style: solid; border-color: rgba(129, 140, 248, .18); }

.ng-hero-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 18px 50px rgba(37, 99, 235, .45));
}

.ng-float {
    position: absolute;
    width: min(16.5rem, 62%);
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(14, 22, 40, .86);
    box-shadow: 0 24px 60px rgba(2, 6, 23, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ng-float-1 { top: 2%; left: 0; }
.ng-float-2 { bottom: 4%; right: 0; }
.ng-float-3 { top: 40%; right: -2%; width: auto; padding: .55rem .8rem; }

.ng-track { height: .5rem; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ng-track span { display: block; height: 100%; border-radius: inherit; background: var(--ng-gradient); }

.ng-keyframes { display: grid; gap: .4rem; }
.ng-keyframes > div { position: relative; height: .55rem; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.ng-keyframes > div > span { position: absolute; top: 0; height: 100%; border-radius: inherit; }

.ng-bubble {
    max-width: 85%;
    padding: .45rem .7rem;
    border-radius: 12px;
    font-size: .75rem;
    line-height: 1.4;
}

.ng-bubble-in { background: rgba(255, 255, 255, .08); color: #e2e8f0; border-bottom-left-radius: 4px; }
.ng-bubble-out { margin-left: auto; background: linear-gradient(135deg, #2563eb, #3730a3); color: #fff; border-bottom-right-radius: 4px; }

/* ---------- Product visuals ---------- */
.ng-product-visual {
    position: relative;
    overflow: hidden;
    border-radius: var(--ng-radius);
    background: var(--ng-night);
    color: #fff;
}

.ng-product-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(30rem 18rem at 100% 0%, rgba(37, 99, 235, .35), transparent 60%);
}

.ng-product-visual > * { position: relative; }

/* ---------- Founder ---------- */
.ng-portrait-frame { position: relative; margin: 0; }

.ng-portrait {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: #fdfdfd;
}

.ng-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.ng-portrait-caption {
    position: absolute;
    left: 50%;
    bottom: -1.25rem;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: .65rem 1.1rem;
    border: 1px solid var(--ng-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 40px rgba(2, 6, 23, .18);
}

.ng-avatar {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #fdfdfd;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37, 99, 235, .35);
}

.ng-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.ng-portrait-ring { padding: 3px; border-radius: 21px; background: var(--ng-gradient); }

.ng-quote {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid transparent;
    border-image: var(--ng-gradient) 1;
}

/* ---------- Timeline ---------- */
.ng-timeline { position: relative; }

.ng-timeline::before {
    content: "";
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    left: .45rem;
    width: 2px;
    background: linear-gradient(180deg, #06c8f0, #2563eb 60%, #3730a3);
    opacity: .5;
}

.ng-timeline-item { position: relative; padding-left: 2.25rem; }
.ng-timeline-item + .ng-timeline-item { margin-top: 1.75rem; }

.ng-timeline-item::before {
    content: "";
    position: absolute;
    top: .35rem;
    left: 0;
    width: 1rem;
    height: 1rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--ng-blue);
    box-shadow: 0 0 0 1px #bfdbfe;
}

.ng-timeline-item.is-key::before { background: var(--ng-gradient); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }

/* ---------- Forms ---------- */
.ng-input {
    display: block;
    width: 100%;
    margin-top: .4rem;
    padding: .75rem .9rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--ng-text);
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ng-input:focus { outline: none; border-color: var(--ng-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.ng-textarea { min-height: 9rem; resize: vertical; }

.ng-alert { border-radius: 10px; padding: .85rem 1rem; font-size: .95rem; font-weight: 500; }
.ng-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ng-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Legal ---------- */
.ng-legal h2 { margin-top: 2rem; color: var(--ng-text); font-size: 1.2rem; font-weight: 700; }
.ng-legal h2:first-child { margin-top: 0; }
.ng-legal p { margin-top: .6rem; color: var(--ng-muted); line-height: 1.8; }

/* ---------- Footer ---------- */
.ng-footer a { color: #94a3b8; transition: color .15s ease; }
.ng-footer a:hover { color: #fff; }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .ng-btn, .ng-card { transition: none; }
}

@media (max-width: 640px) {
    .ng-hero-visual { min-height: 21rem; }
    .ng-float { width: min(14rem, 70%); }
    .ng-float-3 { display: none; }
}

/* ---------- Product screenshots ---------- */
.ng-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ng-line);
    border-radius: var(--ng-radius);
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.ng-shot-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .8rem;
    border-bottom: 1px solid var(--ng-line);
    background: #f8fafc;
}

.ng-shot-dots { display: inline-flex; gap: .35rem; }
.ng-shot-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #cbd5e1; }

.ng-shot-url {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    max-width: 18rem;
    margin: 0 auto;
    padding: .2rem .75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ng-line);
    color: #64748b;
    font-size: .75rem;
}

.ng-shot img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }

.ng-card > .ng-shot { border: 0; border-bottom: 1px solid var(--ng-line); border-radius: 0; box-shadow: none; }

/* ---------- Meta Tech Provider ---------- */
.ng-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    padding: .3rem .75rem;
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 600;
}

.ng-meta-badge svg { width: .95rem; height: .95rem; }
.ng-dark .ng-meta-badge { border-color: rgba(125, 211, 252, .3); background: rgba(56, 189, 248, .1); color: #bae6fd; }

/* Layout helpers kept in plain CSS (independent of the compiled Tailwind build). */
.ng-meta-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow: hidden;
    padding: 1.75rem;
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.ng-meta-point {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #fff;
}

.ng-product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

@media (min-width: 640px) { .ng-meta-card { padding: 2.5rem; } }
@media (min-width: 768px) { .ng-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ng-meta-card { grid-template-columns: 1.25fr .75fr; align-items: center; } }
@media (min-width: 1280px) { .ng-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ng-motto {
    position: relative;
    margin-top: 1.75rem;
    padding-left: 1.25rem;
    border-left: 3px solid transparent;
    border-image: var(--ng-gradient) 1;
}

/* ---------- Leadership highlights ---------- */
.ng-highlights { display: grid; grid-template-columns: 1fr; }
.ng-highlight { display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem 0; border-bottom: 1px solid var(--ng-line); }
.ng-highlight:last-child { border-bottom: 0; }

@media (min-width: 768px) {
    .ng-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ng-highlight { padding: 2.25rem 2rem; border-bottom: 0; border-left: 1px solid var(--ng-line); }
    .ng-highlight:first-child { padding-left: 0; border-left: 0; }
}
.ng-highlight dd { order: -1; }
