:root {
    --bg: #0b1020;
    --bg-soft: #111936;
    --surface: #141c3a;
    --surface-2: #1b254a;
    --text: #e8ecf8;
    --muted: #9aa3c7;
    --accent: #ff7a3c;
    --accent-2: #ffb67a;
    --accent-3: #5b8cff;
    --line: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --max: 1200px;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 16, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    color: #0b1020;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent);
    color: #0b1020;
    font-weight: 600;
    border-radius: 999px;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(255, 122, 60, 0.35);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 26px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(closest-side, rgba(255, 122, 60, 0.28), transparent);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -250px;
    left: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(closest-side, rgba(91, 140, 255, 0.22), transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 122, 60, 0.18);
}

h1, h2, h3, h4 {
    font-family: 'Manrope', 'Inter', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 800;
    margin-bottom: 22px;
}

h1 .grad {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #0b1020;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 122, 60, 0.4);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

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

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-visual .orbit {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.hero-visual .core {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    filter: blur(0.5px);
    box-shadow: 0 0 80px rgba(255, 122, 60, 0.5);
    animation: pulse 4s ease-in-out infinite;
}

.hero-visual .ring {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.hero-visual .ring.r1 { inset: 20%; }
.hero-visual .ring.r2 { inset: 8%; animation-duration: 50s; animation-direction: reverse; }
.hero-visual .ring.r3 { inset: 32%; }

.hero-visual .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 20px var(--accent-2);
}

.hero-visual .dot.d1 { top: 10%; left: 50%; }
.hero-visual .dot.d2 { top: 50%; right: 10%; background: var(--accent-3); box-shadow: 0 0 20px var(--accent-3); }
.hero-visual .dot.d3 { bottom: 18%; left: 22%; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }

.section-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
}

/* ---------- Marquee / stats ---------- */
.stats {
    background: var(--bg-soft);
    border-block: 1px solid var(--line);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-num {
    font-family: 'Manrope', sans-serif;
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- Service cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 60, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(255, 122, 60, 0.12);
    color: var(--accent);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 22px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.card-link:hover { gap: 10px; }

/* ---------- Split feature ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 18px; font-size: 16px; }

.check-list {
    list-style: none;
    margin-top: 24px;
}

.check-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
}

.check-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: rgba(255, 122, 60, 0.15);
    color: var(--accent);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.split-visual {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    padding: 32px;
}

.chart-bars {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 60%;
}

.chart-bars div {
    flex: 1;
    background: linear-gradient(180deg, var(--accent), rgba(255, 122, 60, 0.2));
    border-radius: 6px 6px 0 0;
    animation: rise 1.4s ease-out;
}

@keyframes rise {
    from { transform: scaleY(0); transform-origin: bottom; }
}

.chart-legend {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 16px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    margin: 60px auto;
    max-width: var(--max);
    background: linear-gradient(135deg, rgba(255, 122, 60, 0.15), rgba(91, 140, 255, 0.12));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    margin-bottom: 14px;
}

.cta-banner p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 28px;
}

/* ---------- Page header (non-home) ---------- */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(closest-side, rgba(255, 122, 60, 0.18), transparent);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(36px, 5vw, 54px);
    margin-bottom: 16px;
}

.page-header p {
    color: var(--muted);
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto;
}

.breadcrumb {
    display: inline-flex;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.breadcrumb a { color: var(--accent); }

/* ---------- Service detail ---------- */
.service-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail .card { padding: 36px; }
.service-detail .card h3 { font-size: 22px; }
.service-detail .card ul {
    list-style: none;
    margin-top: 18px;
}
.service-detail .card ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--muted);
    font-size: 15px;
}
.service-detail .card ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ---------- Team ---------- */
.team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    padding: 28px 20px;
    transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-4px); }

.team-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 800;
    color: #0b1020;
}

.team-card h4 { font-size: 17px; margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.team-card p { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- Values ---------- */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value {
    padding: 28px;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.value h4 { font-size: 18px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- Case studies ---------- */
.cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.case-card:hover { transform: translateY(-4px); }

.case-visual {
    height: 220px;
    background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
    position: relative;
    display: grid;
    place-items: center;
    font-size: 54px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: -0.04em;
}

.case-visual.v2 { background: linear-gradient(135deg, rgba(255, 122, 60, 0.3), rgba(91, 140, 255, 0.25)); color: rgba(255, 255, 255, 0.25); }
.case-visual.v3 { background: linear-gradient(135deg, rgba(91, 140, 255, 0.3), rgba(255, 122, 60, 0.2)); color: rgba(255, 255, 255, 0.25); }
.case-visual.v4 { background: linear-gradient(135deg, rgba(255, 182, 122, 0.28), rgba(91, 140, 255, 0.22)); color: rgba(255, 255, 255, 0.25); }

.case-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.case-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 122, 60, 0.12);
    color: var(--accent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.case-body h3 { font-size: 20px; margin-bottom: 10px; }
.case-body p { color: var(--muted); font-size: 15px; margin-bottom: 20px; flex: 1; }

.case-results {
    display: flex;
    gap: 22px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: auto;
}

.case-results div strong {
    display: block;
    font-size: 22px;
    font-family: 'Manrope', sans-serif;
    color: var(--accent);
}

.case-results div span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Blog ---------- */
.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.article:hover { transform: translateY(-4px); }

.article-visual {
    height: 180px;
    background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
    position: relative;
}

.article-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 122, 60, 0.4), transparent 60%);
}

.article-visual.v2::after { background: radial-gradient(circle at 70% 60%, rgba(91, 140, 255, 0.4), transparent 60%); }
.article-visual.v3::after { background: radial-gradient(circle at 50% 30%, rgba(255, 182, 122, 0.35), transparent 60%); }
.article-visual.v4::after { background: radial-gradient(circle at 20% 70%, rgba(91, 140, 255, 0.35), transparent 60%); }
.article-visual.v5::after { background: radial-gradient(circle at 80% 40%, rgba(255, 122, 60, 0.35), transparent 60%); }
.article-visual.v6::after { background: radial-gradient(circle at 40% 70%, rgba(91, 140, 255, 0.3), rgba(255, 122, 60, 0.2), transparent 70%); }

.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.article-meta span { color: var(--accent); font-weight: 600; }
.article h3 { font-size: 19px; margin-bottom: 10px; }
.article p { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1; }

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
}

.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--muted); font-size: 16px; margin-bottom: 34px; }

.contact-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 122, 60, 0.12);
    color: var(--accent);
    border-radius: 12px;
    font-size: 18px;
}

.contact-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 15px; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
}

.contact-form h3 { margin-bottom: 20px; font-size: 22px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
    background: #070a16;
    border-top: 1px solid var(--line);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
}

.footer-col h5 {
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

.socials { display: flex; gap: 14px; }
.socials a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: all 0.2s;
}
.socials a:hover {
    background: var(--accent);
    color: #0b1020;
    border-color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid,
    .split,
    .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .cards,
    .service-detail,
    .articles,
    .cases,
    .values { grid-template-columns: 1fr; }
    .team { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--line);
    }
    section { padding: 60px 0; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner { padding: 40px 24px; }
}

@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr; }
    .team { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-cta { display: none; }
    .hero { padding: 70px 0 80px; }
}
