/* ============================================================
   ABIBASOFT — styles.css
   Design language: "Ölçemiyorsanız, yönetemezsiniz."
   Engineering-datasheet & telemetry aesthetic.
   Structure: tokens → base → components → sections → responsive
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
    /* Ink & paper */
    --ink: #10182b;
    --ink-2: #45506b;
    --ink-3: #7d869e;
    --paper: #fbfcfe;
    --paper-2: #f2f5fa;
    --line: #e2e7f0;
    --line-strong: #cfd6e4;

    /* Dark "control room" surfaces */
    --navy: #0c1424;
    --navy-2: #121d33;
    --navy-line: rgba(255, 255, 255, 0.08);

    /* Brand */
    --brand: #1691d0;          /* Abibasoft logo blue */
    --blue: #1287c4;           /* primary action (AA on white) */
    --blue-ink: #0d6da0;

    /* Product palette */
    --red: #ca090f;            /* Kilardar */
    --red-dark: #b2080d;
    --p-blue: #2563eb;         /* Gemba */
    --green: #0e9f78;          /* Servora */
    --violet: #7c5cd6;         /* Kalixe */
    --coral: #e0704f;          /* Gennui */

    /* Type */
    --font-display: 'Sora', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --container: 1160px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 43, 0.05);
    --shadow-md: 0 6px 24px rgba(16, 24, 43, 0.07);
    --shadow-lg: 0 16px 48px rgba(16, 24, 43, 0.10);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

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

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.mono { font-family: var(--font-mono); }

/* Section rhythm */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--navy); color: #aeb6c9; }

/* Datasheet-style section header (left aligned, numbered like a spec doc) */
.sec-head { max-width: 720px; margin-bottom: 3.5rem; }

.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.1rem;
}

.sec-eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

.section-dark .sec-eyebrow { color: var(--brand); }
.section-dark .sec-eyebrow::before { background: var(--brand); }

.sec-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-dark .sec-title { color: #f4f6fb; }

.sec-desc {
    font-size: 1.04rem;
    color: var(--ink-2);
    line-height: 1.8;
}

.section-dark .sec-desc { color: #97a1b8; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.94rem;
    font-family: var(--font-body);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn i { font-size: 0.8rem; }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 16px rgba(18, 135, 196, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(18, 135, 196, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line-strong);
}

.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Reveal animation (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   3. NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 2rem;
    background: rgba(251, 252, 254, 0);
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(251, 252, 254, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding: 0.65rem 2rem;
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.4px;
    flex-shrink: 0;
}

.logo .lt { font-weight: 300; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    list-style: none;
}

.nav-link {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.25s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-sm);
}

.nav-cta::after { display: none; }
.nav-cta:hover { opacity: 0.92; }

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* --- Language dropdown (Kilardar-style) --- */
.lang {
    position: relative;
    z-index: 1002;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-btn:hover { border-color: var(--blue); color: var(--blue); }

.lang-btn .fa-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.25s var(--ease);
}

.lang.open .lang-btn .fa-chevron-down { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.4rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.lang.open .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--ink-2);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-option:hover { background: var(--paper-2); color: var(--ink); }

.lang-option.active {
    background: rgba(18, 135, 196, 0.08);
    color: var(--blue);
    font-weight: 600;
}

.lang-option .flag { font-size: 1rem; line-height: 1; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1003;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   4. HERO  — telemetry signature
   ============================================================ */
.hero {
    position: relative;
    padding: 9.5rem 0 0;
    background:
        radial-gradient(ellipse 60% 50% at 85% 10%, rgba(22, 145, 208, 0.07), transparent 60%),
        radial-gradient(ellipse 50% 40% at 5% 90%, rgba(124, 92, 214, 0.05), transparent 60%),
        var(--paper);
    overflow: hidden;
}

/* blueprint grid */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(18, 135, 196, 0.07);
    border: 1px solid rgba(18, 135, 196, 0.16);
    border-radius: 100px;
    padding: 0.5rem 1.1rem;
    margin-bottom: 1.8rem;
}

.hero h1 {
    font-size: 3.7rem;
    font-weight: 800;
    letter-spacing: -1.8px;
    color: var(--ink);
    margin-bottom: 1.4rem;
}

.hero h1 .hl {
    color: var(--blue);
    position: relative;
    white-space: nowrap;
}

/* measurement-tick underline on the highlighted word */
.hero h1 .hl::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 7px;
    background-image:
        linear-gradient(var(--blue), var(--blue)),
        repeating-linear-gradient(90deg, var(--blue) 0 2px, transparent 2px 12px);
    background-size: 100% 2px, 100% 5px;
    background-position: bottom left, top left;
    background-repeat: no-repeat;
    opacity: 0.85;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--ink-2);
    line-height: 1.85;
    max-width: 520px;
    margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* --- Telemetry panel --- */
.telemetry {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1.6rem 1.3rem;
    max-width: 470px;
    justify-self: end;
    width: 100%;
}

/* drawing-corner brackets */
.telemetry::before,
.telemetry::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--brand);
    opacity: 0.55;
}

