/* ==========================================================================
   Telegas.io — design system (matches the Telegas landing page)
   ========================================================================== */
:root {
    --bg-inner: #0b8a78;
    --bg-mid: #044e3b;
    --bg-outer: #011411;

    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.7);
    --faint: rgba(255, 255, 255, 0.55);

    --accent: #fbcfe8;
    --accent-ink: #011d17;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-2: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-strong: rgba(255, 255, 255, 0.28);

    --radius: 24px;
    --radius-sm: 14px;
    --wrap: 1160px;

    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-nav: 'Manrope', var(--font-body);
    --font-display: 'Galada', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overflow-x: hidden;
    background: var(--bg-outer);
}

body {
    position: relative;
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background: transparent;
}

/* Single fixed background layer: teal radial + faint pink glow */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 78% 12%, rgba(251, 207, 232, 0.10), transparent 70%),
        radial-gradient(circle at 50% 0%, var(--bg-inner) 0%, var(--bg-mid) 45%, var(--bg-outer) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section { padding: 92px 0; position: relative; z-index: 1; }
.section.tight { padding: 60px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    font-family: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ---------- Typography ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-family: var(--font-nav); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
p { color: var(--muted); }
.content p, .content h2 { margin-bottom: 18px; }
.content h2 { margin-top: 38px; color: var(--text); }
.content h2:first-child { margin-top: 0; }

/* ---------- Bubbles background ---------- */
#bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 68%);
    opacity: 0;
}
@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    12%  { opacity: 0.35; }
    88%  { opacity: 0.35; }
    100% { transform: translateY(-112vh) translateX(34px); opacity: 0; }
}

/* ---------- Glass primitive ---------- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---------- Header ---------- */
.topbar {
    font-family: var(--font-nav);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(1, 20, 17, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.topbar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    flex-wrap: wrap;
}
.net-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.net-links .label { color: var(--faint); margin-right: 8px; letter-spacing: 0.16em; }
.net-links a {
    text-decoration: none;
    color: var(--muted);
    padding: 3px 9px;
    border-radius: 100px;
    transition: background 0.25s, color 0.25s;
}
.net-links a:hover { background: var(--glass-bg-2); color: var(--text); }
.net-links a.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.topbar .contacts { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.topbar .contacts a { color: var(--accent); text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(1, 20, 17, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; color: var(--accent); }
.brand-text { font-family: var(--font-display); font-size: 1.25rem; }
.brand-text span { color: var(--muted); }

.main-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding: 5px;
    border-radius: 100px;
    background: var(--glass-bg-2);
    border: 1px solid var(--glass-border-strong);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.main-nav a {
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--glass-bg-2);
    border: 1px solid var(--glass-border-strong);
    color: var(--text);
    font-family: var(--font-nav);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 100px;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-nav);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffdcef; }
.btn.primary .dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent-ink); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; line-height: 1;
}
.btn.ghost {
    background: var(--glass-bg);
    border-color: var(--glass-border-strong);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn.ghost:hover { background: var(--glass-bg-2); }
.btn.sm { padding: 10px 18px; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 84px; position: relative; z-index: 1; overflow: hidden; }
/* Optional hero background photo: drop a file at assets/hero.jpg (≈2400px wide,
   dark & teal-graded). If it is absent the radial gradient shows through
   unchanged — nothing breaks. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(105deg, rgba(1, 20, 17, 0.93) 0%, rgba(1, 20, 17, 0.78) 45%, rgba(1, 20, 17, 0.62) 100%),
        url("hero.jpg");
    background-position: center, center top;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}
.hero-grid > * { max-width: 720px; }
.hero { padding-top: 110px; padding-bottom: 118px; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { font-size: 1.2rem; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-card {
    padding: 22px;
    background: rgba(5, 26, 22, 0.82);
    border-color: var(--glass-border-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-card .card-top {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-nav); font-weight: 700; font-size: 0.85rem;
    padding-bottom: 14px; border-bottom: 1px solid var(--glass-border);
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.status::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: #43e0b0; box-shadow: 0 0 0 4px rgba(67, 224, 176, 0.18);
}
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.metric {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 14px;
}
.metric strong { display: block; font-family: var(--font-nav); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; margin-bottom: 2px; }
.metric span { font-size: 0.78rem; color: var(--muted); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.85rem;
}
.row span:last-child { color: var(--muted); }
.pill {
    font-family: var(--font-nav); font-weight: 700; font-size: 0.68rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 100px;
    background: rgba(67, 224, 176, 0.16); color: #7bf0cf;
}
.pill.warn { background: rgba(251, 207, 232, 0.18); color: var(--accent); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chips .pill { background: var(--glass-bg-2); color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--glass-border-strong); background: var(--glass-bg-2); }
.card .num {
    font-family: var(--font-display); font-size: 1.6rem; color: var(--accent);
    display: block; margin-bottom: 10px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.92rem; }

/* Icon tile used in Platform cards */
.ic-wrap {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 13px;
    background: rgba(251, 207, 232, 0.10);
    border: 1px solid rgba(251, 207, 232, 0.28);
    margin-bottom: 16px;
}
.ic { width: 22px; height: 22px; display: block; color: var(--accent); }
.ic-wrap .ic { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .screen { padding: 22px; }
.screen .card-top {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-nav); font-weight: 700; font-size: 0.85rem;
    padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--glass-border);
}
.screen .card-top span { color: var(--faint); font-weight: 500; }

