/* =========================================================
   UPUP Technology — Modern Stylesheet
   Self‑contained, responsive, animated, glassmorphism look
   ========================================================= */

:root {
    --bg-0: #06070d;
    --bg-1: #0b0f1a;
    --bg-2: #111729;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #e7ecf5;
    --text-dim: #9aa5bd;
    --text-soft: #c8d0e3;
    --primary: #6c8bff;
    --primary-2: #8b5cf6;
    --accent: #22d3ee;
    --accent-2: #f472b6;
    --warn: #f59e0b;
    --gradient: linear-gradient(135deg, #6c8bff 0%, #8b5cf6 45%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(108,139,255,0.18), rgba(139,92,246,0.18) 50%, rgba(34,211,238,0.18));
    --shadow-lg: 0 30px 60px -20px rgba(8, 12, 30, 0.6);
    --shadow-md: 0 12px 30px -12px rgba(8, 12, 30, 0.6);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: #fff; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(108,139,255,.35); color: #fff; }

/* ------- Reusable building blocks ------- */
.container {
    max-width: var(--container);
    width: 92%;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.eyebrow::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 14px 0 12px;
}

.section-title .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-sub {
    color: var(--text-dim);
    max-width: 680px;
    font-size: 1.02rem;
}

.section {
    position: relative;
    padding: 110px 0;
}

.section--tight { padding: 80px 0; }

.section-head {
    text-align: center;
    margin-bottom: 64px;
}
.section-head .section-sub { margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
    border: 1px solid transparent;
    will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(108,139,255,.6), inset 0 0 0 1px rgba(255,255,255,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(108,139,255,.7); color:#fff; }
.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-strong); transform: translateY(-2px); color: #fff; }

/* ============== Navigation ============== */
.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, 94%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(11, 15, 26, 0.6);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .3s ease, box-shadow .3s ease, top .3s ease;
}
.nav.scrolled {
    background: rgba(11, 15, 26, 0.85);
    box-shadow: var(--shadow-md);
}
.nav .brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}
.nav .brand .mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--gradient);
    display: grid; place-items: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 30px -10px rgba(108,139,255,.7);
    position: relative;
}
.nav .brand .mark::after{
    content:""; position:absolute; inset:2px; border-radius:8px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 60%);
    pointer-events:none;
}
.nav ul {
    display: flex; gap: 6px; list-style: none; padding: 0; margin: 0;
}
.nav ul a {
    padding: 8px 14px;
    color: var(--text-soft);
    font-size: .92rem;
    border-radius: 999px;
    transition: color .25s ease, background .25s ease;
}
.nav ul a:hover { color:#fff; background: var(--surface-strong); }
.nav .nav-cta { display: flex; align-items: center; gap: 8px; }

.menu-toggle { display:none; width:40px; height:40px; border-radius:10px; background:var(--surface); border:1px solid var(--border); align-items:center; justify-content:center; }
.menu-toggle span { display:block; width:18px; height:2px; background:#fff; position:relative; }
.menu-toggle span::before, .menu-toggle span::after{ content:""; position:absolute; left:0; right:0; height:2px; background:#fff; }
.menu-toggle span::before { top:-6px; }
.menu-toggle span::after { top:6px; }

/* ============== Hero ============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(1000px 600px at 80% -10%, rgba(139,92,246,.35), transparent 60%),
        radial-gradient(900px 600px at -10% 20%, rgba(34,211,238,.25), transparent 60%),
        radial-gradient(700px 500px at 50% 100%, rgba(108,139,255,.25), transparent 60%),
        linear-gradient(180deg, #06070d 0%, #0b0f1a 60%, #06070d 100%);
    z-index: -2;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 18px 0 18px;
}
.hero h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px dashed var(--border);
}
.hero-meta .item .num {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta .item .label {
    font-size: .85rem;
    color: var(--text-dim);
    letter-spacing: .04em;
}

/* Hero phone mock */
.hero-visual {
    position: relative;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .8;
    z-index: 0;
}
.orb.a { width: 320px; height: 320px; background: #6c8bff; top: -20px; right: -40px; }
.orb.b { width: 260px; height: 260px; background: #22d3ee; bottom: -30px; left: 10px; opacity: .7; }
.orb.c { width: 200px; height: 200px; background: #f472b6; top: 40%; right: 30%; opacity: .55; }

.phone {
    position: relative;
    width: 270px;
    height: 540px;
    border-radius: 44px;
    background: linear-gradient(180deg, #1a2138 0%, #0e1322 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow-lg), inset 0 0 0 4px rgba(255,255,255,.04);
    padding: 14px;
    transform: rotate(-6deg);
    z-index: 2;
    animation: float 7s ease-in-out infinite;
}
.phone::before {
    content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%);
    width:90px; height:18px; border-radius:14px;
    background:#06070d;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.phone .screen {
    width: 100%; height: 100%;
    border-radius: 32px;
    background:
        radial-gradient(180px 180px at 80% 10%, rgba(139,92,246,.7), transparent 60%),
        radial-gradient(220px 220px at 10% 90%, rgba(34,211,238,.55), transparent 60%),
        linear-gradient(180deg, #0a0e1a 0%, #131a2e 100%);
    position: relative;
    overflow: hidden;
    padding: 56px 18px 18px;
    color: #fff;
}
.phone .app-row {
    display:flex; gap:10px; justify-content:space-between; align-items:center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(6px);
}
.phone .app-row .icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--gradient);
    display:grid; place-items:center;
    font-size: 14px; font-weight: 800;
}
.phone .app-row .meta { flex:1; min-width:0; }
.phone .app-row .meta b { display:block; font-size: 12.5px; color:#fff; letter-spacing:.02em; }
.phone .app-row .meta span { display:block; font-size: 11px; color: rgba(255,255,255,.6); }
.phone .app-row .pill {
    font-size: 10px; font-weight: 700;
    padding: 4px 8px; border-radius: 999px;
    background: rgba(34,211,238,.18); color: #7adcec;
}

.phone-secondary {
    position: absolute;
    width: 220px; height: 440px;
    border-radius: 36px;
    background: linear-gradient(180deg, #232a45 0%, #131a2e 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-md);
    transform: rotate(8deg) translate(120px, 30px);
    z-index: 1;
    overflow: hidden;
    animation: float 9s ease-in-out infinite;
}
.phone-secondary .badge {
    position:absolute; left: 16px; right:16px; top: 22px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(6px);
}
.phone-secondary .badge h4 { margin:0 0 4px; font-size: 12px; letter-spacing:.06em; color:#fff; }
.phone-secondary .badge p { margin:0; font-size: 11px; color: rgba(255,255,255,.65); }
.phone-secondary .chart {
    position:absolute; left:14px; right:14px; bottom:18px;
    height: 140px; border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(108,139,255,.0), rgba(108,139,255,.18)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 28px);
    border: 1px solid rgba(255,255,255,.08);
    overflow:hidden;
}
.phone-secondary .chart::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:60%;
    background:
        linear-gradient(180deg, transparent, rgba(34,211,238,.35)),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'><polyline fill='none' stroke='%2322d3ee' stroke-width='2' points='0,60 20,40 40,50 60,30 80,38 100,18 120,28 140,12 160,22 180,8 200,18'/></svg>") center/100% 100% no-repeat;
    mix-blend-mode: screen;
}

.floating-card {
    position: absolute;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: float 8s ease-in-out infinite;
}
.floating-card.tl { top: 10%; left: -20px; }
.floating-card.br { bottom: 8%; right: -10px; animation-delay: -3s; }
.floating-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.floating-card small { color: var(--text-dim); font-size: 11px; display:block; }
.floating-card b { font-size: 13px; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, -6deg)); }
    50% { transform: translateY(-12px) rotate(var(--r, -6deg)); }
}
.phone { --r: -6deg; }
.phone-secondary { --r: 8deg; }
.floating-card { --r: 0deg; }

/* Marquee ribbon */
.ribbon {
    position: relative;
    padding: 28px 0;
    background: linear-gradient(180deg, transparent, rgba(108,139,255,.08), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.ribbon-track {
    display: flex; gap: 60px; align-items: center;
    width: max-content;
    animation: marquee 32s linear infinite;
    color: var(--text-soft);
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-size: .9rem;
    opacity: .7;
}
.ribbon-track span { white-space: nowrap; }
.ribbon-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============== About ============== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-art {
    position: relative;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 5;
    background:
        radial-gradient(280px 280px at 70% 10%, rgba(139,92,246,.5), transparent 60%),
        radial-gradient(320px 320px at 10% 90%, rgba(34,211,238,.45), transparent 60%),
        linear-gradient(180deg, #11172a, #0a0e1a);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-art .layer {
    position: absolute; inset: 24px;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 18px;
}
.about-art .glyph {
    position: absolute; left: 50%; top: 50%;
    width: 60%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 20px 40px rgba(108,139,255,.45));
}
.about-art .pill-stat {
    position: absolute;
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
}
.about-art .pill-stat strong { display:block; font-size: 1.4rem; }
.about-art .pill-stat span { color: var(--text-dim); font-size: .85rem; }
.about-art .pill-stat.tl { top: 18px; left: 18px; }
.about-art .pill-stat.br { bottom: 18px; right: 18px; }

.about-points { margin-top: 26px; padding: 0; list-style: none; }
.about-points li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0;
    color: var(--text-soft);
}
.about-points li::before {
    content: "";
    flex: 0 0 22px;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--gradient-soft);
    border: 1px solid var(--border-strong);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    margin-top: 2px;
}

/* ============== Services ============== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    position: relative;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
    overflow: hidden;
}
.service-card::before{
    content:""; position:absolute; inset: -1px;
    border-radius: var(--radius-lg);
    background: var(--gradient);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: -1;
    filter: blur(28px);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--surface-strong);
}
.service-card:hover::before { opacity: .35; }

.service-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--gradient-soft);
    border: 1px solid var(--border-strong);
    margin-bottom: 18px;
    color: #c8d8ff;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    color: #fff;
}
.service-card p { color: var(--text-dim); margin: 0; font-size: 0.96rem; }

.service-card .tag {
    position: absolute;
    top: 22px; right: 22px;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ============== Stats / counters ============== */
.stats {
    background:
        radial-gradient(700px 400px at 80% 0%, rgba(139,92,246,.18), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(34,211,238,.18), transparent 60%),
        linear-gradient(180deg, #0a0e1a, #06070d);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.stat {
    text-align: center;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.stat .num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
}
.stat .num small { font-size: .55em; vertical-align: super; }
.stat .label {
    margin-top: 8px;
    color: var(--text-dim);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .82rem;
}

/* ============== Products ============== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.product-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .35s ease, border-color .3s ease;
    isolation: isolate;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.product-card .thumb {
    aspect-ratio: 16 / 11;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
    display:grid; place-items:center;
}
.product-card .thumb::after {
    content:""; position:absolute; inset:0;
    background:
        radial-gradient(220px 180px at 80% 10%, rgba(139,92,246,.45), transparent 60%),
        radial-gradient(220px 180px at 10% 90%, rgba(34,211,238,.45), transparent 60%);
}
.product-card .thumb .glyph {
    position: relative; z-index: 1;
    width: 96px; height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 16px 30px -12px rgba(0,0,0,.5);
    color: #fff;
}
.product-card .thumb .glyph svg { width: 46px; height: 46px; }
.product-card .body { padding: 22px 22px 24px; }
.product-card h3 {
    margin: 0 0 6px; font-size: 1.1rem; color: #fff;
}
.product-card .meta { color: var(--text-dim); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.product-card p { color: var(--text-soft); margin: 0; font-size: .95rem; }
.product-card .product-foot {
    display:flex; align-items:center; justify-content:space-between;
    margin-top: 18px;
    padding-top: 16px; border-top: 1px dashed var(--border);
    color: var(--text-dim);
    font-size: .85rem;
}
.product-card .product-foot a { color: #fff; font-weight: 600; }
.product-card .product-foot a:hover { color: var(--accent); }

/* ============== Why us / process ============== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: step;
}
.step {
    counter-increment: step;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
}
.step::before {
    content: "0" counter(step);
    position: absolute;
    top: 18px; right: 22px;
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: .9;
}
.step h3 { margin: 18px 0 8px; color: #fff; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-dim); font-size: .94rem; }

/* ============== CTA strip ============== */
.cta {
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(139,92,246,.4), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(34,211,238,.4), transparent 60%),
        linear-gradient(135deg, #1a1d3a, #0f1426);
    border: 1px solid var(--border-strong);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content:""; position:absolute; inset: -2px; border-radius: inherit;
    background: var(--gradient); opacity:.18; filter: blur(60px); z-index: 0;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.cta p { margin: 0; color: var(--text-soft); }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content:flex-end; }

/* ============== Contact ============== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: stretch;
}
.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-info h3 { margin: 0 0 6px; color: #fff; }
.contact-info .row {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
}
.contact-info .row:last-child { border-bottom: none; }
.contact-info .row .ic {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
    background: var(--gradient-soft);
    border: 1px solid var(--border-strong);
    display: grid; place-items: center;
    color: #c8d8ff;
}
.contact-info .row .ic svg { width: 20px; height: 20px; }
.contact-info b { color: #fff; }
.contact-info span { color: var(--text-dim); font-size: .92rem; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-form .grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display:flex; flex-direction:column; gap:6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    transition: border-color .25s ease, background .25s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108,139,255,.07);
}
.contact-form .submit-row { display:flex; align-items:center; justify-content:space-between; margin-top: 20px; flex-wrap: wrap; gap: 14px; }
.contact-form .hint { color: var(--text-dim); font-size: .85rem; }
.form-msg {
    margin-top: 14px; font-size: .9rem; min-height: 20px;
}
.form-msg.ok { color: #34d399; }
.form-msg.err { color: #f87171; }

/* ============== Footer ============== */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(108,139,255,.03));
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer h4 {
    color: #fff; margin: 0 0 16px;
    font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }
.footer ul a { color: var(--text-dim); }
.footer ul a:hover { color: #fff; }
.footer .brand-block p { color: var(--text-dim); margin: 14px 0 18px; max-width: 320px; }
.footer .social { display: flex; gap: 10px; }
.footer .social a {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: grid; place-items: center;
    background: var(--surface);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.footer .social a:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-strong); }
.footer .social svg { width: 18px; height: 18px; }
.footer-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-dim);
    font-size: .9rem;
    flex-wrap: wrap; gap: 12px;
}

/* Back to top */
.go-top {
    position: fixed; right: 22px; bottom: 22px;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    z-index: 50;
}
.go-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.go-top:hover { color:#fff; transform: translateY(-3px); }
.go-top svg { width: 18px; height: 18px; }

/* ============== Reveal ============== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .36s; }

/* ============== Inner content pages ============== */
.page-hero {
    padding: 150px 0 60px;
    text-align: center;
    background:
        radial-gradient(700px 400px at 50% 0%, rgba(108,139,255,.25), transparent 60%),
        radial-gradient(500px 300px at 80% 30%, rgba(139,92,246,.2), transparent 60%);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    margin: 14px 0 12px;
    letter-spacing: -0.02em;
}
.page-hero h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { color: var(--text-dim); max-width: 720px; margin: 0 auto; }

.article {
    padding: 60px 0 100px;
}
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    max-width: 880px;
    margin: 0 auto;
    color: var(--text-soft);
    line-height: 1.85;
}
.article-card h1, .article-card h2, .article-card h3, .article-card h4 {
    color: #fff;
    margin: 28px 0 12px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.article-card h1 { font-size: 1.8rem; }
.article-card h2 { font-size: 1.35rem; }
.article-card h3 { font-size: 1.1rem; }
.article-card p { margin: 0 0 14px; }
.article-card a { color: #c8d8ff; border-bottom: 1px solid rgba(200,216,255,.3); }
.article-card a:hover { color: #fff; border-bottom-color: #fff; }
.article-card ul, .article-card ol { margin: 0 0 16px 22px; }
.article-card ul li, .article-card ol li { margin: 6px 0; }
.article-card hr { border: none; border-top: 1px dashed var(--border); margin: 28px 0; }
.article-card code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.simple-foot {
    padding: 32px 0 60px;
    text-align: center;
    color: var(--text-dim);
    font-size: .9rem;
}
.simple-foot a { color: #c8d8ff; }

/* ============== Responsive ============== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 460px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .cta { grid-template-columns: 1fr; }
    .cta .actions { justify-content:flex-start; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .section { padding: 80px 0; }
    .nav ul { display: none; }
    .menu-toggle { display: inline-flex; }
    .nav.open ul {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(11, 15, 26, 0.95);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
        gap: 4px;
        backdrop-filter: blur(14px);
    }
    .nav.open ul a { padding: 12px 14px; }
    .services-grid, .products-grid, .stats-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 420px; }
    .phone { width: 230px; height: 460px; }
    .phone-secondary { width: 180px; height: 360px; transform: rotate(8deg) translate(80px, 30px); }
    .floating-card.tl { top: 4%; left: -6px; }
    .floating-card.br { bottom: 4%; right: -6px; }
    .cta { padding: 32px; }
    .contact-form .grid { grid-template-columns: 1fr; }
    .nav { padding: 10px 14px; top: 10px; }
    .nav .brand span:not(.mark) { font-size: .9rem; }
}
