/* Blade-Corp — site styles
   Palette: deep ink navy base, steel text, "arc" cyan for Build/AI,
   "ember" amber for Run/operations. Type: the system UI font
   (SF Pro on Apple devices, Segoe UI / Roboto elsewhere); SF Mono for console telemetry only. */

:root {
    --ink: #060A16;
    --deep: #0C1328;
    --panel: #111A35;
    --steel: #E8EDF7;
    --muted: #93A0BC;
    --line: rgba(147, 160, 188, 0.18);
    --arc: #38D6F5;
    --ember: #FFB547;

    --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    --f-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    --gutter: clamp(16px, 4vw, 56px);
    --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--steel);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; border-radius: 4px; }

.skip {
    position: absolute; left: -999px; top: 8px;
    background: var(--steel); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px;
    font: 600 15px/1 var(--f-body);
    text-decoration: none; border-radius: 999px;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-solid { background: var(--steel); color: var(--ink); }
.btn-solid:hover { background: var(--arc); }
.btn-ghost { border: 1px solid var(--line); color: var(--steel); }
.btn-ghost:hover { border-color: var(--steel); }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 32px;
    padding: 14px var(--gutter);
    background: rgba(6, 10, 22, 0.78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--steel); }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-name { font: 700 17px/1 var(--f-display); letter-spacing: -0.02em; }
.brand-dash { color: var(--arc); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--steel); }

/* ---------- Hero ---------- */
.hero {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
    padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(56px, 7vw, 96px);
}
.hero-where { color: var(--arc); font-weight: 500; font-size: 15px; margin-bottom: 22px; }
.hero-title {
    font-family: var(--f-display); font-weight: 700;
    font-size: clamp(32px, 4.1vw, 58px); line-height: 1.06; letter-spacing: -0.03em;
}
.hero-title .line { display: block; }
.hero-title .line-2 {
    color: rgba(232, 237, 247, 0.36);
}
.hero-sub { margin-top: 28px; max-width: 34em; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual {
    position: relative; aspect-ratio: 4 / 5; max-height: 640px;
    border-radius: 28px; overflow: hidden;
    background:
        radial-gradient(120% 80% at 70% 20%, rgba(56, 214, 245, 0.10), transparent 60%),
        var(--deep);
    border: 1px solid var(--line);
}
#coast { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-note {
    position: absolute; top: 16px; right: 18px;
    font: 400 11px/1 var(--f-mono); color: var(--muted); opacity: .7;
}

