/* ===========================================================
   Sentrio TechnoVision — Stylesheet
   Brand: gray #4F5358 + teal #1FB4C8 (from logo)
   =========================================================== */

:root {
    --c-bg: #0b1015;
    --c-surface: #ffffff;
    --c-surface-2: #f6f8fb;
    --c-text: #1a2128;
    --c-text-soft: #475160;
    --c-muted: #8b95a3;
    --c-line: #e6eaef;

    --c-brand-gray: #4f5358;
    --c-brand: #1fb4c8;
    --c-brand-deep: #138da1;
    --c-brand-soft: #d6f3f8;

    --shadow-sm: 0 2px 8px rgba(20, 30, 45, 0.06);
    --shadow-md: 0 12px 32px rgba(20, 30, 45, 0.08);
    --shadow-lg: 0 24px 64px rgba(20, 30, 45, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --t-fast: 180ms ease;
    --t-med: 320ms cubic-bezier(.2,.7,.2,1);
    --t-slow: 600ms cubic-bezier(.2,.7,.2,1);

    --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--c-text);
    background: var(--c-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- Rainbow keyframes (shared) ---------------- */
@keyframes rainbow-color {
    0%   { color: #ff3b3b; }
    16%  { color: #ff8a00; }
    33%  { color: #f5d300; }
    50%  { color: #2ecc71; }
    66%  { color: #1fb4c8; }
    83%  { color: #6a5cff; }
    100% { color: #ff3bd5; }
}

/* ---------------- Google-style wave dots ----------------
   Seven dots mirroring loading.png: sizes grow smallest -> largest
   from left to right. Each bounces in sequence with staggered
   delays and cycles independently through rainbow colors.
   --dot-max scales the whole set proportionally.
   ---------------------------------------------------------- */
.dots-loader {
    --dot-max: 30px;
    --dot-gap: 14px;
    --dot-jump: 22px;
    display: inline-flex;
    align-items: center;
    gap: var(--dot-gap);
    line-height: 0;
}
.dots-loader span {
    display: inline-block;
    border-radius: 50%;
    background: #1fb4c8;
    animation:
        dot-wave 1.4s ease-in-out infinite both,
        dot-hue 4s linear infinite;
    will-change: transform, opacity, background-color;
}
/* Per-dot size (matches loading.png proportions) + staggered timing */
.dots-loader span:nth-child(1) {
    width: calc(var(--dot-max) * 0.42); height: calc(var(--dot-max) * 0.42);
    animation-delay: 0.00s, 0.0s;
}
.dots-loader span:nth-child(2) {
    width: calc(var(--dot-max) * 0.54); height: calc(var(--dot-max) * 0.54);
    animation-delay: 0.12s, -0.5s;
}
.dots-loader span:nth-child(3) {
    width: calc(var(--dot-max) * 0.66); height: calc(var(--dot-max) * 0.66);
    animation-delay: 0.24s, -1.0s;
}
.dots-loader span:nth-child(4) {
    width: calc(var(--dot-max) * 0.76); height: calc(var(--dot-max) * 0.76);
    animation-delay: 0.36s, -1.5s;
}
.dots-loader span:nth-child(5) {
    width: calc(var(--dot-max) * 0.84); height: calc(var(--dot-max) * 0.84);
    animation-delay: 0.48s, -2.0s;
}
.dots-loader span:nth-child(6) {
    width: calc(var(--dot-max) * 0.92); height: calc(var(--dot-max) * 0.92);
    animation-delay: 0.60s, -2.5s;
}
.dots-loader span:nth-child(7) {
    width: var(--dot-max); height: var(--dot-max);
    animation-delay: 0.72s, -3.0s;
}

/* Smaller variant for in-page use */
.dots-loader.dots-sm {
    --dot-max: 18px;
    --dot-gap: 9px;
    --dot-jump: 14px;
}

@keyframes dot-wave {
    0%, 60%, 100% {
        transform: translateY(0) scale(0.85);
        opacity: 0.55;
    }
    30% {
        transform: translateY(calc(var(--dot-jump) * -1)) scale(1.1);
        opacity: 1;
    }
}
@keyframes dot-hue {
    0%   { background-color: #ff3b3b; }
    16%  { background-color: #ff8a00; }
    33%  { background-color: #f5d300; }
    50%  { background-color: #2ecc71; }
    66%  { background-color: #1fb4c8; }
    83%  { background-color: #6a5cff; }
    100% { background-color: #ff3bd5; }
}

/* ---------------- Page loader ---------------- */
.loader {
    position: fixed; inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 500ms ease, visibility 500ms ease;
}
.loader.hide { opacity: 0; visibility: hidden; }

.loader-inner {
    display: flex; flex-direction: column;
    align-items: center; gap: 48px;
}
.loader-logo {
    width: 380px; max-width: 78vw;
    opacity: 0;
    animation: fadeInUp 700ms ease forwards;
}
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------------- Page-transition overlay ---------------- */
.transition {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 320ms ease, visibility 320ms ease;
}
.transition.show { opacity: 1; visibility: visible; }

/* ---------------- Header ---------------- */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.78);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
            backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.header.scrolled {
    background: rgba(255,255,255,0.94);
    border-bottom-color: var(--c-line);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 96px;
}
.brand-logo {
    height: 56px; width: auto;
    transition: transform var(--t-med);
}
.brand:hover .brand-logo { transform: scale(1.03); }

.nav {
    display: flex; gap: 6px; align-items: center;
}
.nav-link {
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-weight: 500; font-size: 14.5px;
    color: var(--c-text-soft);
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--c-brand-deep); background: var(--c-brand-soft); }
.nav-link.active { color: var(--c-brand-deep); background: var(--c-brand-soft); }

.menu-btn {
    display: none;
    background: transparent; border: 0;
    width: 40px; height: 40px;
    padding: 8px; border-radius: 10px;
}
.menu-btn span {
    display: block; height: 2px; width: 100%;
    background: var(--c-text); margin: 5px 0;
    transition: transform var(--t-med), opacity var(--t-med);
    border-radius: 2px;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600; font-size: 15px;
    border: 1px solid transparent;
    transition: transform var(--t-med), box-shadow var(--t-med),
                background var(--t-med), color var(--t-med), border-color var(--t-med);
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-deep) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 180, 200, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(31,180,200,.42); }
.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-brand); color: var(--c-brand-deep); }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 80% 10%, rgba(31,180,200,0.18), transparent 60%),
        radial-gradient(50% 50% at 10% 80%, rgba(106,92,255,0.10), transparent 60%),
        linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
    z-index: -1;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px; align-items: center;
}
.eyebrow {
    display: inline-block;
    font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
    font-weight: 600;
    color: var(--c-brand-deep);
    padding: 6px 12px;
    background: var(--c-brand-soft);
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.grad {
    background: linear-gradient(135deg, var(--c-brand) 10%, #6a5cff 90%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 1.05rem; color: var(--c-text-soft);
    max-width: 540px; margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stats li {
    display: flex; flex-direction: column;
    border-left: 2px solid var(--c-brand);
    padding-left: 14px;
}
.hero-stats strong { font-size: 1.45rem; font-weight: 700; }
.hero-stats span { color: var(--c-muted); font-size: 0.9rem; }

/* Hero visual */
.hero-visual {
    position: relative;
    height: 520px;
}
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(40px); opacity: 0.55;
}
.orb-1 { width: 280px; height: 280px; background: var(--c-brand); top: 20px; right: 20px; }
.orb-2 { width: 220px; height: 220px; background: #6a5cff; bottom: 40px; left: 10px; }
.orb-3 { width: 180px; height: 180px; background: #ff8a00; top: 200px; right: 160px; opacity: 0.35; }

.card-stack { position: absolute; inset: 0; }
.float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    backdrop-filter: blur(20px);
    animation: floaty 6s ease-in-out infinite;
    width: 240px;
}
.float-card.c1 { top: 10px;    left: -10px;  animation-delay: 0s;  }
.float-card.c2 { bottom: 0;    right: -10px; animation-delay: -2s; width: 260px; }
.float-card.c3 { top: 170px;   left: 90px;   animation-delay: -4s; width: 250px; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* Shared card header */
.card-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.card-eyebrow {
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--c-muted);
}
.card-badge {
    margin-left: auto;
    font-size: 10.5px; font-weight: 600;
    padding: 3px 8px; border-radius: 999px;
    background: var(--c-surface-2);
    color: var(--c-text-soft);
    letter-spacing: 0.04em;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.6);
    animation: pulse 1.8s ease-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(34,197,94,.55); }
    100% { box-shadow: 0 0 0 10px rgba(34,197,94,0);  }
}
.badge-live {
    margin-left: auto;
    font-size: 10.5px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(34,197,94,.12);
    color: #16a34a;
    letter-spacing: 0.04em;
}

/* ----- Card 1: Tech stack tiles ----- */
.stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.tech-tile {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--c-surface-2);
    border-radius: 12px;
    border: 1px solid var(--c-line);
    transition: transform var(--t-med), background var(--t-med),
                box-shadow var(--t-med), border-color var(--t-med);
}
.tech-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}
.tech-icon { width: 28px; height: 28px; }
.tech-tile[data-tech="react"]   { color: #00bfd8; }
.tech-tile[data-tech="react"]:hover   { background: rgba(0,191,216,0.08); }
.tech-tile[data-tech="flutter"] { color: #4f9efc; }
.tech-tile[data-tech="flutter"]:hover { background: rgba(79,158,252,0.08); }
.tech-tile[data-tech="dotnet"]  { color: #6a5cff; }
.tech-tile[data-tech="dotnet"]:hover  { background: rgba(106,92,255,0.08); }
.tech-tile[data-tech="java"]    { color: #f97316; }
.tech-tile[data-tech="java"]:hover    { background: rgba(249,115,22,0.08); }
.tech-name {
    font-size: 12px; font-weight: 600;
    color: var(--c-text); letter-spacing: -0.01em;
}

/* ----- Card 2: Metrics ----- */
.metrics-card { display: flex; flex-direction: column; gap: 12px; }
.big-stat { line-height: 1.1; }
.big-num {
    font-size: 2.4rem; font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-brand-deep) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.big-num .suffix {
    font-size: 1.3rem; font-weight: 700;
    color: var(--c-brand);
    -webkit-background-clip: initial; background-clip: initial;
    margin-left: 2px;
}
.big-label {
    font-size: 11.5px; color: var(--c-muted);
    margin-top: 4px; letter-spacing: 0.02em;
}
.sparkline {
    width: 100%; height: 50px;
    margin: 4px 0 6px;
    display: block;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: spark-draw 1.6s ease-out 0.4s forwards;
}
@keyframes spark-draw { to { stroke-dashoffset: 0; } }
.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--c-line);
}
.mini { display: flex; flex-direction: column; gap: 2px; }
.mini-val {
    font-size: 1.1rem; font-weight: 700;
    color: var(--c-text); letter-spacing: -0.02em;
}
.mini-val small {
    font-size: 0.7rem; font-weight: 600;
    color: var(--c-brand-deep);
    margin-left: 1px;
}
.mini-label {
    font-size: 11px;
    color: var(--c-muted);
    letter-spacing: 0.02em;
}

/* ----- Card 3: Code editor ----- */
.code-card {
    padding: 0;
    background: #0f1419;
    color: #d4d7dc;
    overflow: hidden;
    border: 1px solid #1e2429;
}
.code-head {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    background: #161c22;
    border-bottom: 1px solid #20262d;
}
.code-dots { display: inline-flex; gap: 6px; }
.code-dots .cd {
    width: 9px; height: 9px; border-radius: 50%;
    display: inline-block;
}
.code-dots .red   { background: #ff5f57; }
.code-dots .amber { background: #febc2e; }
.code-dots .green { background: #28c840; }
.code-tab {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 11.5px;
    padding: 3px 10px;
    background: #0f1419;
    border: 1px solid #20262d;
    border-radius: 6px;
    color: #c9d1d9;
}
.code-body {
    margin: 0;
    padding: 14px 14px 18px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre;
}
.code-body .cl { display: block; }
.code-body .ln {
    display: inline-block;
    width: 14px;
    color: #4a5568;
    margin-right: 10px;
    text-align: right;
    user-select: none;
}
.code-body .kw   { color: #c084fc; }
.code-body .var  { color: #93c5fd; }
.code-body .fn   { color: #fcd34d; }
.code-body .str  { color: #86efac; }
.code-body .tag  { color: #67e8f9; }
.code-body .caret {
    display: inline-block;
    color: #67e8f9;
    animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Scroll cue */
.scroll-cue {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid var(--c-muted); border-radius: 14px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span {
    width: 4px; height: 8px;
    background: var(--c-muted);
    border-radius: 2px;
    animation: scroll-bob 1.6s ease-in-out infinite;
}
@keyframes scroll-bob {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(10px); opacity: 0.2; }
}

/* ---------------- Sections base ---------------- */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-lead {
    max-width: 720px; margin: 0 auto;
    color: var(--c-text-soft); font-size: 1.05rem;
}

/* ---------------- About / Features ---------------- */
.about { background: var(--c-surface); }
.features {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature {
    padding: 28px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    background: #fff;
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-brand-soft);
    color: var(--c-brand-deep);
    margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.feature p { margin: 0; color: var(--c-text-soft); font-size: 0.95rem; }

/* ---------------- Services ---------------- */
.services { background: var(--c-surface-2); }
.service-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
    position: relative;
    padding: 32px 28px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-line);
    overflow: hidden;
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--c-brand), #6a5cff);
    transform: scaleY(0); transform-origin: top;
    transition: transform var(--t-med);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-num {
    font-size: 0.85rem; font-weight: 700;
    color: var(--c-brand-deep); letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.service-card h3 { font-size: 1.2rem; margin: 0 0 10px; font-weight: 700; }
.service-card p { color: var(--c-text-soft); margin: 0 0 18px; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    font-size: 12.5px; font-weight: 500;
    padding: 5px 11px; border-radius: var(--radius-pill);
    background: var(--c-surface-2); color: var(--c-text-soft);
    border: 1px solid var(--c-line);
}

/* ---------------- Tech ---------------- */
.tech { background: var(--c-surface); }
.tech-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tech-group {
    padding: 28px;
    background: var(--c-surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-line);
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.tech-group:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-group h4 {
    margin: 0 0 16px; font-size: 0.95rem;
    color: var(--c-brand-deep); font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.tech-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    color: var(--c-text); font-weight: 500;
    border-bottom: 1px dashed var(--c-line);
}
.tech-list li:last-child { border-bottom: 0; }
.tech-list .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-brand);
    box-shadow: 0 0 0 4px rgba(31,180,200,0.15);
    flex-shrink: 0;
}

/* ---------------- Work / steps ---------------- */
.work { background: linear-gradient(180deg, var(--c-surface-2) 0%, #eef3f8 100%); }
.steps {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    counter-reset: step;
}
.steps li {
    position: relative;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--c-line);
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
    overflow: hidden;
}
.steps li::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-brand), #6a5cff);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-med);
}
.steps li:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.steps li:hover::before { transform: scaleX(1); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-brand), var(--c-brand-deep));
    color: #fff; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 14px;
    box-shadow: 0 6px 14px rgba(31,180,200,.28);
}
.steps h3 { font-size: 1.05rem; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.steps p  { margin: 0; color: var(--c-text-soft); font-size: 0.9rem; line-height: 1.55; }

/* ---------------- Contact ---------------- */
.contact {
    background:
        radial-gradient(50% 50% at 20% 20%, rgba(31,180,200,0.12), transparent 70%),
        radial-gradient(50% 50% at 80% 80%, rgba(106,92,255,0.10), transparent 70%),
        #0b1015;
    color: #f2f5f9;
}
.contact .eyebrow { color: #fff; background: rgba(31,180,200,0.18); }
.contact .section-title { color: #fff; }
.contact .section-lead { color: rgba(242,245,249,0.72); margin: 0 0 32px; }
.contact-inner {
    display: grid; gap: 56px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.contact-list { margin-top: 8px; }
.contact-list li {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.contact-list strong { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.contact-list a { color: var(--c-brand); font-weight: 600; }

.contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column; gap: 16px;
}
.contact-form label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 0.85rem; font-weight: 600;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
    font-family: inherit; font-size: 0.98rem;
    color: #fff; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color var(--t-fast), background var(--t-fast);
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    background: rgba(255,255,255,0.10);
}
.form-status {
    margin: 4px 0 0; font-size: 0.9rem;
    color: var(--c-brand);
    min-height: 1.2em;
}

/* ---------------- Footer ---------------- */
.footer {
    background: #06090c; color: rgba(255,255,255,0.6);
    padding: 64px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
}
.footer-brand img { height: 52px; margin-bottom: 18px; filter: brightness(1.1); }
.footer-brand p { margin: 0; font-size: 0.92rem; max-width: 320px; }
.footer-cols {
    display: grid; gap: 32px;
    grid-template-columns: repeat(3, 1fr);
}
.footer-cols h5 {
    color: #fff; font-size: 0.85rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin: 0 0 14px;
}
.footer-cols a {
    display: block; padding: 5px 0;
    font-size: 0.92rem;
    transition: color var(--t-fast);
}
.footer-cols a:hover { color: var(--c-brand); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between;
    font-size: 0.86rem;
    flex-wrap: wrap; gap: 10px;
}
.footer-tag {
    animation: rainbow-color 6s linear infinite;
    font-weight: 600;
}

/* ---------------- Reveal on scroll ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 460px; max-width: 520px; margin: 0 auto; }
    .contact-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 740px) {
    .nav { display: none; }
    .menu-btn { display: block; }
    .nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 96px; left: 0; right: 0;
        background: #fff;
        padding: 16px 24px 24px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--c-line);
    }
    .nav.open .nav-link { width: 100%; padding: 14px 16px; border-radius: 10px; }
    .section { padding: 70px 0; }
    .hero { padding-top: 120px; }
    .hero-stats { gap: 18px; }
    .hero-stats strong { font-size: 1.2rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-cols { grid-template-columns: 1fr; }
    .hero-visual { height: 420px; }
    .float-card { width: 220px !important; }
    .float-card.c1 { left: 0; }
    .float-card.c2 { right: 0; }
    .float-card.c3 { left: 30px; top: 150px; }
}

/* ===========================================================
   SentriBot chat widget
   =========================================================== */
/* Tap-outside backdrop (mobile only, hidden on desktop) */
.sb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 16, 21, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}
.sb-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.sb-backdrop[hidden] { display: none; }
@media (min-width: 641px) {
    /* On desktop, no backdrop */
    .sb-backdrop { display: none !important; }
}

.sentribot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    /* iPhone safe-area awareness */
    bottom: max(24px, env(safe-area-inset-bottom, 24px));
    right:  max(24px, env(safe-area-inset-right, 24px));
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* ----- Floating action button ----- */
.sb-fab {
    position: relative;
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #1fb4c8 0%, #6a5cff 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(31,180,200,0.42), 0 4px 12px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--t-med), box-shadow var(--t-med);
    animation: sb-float 3.6s ease-in-out infinite;
}
.sb-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px rgba(31,180,200,0.52), 0 6px 16px rgba(0,0,0,0.12);
}
.sb-fab:active { transform: translateY(-1px) scale(0.98); }
.sb-fab-icon svg {
    width: 36px; height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
    animation: sb-bob 2.4s ease-in-out infinite;
}
@keyframes sb-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes sb-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-1px) rotate(-3deg); }
}

/* Pulsing ring */
.sb-fab-ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(31,180,200,0.55);
    animation: sb-ring 2s ease-out infinite;
    pointer-events: none;
}
@keyframes sb-ring {
    0%   { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.4);  opacity: 0;   }
}

/* Tooltip */
.sb-fab-tip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%; transform: translateY(-50%) translateX(8px);
    background: #0b1015;
    color: #fff;
    font-size: 12.5px; font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-med), transform var(--t-med);
}
.sb-fab-tip::after {
    content: '';
    position: absolute;
    right: -4px; top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px; height: 8px;
    background: #0b1015;
}
.sb-fab:hover .sb-fab-tip {
    opacity: 1; transform: translateY(-50%) translateX(0);
}

/* Unread badge */
.sb-fab-badge {
    position: absolute;
    top: 2px; right: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 9px; line-height: 14px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    animation: sb-pulse 1.6s ease-out infinite;
}
@keyframes sb-pulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(239,68,68,.6); }
    50%      { transform: scale(1.2); box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(239,68,68,0); }
}
.sb-fab.open .sb-fab-ring,
.sb-fab.open .sb-fab-badge,
.sb-fab.open .sb-fab-tip {
    display: none;
}
.sb-fab.open .sb-fab-icon svg { transform: rotate(180deg); transition: transform var(--t-med); }

/* ----- Chat panel ----- */
.sb-panel {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 30px 60px rgba(20,30,45,0.22),
        0 12px 28px rgba(20,30,45,0.12);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms cubic-bezier(.2,.7,.2,1), opacity 260ms ease;
}
.sb-panel.is-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.sb-panel[hidden] { display: none; }

.sb-head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1fb4c8 0%, #6a5cff 100%);
    color: #fff;
}
.sb-head-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}
.sb-head-avatar svg { width: 30px; height: 30px; }
.sb-head-id { flex: 1; line-height: 1.25; }
.sb-head-id strong { display: block; font-size: 15.5px; font-weight: 700; }
.sb-head-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; opacity: 0.85;
    margin-top: 2px;
}
.sb-head-status i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
    animation: sb-pulse-dot 1.8s ease-out infinite;
}
@keyframes sb-pulse-dot {
    0%   { box-shadow: 0 0 0 0   rgba(34,197,94,.55); }
    100% { box-shadow: 0 0 0 7px rgba(34,197,94,0);   }
}
.sb-head-close {
    background: rgba(255,255,255,0.16);
    border: 0;
    width: 32px; height: 32px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-fast);
}
.sb-head-close:hover { background: rgba(255,255,255,0.28); }
.sb-head-close svg { width: 18px; height: 18px; }

/* ----- Messages area ----- */
.sb-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    background: linear-gradient(180deg, #f9fbfd 0%, #fff 100%);
    display: flex; flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
.sb-msgs::-webkit-scrollbar { width: 6px; }
.sb-msgs::-webkit-scrollbar-thumb { background: #d6dde6; border-radius: 3px; }

.sb-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px; line-height: 1.5;
    word-wrap: break-word;
    animation: sb-msg-in 280ms cubic-bezier(.2,.7,.2,1);
}
.sb-msg.bot {
    align-self: flex-start;
    background: #f0f3f7;
    color: var(--c-text);
    border-bottom-left-radius: 4px;
}
.sb-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #1fb4c8 0%, #6a5cff 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(31,180,200,0.24);
}
@keyframes sb-msg-in {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.sb-typing {
    align-self: flex-start;
    background: #f0f3f7;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: inline-flex; gap: 4px;
}
.sb-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: sb-typing 1.2s ease-in-out infinite;
}
.sb-typing span:nth-child(2) { animation-delay: 0.15s; }
.sb-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes sb-typing {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
    30%           { transform: translateY(-6px); opacity: 1; }
}

/* Quick reply buttons */
.sb-quick {
    padding: 0 14px 8px;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.sb-quick button {
    background: #fff;
    border: 1px solid var(--c-line);
    color: var(--c-brand-deep);
    font-size: 12.5px; font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--t-fast);
}
.sb-quick button:hover {
    background: var(--c-brand-soft);
    border-color: var(--c-brand);
}

/* Input */
.sb-input {
    display: flex; gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid var(--c-line);
}
.sb-input input {
    flex: 1;
    background: #f5f7fa;
    border: 1px solid transparent;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--c-text);
    transition: border-color var(--t-fast), background var(--t-fast);
    min-width: 0;
}
.sb-input input:focus {
    outline: none;
    background: #fff;
    border-color: var(--c-brand);
}
.sb-input button[type="submit"] {
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1fb4c8 0%, #6a5cff 100%);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.sb-input button[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(31,180,200,0.36);
}
.sb-input button[type="submit"]:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none;
}
.sb-input button[type="submit"] svg { width: 18px; height: 18px; }
.sb-foot {
    margin: 0;
    padding: 6px 14px 10px;
    background: #fff;
    text-align: center;
    font-size: 10.5px;
    color: var(--c-muted);
    letter-spacing: 0.04em;
}

/* ----- Mobile: bottom-sheet style ----- */
@media (max-width: 640px) {
    .sentribot {
        /* slightly tighter inset on mobile */
        bottom: max(16px, env(safe-area-inset-bottom, 16px));
        right:  max(16px, env(safe-area-inset-right, 16px));
    }
    .sb-fab {
        width: 62px;
        height: 62px;
    }
    .sb-fab-icon svg {
        width: 36px;
        height: 36px;
    }
    .sb-fab-tip { display: none; }

    /* Mobile panel = full-width bottom sheet, position fixed to viewport */
    .sb-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 85vh;          /* fallback */
        height: 85dvh;         /* preferred — adjusts to keyboard */
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 20px 20px 0 0;
        transform: translateY(110%);
        opacity: 1;
        transition: transform 320ms cubic-bezier(.2,.7,.2,1);
        z-index: 9995;
        box-shadow: 0 -10px 40px rgba(11, 16, 21, 0.18);
    }
    .sb-panel.is-open {
        transform: translateY(0);
        opacity: 1;
    }

    /* Drag-handle on header */
    .sb-head {
        padding-top: 24px;
        position: relative;
    }
    .sb-head::before {
        content: '';
        position: absolute;
        top: 9px;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.45);
    }

    /* Bigger touch targets */
    .sb-head-close { width: 40px; height: 40px; }
    .sb-head-close svg { width: 22px; height: 22px; }
    .sb-input {
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    }
    .sb-input input {
        padding: 13px 18px;
        font-size: 16px;          /* 16px prevents iOS auto-zoom on focus */
    }
    .sb-input button[type="submit"] { width: 44px; height: 44px; }
    .sb-foot {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