.telemetry::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.telemetry::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

.tl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 1.1rem;
}

.tl-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--ink-2);
}

.tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(14, 159, 120, 0.5);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 159, 120, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(14, 159, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 159, 120, 0); }
}

.tl-time {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-3);
}

.tl-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.tl-value {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1;
}

.tl-value .unit { font-size: 1.4rem; color: var(--red); font-weight: 500; }

.tl-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: var(--ink-3);
    text-transform: uppercase;
    text-align: right;
    line-height: 1.5;
}

.tl-spark {
    width: 100%;
    height: 56px;
    margin: 0.4rem 0 1rem;
}

.tl-spark polyline {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tl-spark .area { fill: rgba(22, 145, 208, 0.08); stroke: none; }

.tl-rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tl-row {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem;
    text-align: center;
}

.tl-row b {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.tl-row b .ok { color: var(--green); }

.tl-row span {
    font-size: 0.68rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tl-flow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--ink-3);
    text-transform: uppercase;
}

.tl-flow .wire {
    flex: 1;
    height: 2px;
    background-image: repeating-linear-gradient(90deg, var(--brand) 0 7px, transparent 7px 14px);
    animation: flow 1.1s linear infinite;
    opacity: 0.8;
}

@keyframes flow { to { background-position: 14px 0; } }

.tl-flow .k { color: var(--red); font-weight: 600; }
.tl-flow .g { color: var(--coral); font-weight: 600; }

/* --- Stats strip (datasheet ruler) --- */
.stats-strip {
    position: relative;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
}

/* ruler ticks along the top edge */
.stats-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 28px);
    opacity: 0.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.9rem 0;
}

.stat { text-align: center; position: relative; }

.stat + .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    width: 1px;
    background: var(--line);
}

.stat-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.stat-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.15rem;
}

/* ============================================================
   5. ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
    align-items: start;
}

.about-grid .sec-head { margin-bottom: 1.6rem; }

.motto {
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    background: #fff;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.2rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.motto small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--ink-3);
    text-transform: uppercase;
}

.about-body > p {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 2rem;
}

.value-list { list-style: none; }

.value-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
}

.value-item:last-child { border-bottom: 1px solid var(--line); }

.value-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.vi-blue { background: rgba(18, 135, 196, 0.08); color: var(--blue); }
.vi-green { background: rgba(14, 159, 120, 0.08); color: var(--green); }
.vi-violet { background: rgba(124, 92, 214, 0.08); color: var(--violet); }

.value-item h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.25rem; }
.value-item p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.7; }

/* ============================================================
   6. PRODUCTS — datasheet rows
   ============================================================ */
.product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.product:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product:last-child { margin-bottom: 0; }

