/* ============================================================
   KURORAGI DIGITAL STUDIO — STYLESHEET
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary:      #050505;
    --bg-secondary:    #0a0a0a;
    --bg-surface:      #111111;
    --bg-surface-2:    #161616;
    --accent:          #38bdf8;
    --accent-dim:      rgba(56, 189, 248, 0.10);
    --accent-border:   rgba(56, 189, 248, 0.25);
    --text-primary:    #f0f0f0;
    --text-secondary:  #888888;
    --text-muted:      #444444;
    --border:          rgba(255, 255, 255, 0.07);
    --border-hover:    rgba(56, 189, 248, 0.30);

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --section-gap: 120px;
    --container:   1200px;

    /* Motion */
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ---- UTILITIES ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: var(--section-gap) 0;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: block;
}

.section-title {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 0.975rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-description {
    margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: var(--accent);
    color: #050505;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.10);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.72s var(--ease),
        transform 0.72s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: padding var(--transition), background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.nav-cta {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    margin-left: 10px;
}

.nav-link.nav-cta:hover {
    background: var(--accent);
    color: #050505;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: var(--transition);
    transform-origin: center;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Subtle top glow */
.hero::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 0 28px;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    width: 22px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0);    opacity: 1; }
    60%       { transform: translateY(10px); opacity: 0.25; }
}

