:root {
    --bg: #0b0d12;
    --bg-elev: #11141b;
    --bg-soft: #f7f8fb;
    --surface: #ffffff;
    --ink: #0b0d12;
    --ink-soft: #41485a;
    --ink-mute: #6b7385;
    --line: #e6e8ef;
    --brand: #ea580c;
    --brand-2: #ff8a3d;
    --brand-deep: #c2410c;
    --accent: #14d3a3;
    --techkle: #ff6b35;
    --metablogue: #f59e0b;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(11, 13, 18, 0.18);
    --shadow-lg: 0 30px 60px -20px rgba(11, 13, 18, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 10px -4px rgba(234, 88, 12, 0.45);
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-desktop a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.15s ease;
}

.nav-desktop a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1.25rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
}

.nav-mobile a {
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}

.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 80% 0%, rgba(255, 138, 61, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 50%, rgba(245, 158, 11, 0.16), transparent 60%),
        radial-gradient(ellipse 50% 40% at 60% 100%, rgba(20, 211, 163, 0.08), transparent 60%);
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-content { min-width: 0; max-width: 100%; }

.hero-art-wrap {
    min-width: 0;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.hero-art {
    width: 100%;
    max-width: min(540px, 100%);
    height: auto;
    display: block;
}

.hero-stats { grid-column: 1 / -1; min-width: 0; max-width: 100%; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.06);
}

.hero h1 {
    background: linear-gradient(180deg, #0b0d12 0%, #2c2f3d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 18ch;
}

.hero .lede {
    font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
    color: var(--ink-soft);
    max-width: 56ch;
    margin-top: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(234, 88, 12, 0.55);
}

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

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

.btn-ghost:hover {
    background: var(--bg-soft);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
    font-family: 'Sora', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--ink);
}
.hero-stats span {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin-top: 0.15rem;
}

/* ---------- Sections ---------- */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: var(--bg-soft);
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 0.85rem;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-head .section-eyebrow { display: inline-block; }

.section-sub {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.prose p { font-size: 1.05rem; }
.prose strong { color: var(--ink); }

/* ---------- Brand cards ---------- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.brand-card {
    position: relative;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--brand);
}

.brand-techkle::before { background: var(--techkle); }
.brand-metablogue::before { background: var(--metablogue); }

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

.brand-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.brand-tag {
    font-size: 0.78rem;
    color: var(--ink-mute);
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    background: var(--bg-soft);
    border-radius: 999px;
}

.brand-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.brand-link:hover {
    background: var(--bg-soft);
    border-color: #d6dae4;
}

/* ---------- Post cards ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: 360px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-thumb {
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.04);
}

.post-thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.post-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: var(--ink-mute);
}

.post-source {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    color: #fff;
}

.post-source.techkle { background: var(--techkle); }
.post-source.metablogue { background: var(--metablogue); }

.post-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
}

.post-card h3 a {
    color: var(--ink);
    transition: color 0.15s ease;
}

.post-card:hover h3 a { color: var(--brand); }

.post-card p {
    font-size: 0.92rem;
    margin: 0 0 1.2rem;
    flex: 1;
}

.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand);
    margin-top: auto;
}

.post-readmore svg {
    transition: transform 0.15s ease;
}

.post-card:hover .post-readmore svg {
    transform: translate(2px, -2px);
}

.post-skeleton {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-skeleton .skel {
    background: linear-gradient(90deg, #eef0f5, #f7f8fb, #eef0f5);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.post-skeleton .skel-thumb { aspect-ratio: 16 / 9; }
.post-skeleton .skel-line {
    height: 12px;
    margin: 1rem 1.4rem;
    border-radius: 4px;
}
.post-skeleton .skel-line.short { width: 60%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Product cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.product-card {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.16), rgba(234, 88, 12, 0.12));
    color: var(--brand);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(20, 211, 163, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

/* ---------- Contact ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: var(--bg-soft); }

.contact-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-value {
    font-weight: 500;
    color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg);
    color: #c8cdd8;
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-brand strong {
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
}

.footer-brand p {
    color: #8b94a7;
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-cols a {
    display: block;
    color: #c8cdd8;
    font-size: 0.92rem;
    padding: 0.3rem 0;
    transition: color 0.15s ease;
}

.footer-cols a:hover { color: #fff; }

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #6b7385;
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }

    .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    .brand-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

    .hero { padding: 4rem 0 3.5rem; }
    .section { padding: 4rem 0; }
    .hero-stats { gap: 1.75rem; }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero h1 { max-width: none; }
    .hero-art { max-width: 440px; }
}

@media (max-width: 520px) {
    .footer-cols { grid-template-columns: 1fr; }
    .hero-stats strong { font-size: 1.55rem; }
    .brand-card, .product-card { padding: 1.5rem; }
    .contact-row { padding: 1rem 1.25rem; }
}