.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry {
    padding: 22px; border-radius: var(--radius);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    font-family: var(--font-nav); font-weight: 700; font-size: 0.98rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.industry:hover { transform: translateY(-4px); border-color: var(--glass-border-strong); }
.industry .ic { margin-bottom: 12px; opacity: 0.9; }
.industry small { display: block; margin-top: 8px; font-weight: 400; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ---------- CTA band with photo ---------- */
.cta.photo {
    position: relative;
    overflow: hidden;
    border-color: var(--glass-border-strong);
}
.cta.photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(105deg, rgba(1, 20, 17, 0.92) 0%, rgba(1, 20, 17, 0.72) 45%, rgba(1, 20, 17, 0.45) 100%),
        url("cta.jpg");
    background-size: cover, cover;
    background-position: center, center;
}
.cta.photo > * { position: relative; z-index: 1; }

/* ---------- Showcase band ---------- */
.showcase {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    min-height: 420px;
    display: flex;
    align-items: center;
}
.showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(90deg, rgba(1, 20, 17, 0.92) 0%, rgba(1, 20, 17, 0.62) 42%, rgba(1, 20, 17, 0.12) 100%),
        url("cylinder.jpg");
    background-size: cover, cover;
    background-position: center, center right;
}
.showcase-inner {
    position: relative;
    z-index: 1;
    padding: 48px;
    max-width: 540px;
}
.showcase-inner h2 { margin: 12px 0 14px; }
.showcase-inner p { color: var(--muted); }
@media (max-width: 620px) {
    .showcase { min-height: 0; }
    .showcase::before { background-position: center, center; }
    .showcase::after {
        content: "";
        position: absolute; inset: 0; z-index: 0;
        background: rgba(1, 20, 17, 0.35);
    }
    .showcase-inner { padding: 32px 24px; }
}

/* ---------- CTA band ---------- */
.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    padding: 40px; flex-wrap: wrap;
}
.cta h2 { color: var(--text); }
.cta p { margin-top: 8px; max-width: 560px; }

/* ---------- Interior page hero ---------- */
.page-hero { padding: 70px 0 40px; position: relative; z-index: 1; }
.page-hero h1 { margin-top: 14px; }
.page-hero .lead { margin-top: 18px; }

.quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding: 6px 0 6px 22px;
    margin: 26px 0;
}
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    color: var(--muted);
    white-space: pre-wrap;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin: 16px 0 8px;
}
.note {
    margin-top: 30px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: rgba(251, 207, 232, 0.08);
    border: 1px solid rgba(251, 207, 232, 0.22);
    font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding: 56px 0 34px;
    border-top: 1px solid var(--glass-border);
    background: rgba(1, 20, 17, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-nav); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer .brand-text { font-size: 1.15rem; }
.footer .tag { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 320px; }
.legal {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--glass-border);
    color: var(--faint); font-size: 0.8rem; line-height: 1.6;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 34px; }
    .grid3 { grid-template-columns: 1fr 1fr; }
    .industry-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        top: 72px; left: 0; right: 0;
        margin: 0 16px;
        flex-direction: column;
        gap: 4px;
        border-radius: var(--radius);
        padding: 12px;
        display: none;
        background: rgba(3, 26, 22, 0.98);
        border: 1px solid var(--glass-border-strong);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 16px; border-radius: var(--radius-sm); }
    .main-nav a.active { border-radius: var(--radius-sm); }
    .nav-toggle { display: inline-block; }
    .site-header .brand { margin-right: auto; }
    .header-cta { display: none; }
}
@media (max-width: 620px) {
    .section { padding: 66px 0; }
    .grid3, .grid2, .industry-grid, .footer-grid { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .cta { padding: 28px; }
    .topbar .contacts { display: none; }
    .row { font-size: 0.8rem; gap: 8px; padding: 11px 12px; }
    .row > span:first-child { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    #bubbles { display: none; }
}