/* ---- ABOUT ---- */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 0.955rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* About Visual */
.about-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-main {
    width: 288px;
    height: 288px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-card-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.about-card-inner {
    text-align: center;
    padding: 32px;
    width: 100%;
}

.card-glyph {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 28px;
    opacity: 0.75;
}

.card-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.card-line {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    width: 100%;
}

.card-line.short  { width: 55%; margin: 0 auto; }
.card-line.medium { width: 78%; margin: 0 auto; }

.card-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.dot.active {
    background: var(--accent);
}

.about-card-float {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.float-icon { font-size: 1.1rem; }

.card-float-1 {
    top:   40px;
    right: -16px;
    animation: floatUp 4s ease-in-out infinite;
}

.card-float-2 {
    bottom: 50px;
    left:   -16px;
    animation: floatDown 5s ease-in-out infinite;
}

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

@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ---- SERVICES ---- */
.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity var(--transition);
    background: radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-description {
    font-size: 0.865rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---- PORTFOLIO ---- */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 52px;
}

.portfolio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-6px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px var(--accent-border);
}

.portfolio-thumb {
    height: 216px;
    position: relative;
    overflow: hidden;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover .thumb-placeholder {
    background: #121212;
}

.thumb-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    transition: var(--transition);
}

.portfolio-card:hover .thumb-pattern {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
}

.thumb-label {
    font-size: 3.2rem;
    font-weight: 900;
    color: rgba(56, 189, 248, 0.08);
    position: relative;
    z-index: 1;
    letter-spacing: -0.05em;
    transition: var(--transition);
}

.portfolio-card:hover .thumb-label {
    color: rgba(56, 189, 248, 0.18);
}

.portfolio-info {
    padding: 20px 24px;
}

.portfolio-category {
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.portfolio-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.portfolio-action {
    text-align: center;
}

/* ---- PARTNERS ---- */
.partners {
    background: var(--bg-primary);
    padding: 80px 0;
}

.partners-list {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.partner-logo {
    transition: var(--transition);
    filter: grayscale(1) opacity(0.30);
}

.partner-logo:hover {
    filter: grayscale(0.2) opacity(0.70);
}

.logo-placeholder {
    padding: 20px 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ---- BLOG ---- */
.blog {
    background: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.blog-thumb {
    height: 160px;
    background: var(--bg-surface-2);
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    transition: var(--transition);
}

.blog-card:hover .blog-thumb {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
}

.blog-content {
    padding: 24px;
}

.blog-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.45;
}

.blog-excerpt {
    font-size: 0.845rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.blog-read {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
}

.blog-read:hover {
    letter-spacing: 0.04em;
}

/* ---- CONTACT ---- */
.contact {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px;
}

.contact-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 36px;
    margin-top: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.89rem;
    color: var(--text-secondary);
}

.contact-icon {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ---- FORM ---- */
.form-group {
    margin-bottom: 14px;
}

.form-input {
    width: 100%;
    padding: 13px 18px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
    resize: none;
    appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent-border);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.07);
}

.form-textarea {
    min-height: 140px;
    line-height: 1.7;
}

.form-group:last-child {
    margin-top: 8px;
    margin-bottom: 0;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 72px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-tagline {
    font-size: 0.845rem;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 24px;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link svg {
    width: 15px;
    height: 15px;
}

.social-link:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-link {
    display: block;
    font-size: 0.855rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy,
.footer-made {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .about-grid {
        gap: 56px;
    }

    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        gap: 52px;
        padding: 52px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 84px;
    }

    /* Mobile nav */
    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        z-index: 1000;
    }

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

    .nav-menu .nav-link {
        font-size: 1.15rem;
        padding: 14px 28px;
    }

    .nav-menu .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        height: 320px;
    }

    .card-float-1,
    .card-float-2 {
        display: none;
    }

    .about-stats {
        gap: 28px;
        flex-wrap: wrap;
    }

    /* Grids → single column */
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 36px 28px;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 20px;
    }
}


/* ============================================================
   DESIGN SYSTEM — REUSABLE COMPONENTS
   Shared across all pages. No page-specific class names.
   ============================================================ */

/* ---- TEXT UTILITIES ---- */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-secondary-color { color: var(--text-secondary); }

.body-text {
    font-size: 0.955rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 18px;
}

.body-text:last-of-type { margin-bottom: 0; }

/* ---- GRID SYSTEM ---- */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Two-column content layout with generous gap */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Reverse column order */
.content-grid.reverse > *:first-child { order: 2; }
.content-grid.reverse > *:last-child  { order: 1; }

/* ---- GENERIC CARD ---- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card-body {
    font-size: 0.865rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---- ICON BOX ---- */
.icon-box {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.icon-box svg {
    width: 22px;
    height: 22px;
}

.card:hover .icon-box {
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.18);
}

/* Value card: centered icon layout */
.value-card {
    text-align: center;
}

.value-card .icon-box {
    margin-left: auto;
    margin-right: auto;
}

/* ---- TAG / BADGE ---- */
.tag {
    display: inline-block;
    padding: 5px 13px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--accent);
}

/* ---- CHIP (floating label) ---- */
.chip {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.chip-tl { top:    -16px; left:  -16px; animation: floatDown 5s ease-in-out infinite; }
.chip-tr { top:    -16px; right: -16px; animation: floatUp   4s ease-in-out infinite; }
.chip-bl { bottom: -16px; left:  -16px; animation: floatDown 5s ease-in-out infinite; }
.chip-br { bottom: -16px; right: -16px; animation: floatUp   4s ease-in-out infinite; }

/* ---- HERO — SPLIT VARIANT ---- */
/* Shared .hero class already defined above.
   .hero--split overrides height/layout for two-column pages. */
.hero--split {
    height: auto;
    min-height: 76vh;
    padding: 140px 0 88px;
}

/* Remove centered justify from split hero — container handles alignment */
.hero--split {
    justify-content: stretch;
    align-items: stretch;
}

.hero--split .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

/* In split hero, text is left-aligned */
.hero--split .hero-content {
    text-align: left;
    max-width: none;
    padding: 0;
}

.hero--split .hero-description {
    margin-left: 0;
    margin-right: 0;
}

.hero--split .hero-actions {
    justify-content: flex-start;
}

/* Visual column in split hero */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

/* ---- VISUAL BLOCK (abstract card in hero) ---- */
.visual-block {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.visual-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface-2);
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.window-dot:nth-child(1) { background: rgba(255, 95,  87,  0.5); }
.window-dot:nth-child(2) { background: rgba(255, 189, 46,  0.5); }
.window-dot:nth-child(3) { background: rgba(39,  201, 63,  0.5); }

.visual-content {
    padding: 32px;
}

.visual-badge {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin-bottom: 24px;
}

.visual-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.visual-line {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    width: 100%;
}

.visual-line--med   { width: 76%; }
.visual-line--short { width: 50%; }

.visual-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.visual-meta {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.visual-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.visual-meta-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
}

.visual-meta-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- TIMELINE ---- */
.timeline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 0 0;
}

.timeline-line {
    position: absolute;
    left:  50%;
    top:   0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(56, 189, 248, 0.35) 6%,
        rgba(56, 189, 248, 0.35) 94%,
        transparent 100%
    );
    pointer-events: none;
}

.timeline-items {
    position: relative;
}

.timeline-item {
    position: relative;
    display: flex;
    padding-bottom: 52px;
    /* Default: card on LEFT */
    justify-content: flex-start;
    padding-right: calc(50% + 28px);
}

