/* ==========================================================================
   Moonlight Digital CSS Custom Design System (Cohere-inspired minimalist)
   ========================================================================== */

/* --- Custom Variables --- */
:root {
    /* Colors */
    --color-black: #000000;
    --color-near-black: #17171c;
    --color-deep-green: #003c33;
    --color-dark-navy: #071829;
    --color-action-blue: #1863dc;
    --color-coral: #ff7759;
    --color-soft-coral: #ffad9b;
    --color-white: #ffffff;
    --color-stone: #eeece7;
    --color-pale-green: #edfce9;
    --color-pale-blue: #f1f5ff;
    
    --color-ink: #212121;
    --color-muted-slate: #93939f;
    --color-slate: #75758a;
    
    --color-border-card: #f2f2f2;
    --color-hairline: #d9d9dd;
    --color-border-light: #e5e7eb;
    
    --color-focus: #4c6ee6;
    --color-form-focus: #9b60aa;
    --color-error: #b30000;

    /* Typography */
    --font-display: 'Space Grotesk', 'Inter', 'Noto Sans Thai', sans-serif;
    --font-body: 'Inter', 'Noto Sans Thai', sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* Border Radius Scale */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-pill: 32px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

/* --- Base Reset & Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-ink);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- Language Toggle Controls --- */
/* Simple CSS translation toggle mechanism */
body.lang-th [lang-en] {
    display: none !important;
}

body.lang-en [lang-th] {
    display: none !important;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
}

strong {
    color: var(--color-black);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- Layout Utility Classes --- */
.scroll-offset {
    scroll-margin-top: 100px; /* Offset for sticky header */
}

.text-white {
    color: var(--color-white) !important;
}

.text-muted {
    color: var(--color-muted-slate) !important;
}

.text-green {
    color: #10b981 !important;
}

.text-yellow {
    color: #f59e0b !important;
}

/* --- Buttons & CTAs --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-near-black);
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-near-black);
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background-color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-ink) !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    color: var(--color-action-blue) !important;
    transform: translateX(4px);
}

.btn-package {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-near-black);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 24px;
    width: 100%;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-hairline);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-package:hover {
    background-color: var(--color-near-black);
    color: var(--color-white);
    border-color: var(--color-near-black);
    transform: translateY(-2px);
}



/* --- Badges --- */
.badge-mono {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-coral);
    background-color: rgba(255, 119, 89, 0.08);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    margin-bottom: 24px;
    font-weight: 700;
}

.section-badge {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-action-blue);
    border-bottom: 1px solid var(--color-action-blue);
    padding-bottom: 4px;
    margin-bottom: 16px;
}

.section-badge.centered {
    margin-bottom: 20px;
}

.section-badge.text-white-badge {
    color: var(--color-soft-coral);
    border-color: var(--color-soft-coral);
}

/* --- Announcement Bar --- */
.announcement-bar {
    position: relative;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 10px 48px;
    text-align: center;
    font-size: 0.8125rem;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
}

.announcement-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-link {
    color: var(--color-soft-coral);
    text-decoration: underline;
    font-weight: 500;
}

.announcement-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-muted-slate);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.announcement-close:hover {
    color: var(--color-white);
}

/* --- Main Navigation Header --- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-black);
    letter-spacing: -0.01em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--color-ink);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: var(--color-black);
}

.nav-link.active {
    color: var(--color-black);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background-color: var(--color-stone);
    padding: 3px;
    border-radius: var(--radius-xl);
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    border-radius: var(--radius-xl);
    color: var(--color-slate);
    transition: var(--transition-fast);
}

.lang-btn.active {
    background-color: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition-smooth);
}

/* Open states for toggle */
.mobile-nav-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-black);
}

.mobile-cta-btn {
    margin-top: 16px;
    width: 200px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 60px 40px 100px 40px;
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Mesh Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(24, 99, 220, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 114, 94, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 60, 51, 0.04) 0%, transparent 50%);
    animation: heroMeshDrift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Dot Grid Pattern Overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes heroMeshDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
    100% { transform: translate(10px, -10px) scale(1); }
}

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

.hero-text-content {
    max-width: 680px;
}

.hero-title {
    font-size: 3.75rem; /* 60px equivalent */
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -0.03em;
}

body.lang-th .hero-title {
    line-height: 1.2;
    letter-spacing: 0;
}