/* part-number header strip */
.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.8rem;
    border-bottom: 1px solid var(--line);
    background:
        repeating-linear-gradient(90deg, transparent 0 26px, rgba(16, 24, 43, 0.025) 26px 27px);
}

.part-no {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.part-no .idx { color: var(--ink-3); margin-right: 0.7rem; }

.p-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
}

.p-chip i { font-size: 0.7rem; }

.product-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    padding: 2.2rem 1.8rem 2.4rem;
    align-items: start;
}

.product-name {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 0.2rem;
}

.product-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-3);
    margin-bottom: 1rem;
}

.product-desc {
    font-size: 0.93rem;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.feat-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1.2rem;
}

.feat-grid li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: var(--ink-2);
}

.feat-grid li i { font-size: 0.72rem; margin-top: 0.35rem; flex-shrink: 0; }

/* spec sheet card */
.spec {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.spec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.spec-rows { border-top: 1px solid var(--line); }

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.62rem 1.1rem;
    font-size: 0.82rem;
    border-bottom: 1px dashed var(--line);
}

.spec-row:last-child { border-bottom: none; }

.spec-row .sk { color: var(--ink-3); flex-shrink: 0; }

.spec-row .sv {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink);
    text-align: right;
}

.spec-row .sv .dot-ok { color: var(--green); }
.spec-row .sv .dot-soon { color: var(--coral); }

.spec-cta { padding: 1rem 1.1rem; border-top: 1px solid var(--line); }

.btn-product {
    width: 100%;
    justify-content: center;
    color: #fff;
    font-size: 0.88rem;
    padding: 0.72rem 1.2rem;
}

.btn-product:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-soon { opacity: 0.65; cursor: default; }
.btn-soon:hover { transform: none; box-shadow: none; }

/* per-product color hooks */
.p-red    { --pc: var(--red); }
.p-pblue  { --pc: var(--p-blue); }
.p-green  { --pc: var(--green); }
.p-violet { --pc: var(--violet); }
.p-coral  { --pc: var(--coral); }

.product .part-no { color: var(--pc); }
.product .p-chip { background: color-mix(in srgb, var(--pc) 9%, #fff); color: var(--pc); }
.product .product-name { color: var(--ink); }
.product .feat-grid li i { color: var(--pc); }
.product .spec-head { background: color-mix(in srgb, var(--pc) 7%, #fff); color: var(--pc); }
.product .btn-product { background: var(--pc); }
.product:hover { border-color: color-mix(in srgb, var(--pc) 35%, var(--line)); }

/* fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red 50%, white)) {
    .p-red .p-chip, .p-red .spec-head { background: rgba(202, 9, 15, 0.08); }
    .p-pblue .p-chip, .p-pblue .spec-head { background: rgba(37, 99, 235, 0.08); }
    .p-green .p-chip, .p-green .spec-head { background: rgba(14, 159, 120, 0.08); }
    .p-violet .p-chip, .p-violet .spec-head { background: rgba(124, 92, 214, 0.08); }
    .p-coral .p-chip, .p-coral .spec-head { background: rgba(224, 112, 79, 0.08); }
}

/* ============================================================
   7. ECOSYSTEM — integration bus (dark)
   ============================================================ */
.eco { position: relative; overflow: hidden; }

.eco::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--navy-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 80%);
    pointer-events: none;
}

.eco .container { position: relative; }

.bus { margin-top: 1rem; }

.bus-nodes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
}

.bus-node { text-align: center; }

.bus-card {
    background: var(--navy-2);
    border: 1px solid var(--navy-line);
    border-top: 3px solid var(--pc);
    border-radius: var(--radius-md);
    padding: 1.3rem 0.9rem 1.1rem;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.bus-card .bi {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.7rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--pc);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--navy-line);
}