.timeline-item:nth-child(even) {
    /* Card on RIGHT */
    justify-content: flex-end;
    padding-right: 0;
    padding-left: calc(50% + 28px);
}

.timeline-dot {
    position: absolute;
    left:  50%;
    top:   28px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2.5px solid var(--bg-secondary);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
    transition: box-shadow var(--transition);
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18),
                0 0 18px rgba(56, 189, 248, 0.4);
}

.timeline-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    max-width: 380px;
    width: 100%;
    transition: var(--transition);
    position: relative;
}

.timeline-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Even items: right-align text in card */
.timeline-item:nth-child(even) .timeline-card {
    text-align: right;
}

.timeline-year {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---- STATS SECTION ---- */
.stats-section {
    background: var(--bg-surface);
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 0;
}

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

.stat-item .stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

/* ---- CTA SECTION ---- */
.cta-section {
    background: var(--bg-secondary);
    padding: var(--section-gap) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top:  50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.cta-box {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-box .section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    margin-bottom: 20px;
}

.cta-box .section-description {
    max-width: 100%;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- PAGE HERO BREADCRUMB ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb-sep { opacity: 0.4; }

.breadcrumb-current { color: var(--text-secondary); }


/* ============================================================
   RESPONSIVE — NEW COMPONENTS
   ============================================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .hero-grid {
        gap: 48px;
    }

    .content-grid {
        gap: 56px;
    }
}

@media (max-width: 768px) {
    /* Hero split → single column */
    .hero--split {
        min-height: auto;
        padding: 120px 0 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero--split .hero-content {
        text-align: center;
    }

    .hero--split .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero--split .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: 300px;
    }

    /* Grid overrides */
    .grid-2,
    .grid-3,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-grid { gap: 48px; }

    .content-grid.reverse > *:first-child { order: unset; }
    .content-grid.reverse > *:last-child  { order: unset; }

    /* Timeline → single column */
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 56px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(even) .timeline-card {
        text-align: left;
    }

    .timeline-card {
        max-width: 100%;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    /* Chips */
    .chip-tl,
    .chip-tr,
    .chip-bl,
    .chip-br {
        display: none;
    }
}

@media (max-width: 480px) {
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }
}


/* ============================================================
   PORTFOLIO PAGE COMPONENTS
   Reusable — filter bar, flip cards, process steps.
   ============================================================ */

/* ---- FILTER BAR ---- */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 56px;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.825rem;
    font-weight: 500;
    font-family: var(--font);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    border-color: var(--accent-border);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.10);
}