/* Gradient highlight word in title */
.hero-title-highlight {
    background: linear-gradient(135deg, var(--color-deep-green), var(--color-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-subtext {
    font-size: 1.125rem;
    color: var(--color-slate);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-visual {
    width: 100%;
}

/* Live System Care Hub Mockup Styling (Light & Premium) */
.system-care-hub {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-hairline);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    color: var(--color-ink);
}

.hub-header {
    background-color: var(--color-stone);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-hairline);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.close { background-color: #ff5f56; }
.dot.minimize { background-color: #ffbd2e; }
.dot.expand { background-color: #27c93f; }

.widget-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate);
    font-family: var(--font-mono);
}

.widget-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    color: #238636;
    font-weight: 700;
    font-family: var(--font-mono);
}

.status-pulse {
    width: 6px;
    height: 6px;
    background-color: #238636;
    border-radius: 50%;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.8; }
}

.hub-body {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    height: 320px;
}

/* Left Sidebar */
.hub-sidebar {
    background-color: #f7f6f3;
    border-right: 1px solid var(--color-hairline);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-slate);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-ink);
}

.item-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.item-status.active {
    background-color: #238636;
    box-shadow: 0 0 6px rgba(35, 134, 54, 0.6);
}

.item-name {
    color: var(--color-ink);
}

/* Right Main Panel */
.hub-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--color-white);
    overflow: hidden;
}

.hub-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hub-metric-card {
    background-color: var(--color-stone);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-card);
}

.metric-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-slate);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-black);
}

.metric-value.text-green {
    color: #238636 !important;
}

.live-activity-panel {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-hairline);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.activity-tab-header {
    background-color: var(--color-stone);
    padding: 8px 16px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-hairline);
}

.activity-tab.active {
    color: var(--color-black);
}

.activity-content {
    padding: 16px;
    font-size: 0.75rem;
    line-height: 1.5;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.activity-log-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.log-badge-time {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-slate);
    background-color: var(--color-stone);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}

.log-text {
    color: var(--color-ink);
}

/* Chat simulation row */
.activity-log-row.chat-highlight {
    background-color: var(--color-stone);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 2.5px solid var(--color-action-blue);
    flex-direction: column;
    gap: 6px;
}

.log-chat-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.chat-row {
    display: flex;
    gap: 6px;
    font-size: 0.71875rem;
}

.chat-sender {
    font-weight: 700;
    color: var(--color-black);
    flex-shrink: 0;
}

.chat-msg {
    color: var(--color-ink);
}

.chat-msg.text-green {
    color: #1e702e !important;
}

/* Layered Visual Wrapper Mockup styling */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 0;
}

.visual-glow {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background:
        radial-gradient(circle at 30% 30%, rgba(24, 99, 220, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 114, 94, 0.08) 0%, transparent 50%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.system-care-hub {
    position: relative;
    z-index: 2;
}

/* Floating Card Base Styles (Glassmorphism) */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 3;
    transition: var(--transition-smooth);
}

.floating-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow:
        0 20px 48px rgba(24, 99, 220, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Stat Floating Card (Top Left) */
.stat-card-floating {
    top: -20px;
    left: -40px;
    width: 190px;
    animation: floating1 6s ease-in-out infinite;
}

.f-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.f-card-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.f-card-details {
    display: flex;
    flex-direction: column;
}

.f-card-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--color-slate);
    letter-spacing: 0.05em;
}

.f-card-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-black);
}

.f-card-graph {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: flex-end;
}

.sparkline-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.sparkline-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s ease forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Chat Floating Card (Bottom Right) */
.chat-card-floating {
    bottom: -20px;
    right: -40px;
    width: 250px;
    animation: floating2 6s ease-in-out infinite;
    animation-delay: -3s; /* Out of sync with the other card */
}

.f-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-hairline);
    padding-bottom: 8px;
}

.f-chat-avatar {
    width: 26px;
    height: 26px;
    background-color: var(--color-deep-green);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-chat-info {
    display: flex;
    flex-direction: column;
}

.f-chat-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-black);
}

.f-chat-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.52rem;
    color: #238636;
    font-weight: 600;
}

.status-pulse-green {
    width: 4px;
    height: 4px;
    background-color: #238636;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 1.8s infinite;
}

.f-chat-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.f-chat-body .chat-bubble {
    font-size: 0.65rem;
    padding: 6px 10px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.4;
}

.f-chat-body .chat-bubble.user {
    background-color: var(--color-stone);
    color: var(--color-ink);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.f-chat-body .chat-bubble.admin {
    background-color: var(--color-pale-blue);
    color: var(--color-action-blue);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

/* Animations for Floating Elements */
@keyframes floating1 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes floating2 {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* --- Trust Logo Strip --- */
.trust-section {
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: 60px 40px;
    background-color: var(--color-white);
}

.trust-container {
    max-width: 1440px;
    margin: 0 auto;
}

.trust-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate);
    text-align: center;
    letter-spacing: 0.06em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.logo-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    max-width: 180px;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-black);
}