.bus-card h4 { color: #eef1f7; font-size: 0.98rem; font-weight: 700; margin-bottom: 0.1rem; }
.bus-card p { font-size: 0.74rem; color: #8f99b1; }

/* animated connector stems */
.bus-stem {
    width: 2px;
    height: 44px;
    margin: 0 auto;
    background-image: repeating-linear-gradient(180deg, var(--pc) 0 6px, transparent 6px 12px);
    animation: flow-v 1.2s linear infinite;
    opacity: 0.75;
}

@keyframes flow-v { to { background-position: 0 12px; } }

.bus-stem::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin-left: -3px;
    margin-top: 40px;
    border-radius: 50%;
    background: var(--pc);
}

/* the bus line */
.bus-line {
    position: relative;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--red), var(--p-blue), var(--green), var(--violet), var(--coral));
    box-shadow: 0 0 22px rgba(22, 145, 208, 0.45);
}

.bus-label {
    margin-top: 1.1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #8f99b1;
}

.bus-label i { color: var(--brand); margin-right: 0.5rem; }

/* integration notes */
.eco-notes {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.eco-note {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--navy-line);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
}

.eco-note i { color: var(--brand); margin-top: 0.3rem; font-size: 0.9rem; }
.eco-note h4 { color: #e8ecf4; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.15rem; }
.eco-note p { font-size: 0.8rem; color: #8f99b1; line-height: 1.65; }

/* mobile bus fallback (vertical) */
.bus-mobile { display: none; }

/* ============================================================
   8. WHY US — editorial list
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3.5rem;
}

.why-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}

.why-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.why-item h3 {
    font-size: 1.03rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.why-item h3 .wno {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-3);
    letter-spacing: 1px;
}

.why-item p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.7; }

/* ============================================================
   9. CAPABILITIES — bento
   ============================================================ */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.cap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cap:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.cap-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: flex-start; position: relative; }

@media (min-width: 861px) {
    .cap-wide { grid-column: span 3; }
    .cap-grid { grid-template-columns: repeat(6, 1fr); }
    .cap-wide { grid-column: span 3; }
    .cap-sm { grid-column: span 2; }
}

/* corner brackets on featured cards */
.cap-wide::before,
.cap-wide::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--line-strong);
}

.cap-wide::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0; }
.cap-wide::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 3px 0; }

.cap-ic {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.cap-wide .cap-ic { margin-bottom: 0; }

.ci-blue { background: rgba(18, 135, 196, 0.08); color: var(--blue); }
.ci-green { background: rgba(14, 159, 120, 0.08); color: var(--green); }
.ci-violet { background: rgba(124, 92, 214, 0.08); color: var(--violet); }
.ci-coral { background: rgba(224, 112, 79, 0.08); color: var(--coral); }
.ci-red { background: rgba(202, 9, 15, 0.07); color: var(--red); }
.ci-pblue { background: rgba(37, 99, 235, 0.08); color: var(--p-blue); }

.cap h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.5rem; }
.cap h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.cap p { font-size: 0.86rem; color: var(--ink-2); line-height: 1.7; }

.cap-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    margin-top: 0.8rem;
}

.cap-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--ink-2);
}

.cap-list li i { color: var(--green); font-size: 0.68rem; margin-top: 0.35rem; }

/* ============================================================
   10. CTA BAND
   ============================================================ */