/* ---- FLIP CARD ---- */
.flip-card {
    perspective: 1200px;
    height: 380px;
    cursor: pointer;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.60s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Both faces — shared base */
.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* Front face */
.card-front {
    display: flex;
    flex-direction: column;
}

.flip-card:hover .card-front,
.flip-card.flipped .card-front {
    border-color: var(--accent-border);
}

/* Back face */
.card-back {
    transform: rotateY(180deg);
    background:
        radial-gradient(ellipse at 50% 20%, rgba(56, 189, 248, 0.07) 0%, transparent 65%),
        var(--bg-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.flip-card:hover .card-back,
.flip-card.flipped .card-back {
    border-color: var(--accent-border);
    box-shadow:
        0 0 0 1px var(--accent-border),
        0 20px 56px rgba(0, 0, 0, 0.55);
}

/* Back inner layout — flex column */
.card-back-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.card-back-inner .icon-box {
    margin: 0;
}

.card-back-inner .card-title {
    font-size: 1rem;
    margin-bottom: 0;
}

.card-back-inner .card-body {
    font-size: 0.845rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Thumbnail in front face */
.card-thumb {
    height: 200px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb .thumb-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    transition: var(--transition);
}

.flip-card:hover .card-thumb .thumb-pattern,
.flip-card.flipped .card-thumb .thumb-pattern {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
}

.card-thumb .thumb-label {
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(56, 189, 248, 0.10);
    position: relative;
    z-index: 1;
    letter-spacing: -0.04em;
    transition: var(--transition);
    user-select: none;
}

.flip-card:hover .card-thumb .thumb-label {
    color: rgba(56, 189, 248, 0.22);
}

/* Tag group in front face */
.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Hidden state — used by JS filter */
.flip-card.card-hidden {
    opacity: 0;
    transform: scale(0.94);
    pointer-events: none;
}

/* Small button modifier */
.btn-sm {
    padding: 9px 20px;
    font-size: 0.815rem;
}

/* ---- PROCESS STEPS ---- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-step {
    text-align: center;
}

.process-step .icon-box {
    margin: 0 auto 20px;
}

.step-num {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 18px;
    opacity: 0.55;
}


/* ============================================================
   RESPONSIVE — PORTFOLIO COMPONENTS
   ============================================================ */

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-bar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 40px;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .flip-card {
        height: 360px;
    }

    .card-thumb {
        height: 180px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .flip-card {
        height: 350px;
    }

    .card-thumb {
        height: 168px;
    }

    .card-back {
        padding: 24px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   LAYANAN PAGE COMPONENTS
   Related works chips, tech-stack grid.
   ============================================================ */

/* ---- RELATED WORKS ---- */
.related-works {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.related-works-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.related-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.related-chip {
    padding: 5px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.related-chip:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ---- TECH STACK GRID ---- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.tech-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 16px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: default;
}

.tech-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.45),
        0 0 0 1px var(--accent-border);
}

.tech-glyph {
    width: 44px;
    height: 44px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    transition: var(--transition);
    flex-shrink: 0;
    font-family: var(--font);
}

.tech-item:hover .tech-glyph {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.14);
}

.tech-item-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.tech-item:hover .tech-item-name {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tech-item {
        padding: 18px 10px 14px;
        gap: 8px;
    }

    .tech-glyph {
        width: 38px;
        height: 38px;
        font-size: 0.75rem;
    }
}


/* ============================================================
   PRICING PAGE COMPONENTS
   Reusable — pricing grid, pricing cards, FAQ accordion.
   ============================================================ */

/* ---- VISUAL PRICING ROWS (hero visual block variant) ---- */
.visual-pricing-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 20px 0;
}

.visual-pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
}

.visual-pricing-row.highlighted {
    border-color: var(--accent-border);
    background: var(--accent-dim);
}

.visual-pricing-tier {
    color: var(--text-secondary);
    font-weight: 500;
}

.visual-pricing-row.highlighted .visual-pricing-tier {
    color: var(--text-primary);
    font-weight: 600;
}

.visual-pricing-val {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.73rem;
}

.visual-pricing-row.highlighted .visual-pricing-val {
    color: var(--accent);
}

/* ---- PRICING GRID ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

/* ---- PRICING CARD ---- */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(ellipse at top center, rgba(56, 189, 248, 0.05) 0%, transparent 65%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50);
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-card.recommended {
    border-color: var(--accent-border);
}

.pricing-card.recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    pointer-events: none;
}

.pricing-card.recommended::after {
    opacity: 1;
}

.pricing-card.recommended:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.50),
        0 0 36px rgba(56, 189, 248, 0.08);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 11px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.pricing-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.pricing-icon svg {
    width: 100%;
    height: 100%;
}

.pricing-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.pricing-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 24px;
}

.pricing-price-wrapper {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.pricing-price-note {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.pricing-amount {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-amount.custom {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.01em;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 28px;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-check {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- FAQ ACCORDION ---- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.935rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover,
.faq-question.open {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.04);
}

.faq-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.faq-question:hover .faq-icon,
.faq-question.open .faq-icon {
    color: var(--accent);
}

.faq-question.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
        padding    0.42s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 28px;
}

.faq-answer.open {
    max-height: 320px;
    padding: 0 28px 22px;
}

.faq-answer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.82;
    padding-top: 2px;
}

/* ============================================================
   RESPONSIVE — PRICING COMPONENTS
   ============================================================ */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 18px 20px;
        font-size: 0.875rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-answer.open {
        padding: 0 20px 18px;
    }
}


/* ============================================================
   BLOG PAGE COMPONENTS
   Reusable — featured article, search bar, newsletter, pagination.
   ============================================================ */

/* ---- FEATURED ARTICLE ---- */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.featured-article:hover {
    border-color: var(--accent-border);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.featured-thumb {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface-2);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-thumb .thumb-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    transition: var(--transition);
}

.featured-article:hover .featured-thumb .thumb-pattern {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.09) 1px, transparent 1px);
}

.featured-thumb .thumb-label {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(56, 189, 248, 0.10);
    position: relative;
    z-index: 1;
    letter-spacing: -0.04em;
    user-select: none;
    transition: var(--transition);
}

.featured-article:hover .featured-thumb .thumb-label {
    color: rgba(56, 189, 248, 0.20);
}