.logo-sub {
    font-size: 0.6875rem;
    color: var(--color-muted-slate);
}

/* --- About Section --- */
.about-section {
    padding: 120px 40px;
    background-color: var(--color-white);
    max-width: 1440px;
    margin: 0 auto;
}

.about-container {
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: start;
}

.about-visual-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start;
}

.stat-card {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--color-hairline);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.01);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-deep-green);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 60, 51, 0.04);
    border-color: rgba(0, 60, 51, 0.12);
}

.stat-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-deep-green) 0%, var(--color-near-black) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-slate);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Accent Card Special Styles */
.stat-card.accent-card {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-deep-green) 0%, #001e1a 100%);
    border: 1px solid rgba(0, 60, 51, 0.1);
    box-shadow: 0 12px 36px rgba(0, 60, 51, 0.12);
    padding: 36px 40px 100px 40px; /* Leave room for sparkline */
}

.stat-card.accent-card::before {
    background: var(--color-soft-coral);
}

.stat-card.accent-card .stat-number {
    background: linear-gradient(135deg, var(--color-soft-coral) 0%, #ffa38f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.accent-card .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-card.accent-card:hover {
    background: linear-gradient(135deg, #002822 0%, var(--color-near-black) 100%);
    border-color: rgba(255, 114, 94, 0.15);
    box-shadow: 0 16px 40px rgba(255, 114, 94, 0.12);
}

/* Programmatic Header Flex inside Accent Card */
.stat-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.uptime-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: uptimePulse 1.8s infinite;
}

/* Sparkline wave styling */
.card-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.85;
}

.card-sparkline svg {
    width: 100%;
    height: 100%;
}

@keyframes uptimePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Stat Card Icon Circles */
.stat-icon-row {
    margin-bottom: 16px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Stat Number Suffix (+, %) */
.stat-suffix {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.5;
    margin-left: 2px;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mini Bar Chart Decoration */
.stat-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 36px;
    margin-top: 20px;
    opacity: 0.4;
}

.stat-mini-bars span {
    flex: 1;
    background: var(--color-deep-green);
    border-radius: 3px 3px 0 0;
    min-width: 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover .stat-mini-bars {
    opacity: 0.7;
}

.stat-mini-bars.yellow span {
    background: #a16207;
}

.about-text-content {
    max-width: 600px;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 32px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

body.lang-th .section-title {
    line-height: 1.3;
}

.section-paragraph p {
    font-size: 1.0625rem;
    color: #4a4a4a;
    margin-bottom: 24px;
}

.about-quote {
    margin-top: 40px;
    padding-left: 24px;
    border-left: 2px solid var(--color-coral);
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    position: absolute;
    left: 8px;
    top: -24px;
    color: rgba(255, 119, 89, 0.15);
    line-height: 1;
}

.about-quote p {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    color: var(--color-black);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
}

/* --- Services Section --- */
.services-section {
    padding: 120px 40px;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border-light);
    max-width: 1440px;
    margin: 0 auto;
}

.section-header-centered {
    max-width: 800px;
    margin: 0 auto 80px auto;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-slate);
    margin-top: -16px;
    line-height: 1.5;
}

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

.service-card {
    background-color: var(--color-white);
    border-top: 2px solid var(--color-hairline);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-top-color: var(--color-coral);
    background-color: var(--color-pale-green);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 60, 51, 0.03);
}

.service-icon-box {
    margin-bottom: 24px;
    color: var(--color-deep-green);
}

.service-icon {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon-box {
    color: var(--color-coral);
}

.service-title {
    font-size: 1.375rem;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    color: #555555;
    margin-bottom: auto;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    margin-top: 32px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--color-near-black);
    letter-spacing: 0.05em;
}

.service-card:hover .service-link {
    color: var(--color-action-blue);
}

/* --- Packages Section --- */
/* --- Packages Section -> Refactored to Quote Request Center --- */
.packages-section {
    padding: 120px 40px;
    background-color: var(--color-stone);
    border-top: 1px solid var(--color-border-light);
}

.packages-container {
    max-width: 1440px;
    margin: 0 auto;
}

.consultation-card {
    background-color: var(--color-deep-green);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 72px 56px;
    box-shadow: 0 30px 60px rgba(0, 60, 51, 0.15);
    max-width: 1040px;
    margin: 0 auto;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

/* Subtle graphic decoration */
.consultation-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    transform: rotate(-15deg);
}

