/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; color: #0d1119; background: white; -webkit-font-smoothing: antialiased; }

/* ── CSS Variables ── */
:root {
    --ink: #0d1119;
    --ink-soft: #4a5568;
    --accent: #e8601c;
    --accent-warm: #f59e44;
    --teal: #1a6b6b;
    --border: #e2e8f0;
    --surface: #f8f8f6;
    --muted: #94a3b8;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.1; letter-spacing: -0.5px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--ink-soft); }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(13,17,25,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; font-weight: 700; color: white; }
.nav-logo-name { font-size: 15px; font-weight: 600; color: white; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.nav-links a:hover { color: white; }
.nav-cta { background: var(--accent); color: white !important; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.15s !important; }
.nav-cta:hover { background: #d05518 !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: white; font-size: 22px; }

/* ── Sections ── */
.section { padding: 100px 48px; }
.section.dark { background: var(--ink); }
.section.surface { background: var(--surface); }
.section.white { background: white; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 16px; color: var(--accent); }
.eyebrow.teal { color: var(--teal); }
.eyebrow.light { color: rgba(255,255,255,0.35); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #d05518; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,96,28,0.3); }
.btn-ghost { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.12); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── 2-col grid ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

/* ── Cards ── */
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

/* ── Dark card ── */
.card-dark { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 28px; }
.card-dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Product cards ── */
.product-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 36px; position: relative; overflow: hidden; }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.product-card.teal::before { background: var(--teal); }

/* ── Stats ── */
.stat-row { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 56px; margin-top: 56px; }
.stat { flex: 1; padding: 0 40px; border-right: 1px solid rgba(255,255,255,0.08); text-align: center; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 48px; font-weight: 700; color: white; letter-spacing: -2px; margin-bottom: 6px; }
.stat span { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── Process steps ── */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: white; padding: 28px 24px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: white; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Industry tags ── */
.industry-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-tag { background: white; border: 1px solid var(--border); border-radius: 100px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.industry-tag span { font-size: 16px; }

/* ── Code block visual ── */
.code-visual { background: #0d1119; border-radius: var(--radius); padding: 24px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; border: 1px solid rgba(255,255,255,0.08); }
.cv-comment { color: #64748b; }
.cv-keyword { color: #7c3aed; }
.cv-string { color: #059669; }
.cv-fn { color: #2563eb; }
.cv-var { color: #e8601c; }
.cv-text { color: rgba(255,255,255,0.7); }

/* ── Form ── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink); margin-bottom: 7px; }
.field-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; color: var(--ink); background: white; transition: border-color 0.15s; font-family: var(--sans); }
.field-input:focus { outline: none; border-color: var(--accent); }
textarea.field-input { resize: vertical; min-height: 120px; }

/* ── Footer ── */
.footer { background: #070a10; padding: 64px 48px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.25); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.45); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.2); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; gap: 48px; }
    .two-col.flip { direction: ltr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-dark-grid { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stat-row { flex-direction: column; gap: 24px; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 0 24px; }
    .stat:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .section { padding: 72px 24px; }
    .card-grid { grid-template-columns: 1fr; }
    .card-dark-grid { grid-template-columns: 1fr; }
    .step-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer { padding: 48px 24px 32px; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Blazor loading ── */
.loading-progress { position: relative; display: block; width: 8rem; height: 8rem; margin: 20vh auto 1rem auto; }
.loading-progress circle { fill: none; stroke: #e0e0e0; stroke-width: 0.6rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: var(--accent); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; transition: stroke-dasharray 0.05s ease-in-out; }
.loading-progress-text { position: absolute; text-align: center; font-weight: bold; inset: calc(20vh + 3.25rem) 0 auto 0.2rem; }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }
#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.2); display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000; }