.featured-content {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.featured-label {
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.featured-title {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.32;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.featured-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.featured-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

/* ---- SEARCH BAR ---- */
.search-wrapper {
    max-width: 520px;
    margin: 0 auto 36px;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 14px 52px 14px 22px;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.06);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* ---- BLOG CARD ENHANCEMENTS ---- */
/* Extends existing .blog-card / .blog-thumb */
.blog-thumb-inner {
    position: relative;
    overflow: hidden;
    height: 188px;
    background: var(--bg-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-thumb-inner .thumb-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    transition: background-image var(--transition);
}

.blog-card:hover .blog-thumb-inner .thumb-pattern {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
}

.blog-thumb-inner .thumb-label {
    font-size: 2.6rem;
    font-weight: 900;
    color: rgba(56, 189, 248, 0.09);
    position: relative;
    z-index: 1;
    letter-spacing: -0.04em;
    transition: var(--transition);
    user-select: none;
}

.blog-card:hover .blog-thumb-inner .thumb-label {
    color: rgba(56, 189, 248, 0.20);
}

.blog-read-time {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ---- NEWSLETTER SECTION ---- */
.newsletter-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 88px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 240px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.newsletter-box {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}

.newsletter-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 20px;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    min-width: 0;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.06);
}

.newsletter-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.6;
}

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 64px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.845rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--accent-border);
    color: var(--text-primary);
    background: var(--accent-dim);
}

.pagination-btn.active {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
}

.pagination-btn.arrow {
    color: var(--text-muted);
}

.pagination-btn.arrow:hover {
    color: var(--accent);
}

.pagination-dots {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 4px;
    user-select: none;
}

/* ============================================================
   RESPONSIVE — BLOG COMPONENTS
   ============================================================ */

@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-thumb {
        min-height: 280px;
    }

    .featured-content {
        padding: 36px 36px;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        justify-content: center;
    }

    .featured-content {
        padding: 28px 28px;
    }

    .featured-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .featured-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 0.80rem;
    }
}


/* ============================================================
   KONTAK PAGE COMPONENTS
   Reusable — form labels, select, contact cards, social, map.
   ============================================================ */

/* ---- SCREEN-READER ONLY UTILITY ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- FORM LABEL ---- */
.form-label {
    display: block;
    font-size: 0.775rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ---- FORM ROW (two-column) ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* ---- FORM SELECT (custom dropdown arrow) ---- */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 44px;
    cursor: pointer;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ---- FORM HINTS & VALIDATION ---- */
.form-hint {
    font-size: 0.72rem;
    display: block;
    margin-top: 5px;
    line-height: 1.4;
    color: var(--text-muted);
    min-height: 1em;
}

.form-hint.error   { color: rgba(248, 80,  80,  0.85); }
.form-hint.success { color: rgba(56,  200, 100, 0.85); }

.form-input.has-error {
    border-color: rgba(248, 80, 80, 0.40);
    box-shadow: 0 0 0 3px rgba(248, 80, 80, 0.06);
}

/* ---- FORM SUCCESS STATE ---- */
.form-success {
    display: none;
    text-align: center;
    padding: 60px 32px;
}

.form-success.visible {
    display: block;
}

.form-success-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 20px;
}

.form-success-icon svg {
    width: 24px;
    height: 24px;
}

/* ---- CONTACT FORM CARD ---- */
.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 52px 56px;
    max-width: 820px;
    margin: 0 auto;
}

/* ---- CONTACT LINK ---- */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 8px;
}

.contact-link:hover {
    opacity: 0.75;
    letter-spacing: 0.015em;
}

/* ---- SOCIAL PLATFORM GRID & CARDS ---- */
.social-platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.social-platform-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.social-platform-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.40);
}

.social-platform-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: var(--transition);
    flex-shrink: 0;
}

.social-platform-icon svg {
    width: 22px;
    height: 22px;
}

.social-platform-card:hover .social-platform-icon {
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.18);
}

.social-platform-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.social-platform-handle {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- MAP PLACEHOLDER ---- */
.map-placeholder {
    height: 340px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.022) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

.map-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 320px;
    padding: 0 20px;
}

.map-pin-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 16px;
}

.map-pin-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   RESPONSIVE — KONTAK COMPONENTS
   ============================================================ */

@media (max-width: 1024px) {
    .social-platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 32px 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .social-platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-placeholder {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 24px 20px;
    }

    .social-platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .social-platform-card {
        padding: 22px 12px;
    }
}