.consultation-content {
    position: relative;
    z-index: 2;
}

.consultation-title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-top: 16px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--color-white);
}

.consultation-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.consultation-sidebar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* Right summary panel */
.benefits-panel {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 20px;
}

.benefit-panel-header {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--color-white);
    line-height: 1.4;
}

.benefit-check {
    width: 14px;
    height: 14px;
    color: #56d364;
    flex-shrink: 0;
}

.consultation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--color-white);
    color: var(--color-deep-green) !important;
    border: 1px solid var(--color-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
}

.consultation-btn:hover {
    background-color: var(--color-stone);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

/* --- Work Process Section (Timeline) --- */
.process-section {
    padding: 120px 40px;
    background-color: var(--color-near-black);
}

.process-container {
    max-width: 1440px;
    margin: 0 auto;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0 auto;
    padding: 20px 0;
}

/* Timeline progress vertical bar */
.timeline-progress-line {
    position: absolute;
    left: 31px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0; /* Animated dynamically on scroll */
    background-color: var(--color-coral);
    transition: height 0.1s linear;
}

.process-step-item {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    z-index: 2;
}

.process-step-item:last-child {
    margin-bottom: 0;
}

.step-number-circle {
    width: 64px;
    height: 64px;
    background-color: #24242b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.process-step-item.active .step-number-circle {
    background-color: var(--color-coral);
    color: var(--color-near-black);
    border-color: var(--color-coral);
    box-shadow: 0 0 15px rgba(255, 119, 89, 0.4);
}

.step-content-card {
    background-color: #24242b;
    border-radius: var(--radius-md);
    padding: 32px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.process-step-item.active .step-content-card {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: #2b2b35;
    transform: translateX(8px);
}

.step-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-soft-coral);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.step-title {
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: 16px;
}

.step-desc {
    color: #b3b3ba;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
    padding: 120px 40px;
    background-color: var(--color-deep-green);
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: start;
}

.contact-info-col {
    color: var(--color-white);
}

.contact-intro {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -16px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.channel-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.channel-icon {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-details {
    display: flex;
    flex-direction: column;
}

.channel-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--color-soft-coral);
    margin-bottom: 4px;
}

.channel-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-white);
}

.channel-value:hover {
    color: var(--color-soft-coral);
    text-decoration: underline;
}



/* Contact Form Card styling */
.contact-form-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--color-hairline);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-ink);
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-muted-slate);
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-form-focus);
    box-shadow: 0 0 0 3px rgba(155, 96, 170, 0.12);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2375758a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

/* Custom Success Overlay inside form card */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 10;
}

.form-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-message-box {
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-pale-green);
    color: var(--color-deep-green);
    font-size: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.success-text {
    font-size: 0.9375rem;
    color: var(--color-slate);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Footer Section --- */
.main-footer {
    background-color: var(--color-black);
    color: var(--color-muted-slate);
    padding: 80px 40px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-col {
    max-width: 400px;
}

.footer-brand-col .logo-area {
    margin-bottom: 20px;
}

.footer-brand-desc {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--color-muted-slate);
}

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

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.75rem;
}

.corporate-info {
    max-width: 600px;
    line-height: 1.6;
}

.copyright-info {
    text-align: right;
}

/* --- Responsive Breakpoints (matching DESIGN.md) --- */

/* Small & Normal Mobile (<768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 16px 20px;
    }
    
    .desktop-nav,
    .desktop-cta {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 40px 20px 80px 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    
    .system-care-hub {
        max-width: 100%;
    }
    
    .hub-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .hub-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--color-hairline);
        padding: 16px;
    }
    
    .sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .hub-main {
        padding: 16px;
        height: 300px;
    }
    
    .hero-visual-wrapper {
        padding: 20px 0 40px 0;
    }
    
    .stat-card-floating,
    .chat-card-floating {
        position: static;
        width: 100%;
        margin-top: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
        animation: none;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
    
    .about-section {
        padding: 80px 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual-stats {
        order: 2;
        grid-template-columns: 1fr;
    }
    
    .stat-card.accent-card {
        grid-column: span 1;
    }
    
    .stat-card-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-section {
        padding: 80px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 24px;
    }
    
    .packages-section {
        padding: 80px 20px;
    }
    
    .consultation-card {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 32px;
    }
    
    .consultation-title {
        font-size: 1.625rem;
    }
    
    .process-section {
        padding: 80px 20px;
    }
    
    .timeline-progress-line {
        left: 21px;
    }
    
    .step-number-circle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .step-content-card {
        padding: 24px;
    }
    
    .contact-section {
        padding: 80px 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-card {
        padding: 32px 24px;
    }
    
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .copyright-info {
        text-align: left;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .consultation-card {
        grid-template-columns: 1fr;
        padding: 56px 40px;
        gap: 32px;
    }
    
    .consultation-title {
        font-size: 1.875rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Large Desktop (min-width: 1200px) for 4-column services layout */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Tech Stack Section --- */