.cta {
    position: relative;
    background: linear-gradient(115deg, var(--navy) 0%, #0e2a45 55%, var(--blue-ink) 100%);
    padding: 4.2rem 0;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 80% 50%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 100% at 80% 50%, #000, transparent 70%);
}

.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.cta h2 {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.cta p { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; }

/* ============================================================
   11. CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.7rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.contact-ic {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }

.contact-card a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s var(--ease);
    display: block;
}

.contact-card a:hover { color: var(--blue); }

.contact-note {
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    color: #8f99b1;
    padding: 4rem 0 1.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1.1fr 0.9fr 1.1fr;
    gap: 3rem;
    padding-bottom: 2.6rem;
    border-bottom: 1px solid var(--navy-line);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    display: inline-block;
    margin-bottom: 0.9rem;
}

.footer-logo .lt { font-weight: 300; color: rgba(255, 255, 255, 0.7); }

.footer-brand p { font-size: 0.86rem; line-height: 1.7; }

.footer-addr {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.84rem;
}

.footer-addr i { color: var(--brand); font-size: 0.74rem; margin-top: 0.4rem; }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--navy-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f99b1;
    text-decoration: none;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8ecf4;
    margin-bottom: 1.1rem;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #8f99b1;
    text-decoration: none;
    font-size: 0.86rem;
    padding: 0.28rem 0;
    transition: color 0.25s var(--ease);
}

.footer-col a:hover { color: #fff; }
.footer-col a i { font-size: 0.68rem; width: 14px; }

.f-soon { display: block; font-size: 0.86rem; color: #5d6781; padding: 0.28rem 0; }
.f-soon em { font-style: normal; font-size: 0.72rem; color: var(--coral); }

.footer-bottom {
    padding-top: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.78rem; color: #5d6781; }

.footer-stamp {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: #5d6781;
    text-transform: uppercase;
}

.footer-stamp i { color: var(--brand); margin-right: 0.4rem; }

/* ============================================================
   13. WHATSAPP FAB
   ============================================================ */
.wa-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 998;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wa-fab:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45); }

/* ============================================================
   14. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal { opacity: 1; transform: none; }
    .tl-flow .wire, .bus-stem { animation: none; }
}

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .sec-title { font-size: 2.1rem; }
    .hero-grid { gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .telemetry { justify-self: start; max-width: 520px; }
    .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .product-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .why-grid { grid-template-columns: 1fr; gap: 0; }
    .eco-notes { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }

    /* bus → vertical timeline */
    .bus-desktop { display: none; }
    .bus-mobile { display: block; position: relative; padding-left: 1.4rem; }
    .bus-mobile::before {
        content: '';
        position: absolute;
        left: 5px;
        top: 8px;
        bottom: 8px;
        width: 3px;
        border-radius: 3px;
        background: linear-gradient(180deg, var(--red), var(--p-blue), var(--green), var(--violet), var(--coral));
    }
    .bus-m-item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.9rem;
        background: var(--navy-2);
        border: 1px solid var(--navy-line);
        border-radius: var(--radius-md);
        padding: 0.95rem 1.1rem;
        margin-bottom: 0.8rem;
    }
    .bus-m-item::before {
        content: '';
        position: absolute;
        left: -1.4rem;
        top: 50%;
        transform: translate(-1px, -50%);
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--pc);
        box-shadow: 0 0 8px var(--pc);
    }
    .bus-m-item .bi {
        width: 36px; height: 36px; border-radius: var(--radius-sm);
        display: flex; align-items: center; justify-content: center;
        color: var(--pc); background: rgba(255,255,255,0.05);
        border: 1px solid var(--navy-line); font-size: 0.9rem; flex-shrink: 0;
    }
    .bus-m-item h4 { color: #eef1f7; font-size: 0.95rem; font-weight: 700; }
    .bus-m-item p { font-size: 0.76rem; color: #8f99b1; }
}

@media (max-width: 860px) {
    .cap-grid { grid-template-columns: 1fr 1fr; }
    .cap-wide { grid-column: span 2; grid-template-columns: 1fr; }
    .cap-sm { grid-column: span 1; }
}

@media (max-width: 768px) {
    .section { padding: 4.5rem 0; }
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        gap: 1.6rem;
        box-shadow: -8px 0 30px rgba(16, 24, 43, 0.15);
        transition: right 0.3s var(--ease);
        z-index: 1001;
    }

    .nav-menu.active { right: 0; }
    .nav-cta { padding: 0.6rem 1.6rem; }

    .hero { padding-top: 7.5rem; }
    .hero h1 { font-size: 2.3rem; letter-spacing: -1px; }
    .hero-desc { font-size: 0.98rem; }
    .hero-actions .btn { flex: 1; justify-content: center; min-width: 200px; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0; padding: 1.6rem 0; }
    .stat:nth-child(3)::before { display: none; }

    .sec-title { font-size: 1.75rem; }
    .feat-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cap-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .navbar { padding: 0.9rem 1.2rem; }
    .navbar.scrolled { padding: 0.6rem 1.2rem; }
    .hero h1 { font-size: 1.9rem; }
    .telemetry { padding: 1.2rem 1.1rem 1rem; }
    .tl-value { font-size: 2.4rem; }
    .tl-rows { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
    .product-top { padding: 0.7rem 1.2rem; flex-wrap: wrap; }
    .product-grid { padding: 1.6rem 1.2rem 1.8rem; }
    .product-name { font-size: 1.55rem; }
    .cap-grid { grid-template-columns: 1fr; }
    .cap-wide { grid-column: span 1; }
    .cap-sm { grid-column: span 1; }
    .cta h2 { font-size: 1.45rem; }
    .stat-num { font-size: 1.5rem; }
    .wa-fab { width: 48px; height: 48px; font-size: 1.25rem; bottom: 16px; right: 16px; }
}

/* ============================================================
   16. SUBPAGES — page hero · legal accordion · corporate info
   (sozlesmeler.html · iletisim.html)
   ============================================================ */
.page-hero {
    position: relative;
    padding: 8.5rem 0 3.4rem;
    background:
        radial-gradient(ellipse 60% 50% at 85% 0%, rgba(22, 145, 208, 0.07), transparent 60%),
        var(--paper);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

/* blueprint grid, fading downwards */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 30%, transparent 80%);
    pointer-events: none;
}