.console {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    background: rgba(6, 10, 22, 0.86);
    border: 1px solid var(--line); border-radius: 14px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-family: var(--f-mono); font-size: 12.5px;
}
.console-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.console-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.console-title { margin-left: 8px; }
.console-live { margin-left: auto; color: var(--arc); display: flex; align-items: center; gap: 6px; }
.console-live::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--arc);
    animation: blink 1.6s ease-in-out infinite;
}
.console-feed { list-style: none; padding: 10px 14px 12px; height: calc(5 * 1.75em + 22px); overflow: hidden; }
.console-feed li { display: flex; gap: 10px; white-space: nowrap; line-height: 1.75; }
.console-feed .t { color: var(--muted); opacity: .7; }
.console-feed .ok { color: var(--arc); }
.console-feed .warn { color: var(--ember); }
.console-feed .msg { overflow: hidden; text-overflow: ellipsis; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Build / Run split ---------- */
.split {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 0 var(--gutter);
    gap: 0;
}
.pillar {
    padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 80px;
}
.pillar-build { border-right: 1px solid var(--line); padding-left: 0; }
.pillar-run { padding-right: 0; }
.pillar-title {
    font: 700 clamp(40px, 5vw, 68px)/1 var(--f-display); letter-spacing: -0.035em;
}
.pillar-build .pillar-title { color: var(--arc); }
.pillar-run .pillar-title { color: var(--ember); }
.pillar-lede { margin-top: 18px; font-size: 19px; max-width: 26em; }
.cap-list { list-style: none; padding: 0; margin-top: 40px; }
.cap-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.cap-list h3 { font-size: 18px; font-weight: 600; }
.cap-list p { color: var(--muted); margin-top: 4px; max-width: 36em; }

/* ---------- Section titles ---------- */
.section-title {
    font: 600 clamp(26px, 3.2vw, 42px)/1.12 var(--f-display); letter-spacing: -0.025em;
    max-width: 22em;
}

/* ---------- Lifecycle ---------- */
.lifecycle {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.steps {
    list-style: none; padding: 0; margin-top: 48px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    counter-reset: none;
}
.steps li {
    position: relative; padding: 28px 28px 0 0;
    border-top: 2px solid var(--line);
}
.steps li::before {
    content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0;
    background: var(--arc); transition: width .9s cubic-bezier(.2,.7,.2,1);
}
.steps.is-on li::before { width: 100%; }
.steps.is-on li:nth-child(2)::before { transition-delay: .25s; }
.steps.is-on li:nth-child(3)::before { transition-delay: .5s; }
.steps.is-on li:nth-child(4)::before { transition-delay: .75s; background: var(--ember); }
.step-n { font: 600 14px/1 var(--f-mono); color: var(--muted); }
.steps h3 { font: 600 22px/1.2 var(--f-display); margin: 14px 0 10px; letter-spacing: -0.02em; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- Industries ---------- */
.industries {
    background: var(--deep);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: clamp(64px, 9vw, 120px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    scroll-margin-top: 60px;
}
.ind-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.ind-sub { color: var(--muted); }
.ind-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px;
}
.ind-tabs button {
    font: 500 15px/1 var(--f-body); color: var(--muted);
    background: transparent; border: 1px solid var(--line); border-radius: 999px;
    min-height: 44px; padding: 0 20px; cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}
.ind-tabs button:hover { color: var(--steel); border-color: var(--muted); }
.ind-tabs button[aria-selected="true"] { background: var(--steel); color: var(--ink); border-color: var(--steel); }
.ind-panel {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
    margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line);
}
.ind-panel[hidden] { display: none; }
.ind-panel:not([hidden]) { animation: panelIn .35s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
.ind-claim { font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--f-display); letter-spacing: -0.02em; max-width: 20em; }
.ind-panel ul { list-style: none; padding: 0; }
.ind-panel li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; }
.ind-panel li::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
    border: 1.5px solid var(--arc); transform: rotate(45deg);
}

/* ---------- Architecture / 30 ---------- */
.architecture {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center;
    padding: clamp(64px, 9vw, 130px) var(--gutter);
    scroll-margin-top: 60px;
}
.big-30 {
    font: 700 clamp(160px, 26vw, 360px)/0.8 var(--f-display); letter-spacing: -0.06em;
    background: linear-gradient(180deg, var(--steel) 10%, rgba(232,237,247,0.08) 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.arch-copy p { color: var(--muted); margin-top: 20px; max-width: 34em; }

/* ---------- Contact ---------- */
.contact {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) var(--gutter);
    border-top: 1px solid var(--line);
    scroll-margin-top: 60px;
}
.contact-title { font: 700 clamp(28px, 4.2vw, 56px)/1.05 var(--f-display); letter-spacing: -0.03em; max-width: 18em; }
.contact-offices { color: var(--muted); margin-top: 36px; font: 400 14px/1.5 var(--f-mono); letter-spacing: 0.02em; }
.contact-sub { color: var(--muted); margin-top: 20px; font-size: 18px; }

/* ---------- Footer ---------- */
.footer {
    display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center;
    padding: 28px var(--gutter); border-top: 1px solid var(--line);
    color: var(--muted); font-size: 14px;
}
.footer .brand-name { color: var(--steel); font-size: 15px; }
.footer span:last-child { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { aspect-ratio: 1 / 1; }
    .split { grid-template-columns: 1fr; }
    .pillar-build { border-right: 0; padding-right: 0; }
    .pillar-run { padding-left: 0; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .ind-panel { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav { gap: 12px; }
    .nav-links { display: none; }
    .nav .btn { margin-left: auto; }
    .hero-visual { aspect-ratio: 4 / 5; }
    .steps { grid-template-columns: 1fr; }
    .architecture { grid-template-columns: 1fr; }
    .footer span:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