.tech-stack-section {
    padding: 64px 40px;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    text-align: center;
}

.tech-stack-container {
    max-width: 1440px;
    margin: 0 auto;
}

.tech-stack-header {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-slate);
    letter-spacing: 0.08em;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.tech-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px 48px;
    flex-wrap: wrap;
}

.tech-logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-slate);
    transition: var(--transition-smooth);
    cursor: default;
}

.tech-logo-item span {
    font-family: var(--font-body);
}

.tech-logo-item:hover {
    color: var(--color-black);
    transform: translateY(-2px);
}

.tech-icon {
    width: 24px;
    height: 24px;
    color: var(--color-slate);
    transition: var(--transition-smooth);
}

/* Color light up on hover */
.tech-logo-item.docker:hover .tech-icon { color: #2496ed; }
.tech-logo-item.nextjs:hover .tech-icon { color: #000000; }
.tech-logo-item.nestjs:hover .tech-icon { color: #e0234e; }
.tech-logo-item.n8n:hover .tech-icon { color: #ff6d5a; }
.tech-logo-item.strapi:hover .tech-icon { color: #4945ff; }
.tech-logo-item.postgres:hover .tech-icon { color: #336791; }
.tech-logo-item.aws:hover .tech-icon { color: #ff9900; }
.tech-logo-item.gcp:hover .tech-icon { color: #4285f4; }
.tech-logo-item.azure:hover .tech-icon { color: #0078d4; }

@media (max-width: 768px) {
    .tech-stack-section {
        padding: 48px 20px;
    }
    .tech-logos-row {
        gap: 24px 32px;
    }
}

/* --- Blog Preview Section --- */
.blog-preview-section {
    padding: 80px 0;
    background-color: var(--color-stone);
    position: relative;
    border-top: 1px solid var(--color-border-light);
}

/* Limit container size to make the section compact */
.blog-preview-section .container {
    max-width: 1140px;
    margin: 0 auto;
}

.blog-preview-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-preview-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0, 60, 51, 0.02);
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 60, 51, 0.15);
    box-shadow: 0 20px 40px rgba(0, 60, 51, 0.06);
}

.blog-preview-card .card-meta {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-slate);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.blog-preview-card .card-badge {
    background-color: rgba(0, 60, 51, 0.05);
    color: var(--color-deep-green);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.625rem;
    font-family: var(--font-mono);
    margin-right: 8px;
}

.blog-preview-card .card-badge.badge-coral {
    background-color: rgba(255, 109, 90, 0.08);
    color: var(--color-soft-coral);
}

.blog-preview-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-deep-green);
    line-height: 1.35;
    margin-bottom: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.blog-preview-card:hover .card-title {
    color: var(--color-soft-coral);
}

.blog-preview-card .card-desc {
    font-size: 0.875rem;
    color: var(--color-slate);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.blog-preview-card .card-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-deep-green);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: var(--transition-smooth);
    width: fit-content;
}

.blog-preview-card:hover .card-link-arrow {
    color: var(--color-soft-coral);
    border-color: var(--color-soft-coral);
    transform: translateX(4px);
}

/* Coming Soon Card Custom Styling */
.blog-preview-card.coming-soon {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(0, 60, 51, 0.2);
    box-shadow: none;
    cursor: default;
}

.blog-preview-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(0, 60, 51, 0.2);
}

.blog-preview-card.coming-soon .card-title {
    color: rgba(0, 60, 51, 0.6);
}

.blog-preview-card.coming-soon:hover .card-title {
    color: rgba(0, 60, 51, 0.6);
}

.blog-preview-card.coming-soon .card-link-arrow.disabled {
    color: var(--color-slate);
    border: none;
    opacity: 0.5;
}

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

@media (max-width: 768px) {
    .blog-preview-section {
        padding: 60px 20px;
    }
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }
    .blog-preview-card {
        padding: 24px;
    }
    .blog-preview-card .card-title {
        font-size: 1.125rem;
    }
}

.blog-view-all-container {
    margin-top: 48px;
    text-align: center;
}

.cf-turnstile-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