.page-hero .sec-head { position: relative; margin-bottom: 0; }
.page-hero .sec-title { font-size: 2.7rem; }

/* --- Legal documents: sticky table of contents + open documents --- */
.legal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(18, 135, 196, 0.06);
    border: 1px solid rgba(18, 135, 196, 0.18);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 2.2rem;
}

.legal-note i { color: var(--blue); margin-top: 0.3rem; font-size: 0.9rem; flex-shrink: 0; }

.legal-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2.2rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.legal-toc-head {
    padding: 0.75rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(18, 135, 196, 0.06);
    border-bottom: 1px solid var(--line);
}

.legal-toc a {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.84rem;
    color: var(--ink-2);
    text-decoration: none;
    border-bottom: 1px dashed var(--line);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.legal-toc a:last-child { border-bottom: none; }
.legal-toc a:hover { color: var(--blue); background: var(--paper-2); }

.legal-toc a .no {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--blue);
    flex-shrink: 0;
}

.legal-docs { min-width: 0; }

.legal-doc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 1.4rem;
    overflow: hidden;
    scroll-margin-top: 96px;
}

.legal-doc:last-child { margin-bottom: 0; }

.legal-doc-head {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.15rem 1.6rem;
    border-bottom: 1px dashed var(--line);
}

.legal-no {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--blue);
    flex-shrink: 0;
}

.legal-doc-head h2 { font-size: 1.04rem; font-weight: 700; color: var(--ink); }

.legal-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ink-3);
    margin-top: 0.15rem;
}

.legal-body {
    padding: 0.3rem 1.6rem 1.9rem;
    font-size: 0.89rem;
    color: var(--ink-2);
    line-height: 1.85;
}

.legal-body p { margin-top: 1.05rem; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--blue); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

/* --- Corporate info --- */
.contact-card .contact-plain {
    display: block;
    color: var(--ink-2);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.reg-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 760px;
}

.reg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(18, 135, 196, 0.06);
    border-bottom: 1px solid var(--line);
}

.reg-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 0.85rem 1.4rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.88rem;
}

.reg-row:last-child { border-bottom: none; }

.reg-row .rk { color: var(--ink-3); }

.reg-row .rv {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--ink);
    user-select: all;
    overflow-wrap: anywhere;
}

.reg-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1rem;
    max-width: 760px;
    font-size: 0.82rem;
    color: var(--ink-3);
    line-height: 1.7;
}

.reg-note i { color: var(--blue); margin-top: 0.3rem; font-size: 0.78rem; flex-shrink: 0; }

@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; gap: 1.6rem; }
    .legal-toc { position: static; }
}

@media (max-width: 768px) {
    .page-hero { padding: 7rem 0 2.6rem; }
    .page-hero .sec-title { font-size: 2rem; }
    .legal-doc-head { padding: 1rem 1.1rem; gap: 0.8rem; }
    .legal-body { padding: 0.2rem 1.1rem 1.5rem; }
    .office-grid { grid-template-columns: 1fr; }
    .reg-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ============================================================
   17. PAYMENT — common payment page (payment.html)
   ============================================================ */
.pay-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    align-items: start;
}

/* --- Live card preview (telemetry-panel aesthetic) --- */
.pay-card {
    position: relative;
    aspect-ratio: 1.586;
    max-width: 470px;
    width: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(115deg, var(--navy) 0%, #0e2a45 55%, var(--blue-ink) 100%);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f4f6fb;
    overflow: hidden;
}

/* blueprint grid overlay */
.pay-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 80% 50%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 100% at 80% 50%, #000, transparent 70%);
    pointer-events: none;
}

/* drawing-corner brackets (same signature as .telemetry) */
.pay-card-wrap { position: relative; max-width: 470px; }

.pay-card-wrap::before,
.pay-card-wrap::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--brand);
    opacity: 0.55;
}

.pay-card-wrap::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.pay-card-wrap::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

.pc-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-chip {
    width: 40px;
    height: 29px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d8b75c, #f3dc94 45%, #caa84e);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.pc-brand { font-size: 1.7rem; color: rgba(255, 255, 255, 0.9); }

.pc-num {
    position: relative;
    font-family: var(--font-mono);
    font-size: 1.32rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    white-space: nowrap;
}

.pc-meta {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.pc-meta .pck {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.2rem;
}

.pc-meta .pcv {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* empty-state placeholder: hidden as soon as the value span has content */
.pcv .val:not(:empty) ~ .ph { display: none; }

.pay-logos { margin-top: 1.6rem; }
.pay-logos img { max-width: 100%; height: auto; opacity: 0.92; }

/* --- Form card (spec-sheet aesthetic) --- */
.pay-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pay-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(18, 135, 196, 0.06);
    border-bottom: 1px solid var(--line);
}

.pay-form-body { padding: 1.6rem; }

.pay-field { margin-bottom: 1.1rem; }

.pay-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.4rem;
}

.pay-input {
    width: 100%;
    padding: 0.78rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.pay-input.mono { font-family: var(--font-mono); letter-spacing: 1px; }

.pay-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18, 135, 196, 0.14);
}

.pay-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.pay-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0.95rem 1.2rem;
    margin: 1.5rem 0 1.2rem;
}

.pay-amount .pak { font-size: 0.92rem; font-weight: 600; color: var(--ink); }

.pay-amount .pav {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.pay-amount .pav small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-3);
    margin-left: 0.3rem;
}

.pay-btn { width: 100%; justify-content: center; }

.pay-secure {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1.1rem;
    font-size: 0.8rem;
    color: var(--ink-3);
    line-height: 1.65;
}

.pay-secure i { color: var(--green); margin-top: 0.25rem; font-size: 0.8rem; flex-shrink: 0; }
.pay-secure a { color: var(--blue); text-decoration: none; }
.pay-secure a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .pay-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 480px) {
    .pay-card { padding: 1.1rem 1.2rem; }
    .pc-num { font-size: 1.05rem; letter-spacing: 1.8px; }
    .pay-form-body { padding: 1.2rem; }
    .pay-row2 { grid-template-columns: 1fr; gap: 0; }
}
