/* ============================================
   HeMi Studio — 和米科技 品牌官网
   浅色现代简约风格 · 企业品牌展示
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg: #FAF8F5;
    --color-bg-alt: #EEEAE3;
    --color-bg-dark: #0F172A;
    --color-bg-dark-alt: #1E293B;

    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-text-lighter: #94A3B8;
    --color-text-inverse: #F8FAFC;

    --color-accent: #C9A96E;
    --color-accent-light: #DFC99A;
    --color-accent-dark: #A8884A;

    --color-primary: #0F172A;
    --color-primary-light: #1E293B;

    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;

    --font-display: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Noto Serif SC', Georgia, serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 50px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);

    --container: 1200px;
    --nav-height: 72px;

    --transition-fast: 200ms ease;
    --transition-base: 350ms ease;
    --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

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

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

em {
    font-style: italic;
    color: var(--color-accent);
}

/* ---------- Page Loader ---------- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-bar {
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.6; }
    50% { transform: scaleX(3); opacity: 1; }
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
    padding: 120px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.nav.scrolled {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.nav-logo:hover {
    color: var(--color-accent);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    color: #fff;
}

.logo-icon svg,
.logo-icon i {
    width: 20px;
    height: 20px;
}

.logo-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--color-accent);
    transition: transform var(--transition-base);
    transform-origin: center;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link[data-cta-nav] {
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 8px 24px;
    margin-left: 8px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-link[data-cta-nav]::after {
    display: none;
}

.nav-link[data-cta-nav]:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: transform var(--transition-base), opacity var(--transition-fast);
    border-radius: 2px;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-1 {
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(201,169,110,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 40%, rgba(15,23,42,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 60% 80%, rgba(201,169,110,0.07) 0%, transparent 45%);
    animation: bgMeshShift 12s ease-in-out infinite;
}

@keyframes bgMeshShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-bg-2 {
    background: radial-gradient(circle at 75% 30%, rgba(201,169,110,0.08) 0%, transparent 40%);
}

.hero-bg-3 {
    background:
        linear-gradient(0deg, transparent 85%, rgba(201,169,110,0.04) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-primary);
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero-accent {
    color: var(--color-accent);
    font-style: italic;
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 44px;
}

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

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-lighter);
    font-size: 12px;
    letter-spacing: 2px;
    animation: scrollHintBounce 2s ease-in-out infinite;
}

.scroll-icon {
    width: 18px;
    height: 18px;
}

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

/* ---------- Decorative Elements ---------- */

/* Keyframes */
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -30px) scale(1.05); }
    66% { transform: translate(15px, -15px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(25px, -20px) scale(1.08); }
    50% { transform: translate(-10px, -40px) scale(0.93); }
    75% { transform: translate(-15px, -10px) scale(1.03); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -25px) scale(1.06); }
}

@keyframes dotBounce1 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    40% { transform: translateY(-18px) scale(1.3); opacity: 0.8; }
    70% { transform: translateY(-6px) scale(0.9); opacity: 0.6; }
}

@keyframes dotBounce2 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    30% { transform: translateY(-14px) scale(1.25); opacity: 0.75; }
    60% { transform: translateY(-4px) scale(0.95); opacity: 0.55; }
    80% { transform: translateY(-10px) scale(1.1); opacity: 0.65; }
}

@keyframes dotBounce3 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.45; }
    45% { transform: translateY(-22px) scale(1.35); opacity: 0.85; }
    75% { transform: translateY(-8px) scale(0.85); opacity: 0.5; }
}

@keyframes titleDotBounce {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    40% { transform: translateY(-10px) scale(1.4); opacity: 1; }
    60% { transform: translateY(-3px) scale(1.1); opacity: 0.85; }
}

@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -16px); }
}

@keyframes subtleFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-18px, -10px); }
}

/* Hero decorative orbs */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Mouse-following cursor orb */
.cursor-orb {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at center, rgba(201,169,110,0.6) 0%, rgba(201,169,110,0.3) 30%, rgba(201,169,110,0.1) 55%, transparent 70%);
    filter: blur(12px);
    will-change: left, top;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cursor-orb-dark {
    background: radial-gradient(circle at center, rgba(201,169,110,0.65) 0%, rgba(201,169,110,0.35) 30%, rgba(201,169,110,0.12) 55%, transparent 70%);
}

.hero-orb {
    background: radial-gradient(circle at 30% 30%, rgba(201,169,110,0.35), rgba(201,169,110,0.1));
}

.hero-orb-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 10%;
    animation: orbFloat1 7s ease-in-out infinite;
}

.hero-orb-2 {
    width: 120px;
    height: 120px;
    top: 55%;
    left: 5%;
    animation: orbFloat2 9s ease-in-out infinite;
}

.hero-orb-3 {
    width: 90px;
    height: 90px;
    top: 25%;
    left: 55%;
    animation: orbFloat3 8s ease-in-out infinite;
}

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

.hero-dot-1 {
    width: 12px;
    height: 12px;
    top: 35%;
    right: 22%;
    animation: dotBounce1 3.5s ease-in-out infinite;
}

.hero-dot-2 {
    width: 8px;
    height: 8px;
    top: 60%;
    left: 18%;
    animation: dotBounce2 4.2s ease-in-out infinite;
}

.hero-dot-3 {
    width: 10px;
    height: 10px;
    top: 20%;
    left: 35%;
    animation: dotBounce3 3.8s ease-in-out infinite;
}

/* Title dot */
.title-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    animation: titleDotBounce 2.6s ease-in-out infinite;
}

.hero-title-dot {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    vertical-align: super;
}

.cta-title-dot {
    background: var(--color-accent-light);
}

/* Services background dots */
.services {
    position: relative;
    overflow: hidden;
}

.services-bg-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(201,169,110,0.08);
}

.services-bg-dot-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 8%;
    animation: subtleFloat 6s ease-in-out infinite;
}

.services-bg-dot-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 5%;
    animation: subtleFloat2 7s ease-in-out infinite;
}

.services-bg-dot-3 {
    width: 50px;
    height: 50px;
    top: 50%;
    right: 15%;
    animation: dotBounce1 5s ease-in-out infinite;
}

/* About background orbs */
.about {
    position: relative;
    overflow: hidden;
}

.about-bg-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.about-bg-orb-1 {
    width: 200px;
    height: 200px;
    top: -40px;
    right: -60px;
    background: radial-gradient(circle at 40% 40%, rgba(201,169,110,0.12), transparent 70%);
    animation: orbFloat1 10s ease-in-out infinite;
}

.about-bg-orb-2 {
    width: 140px;
    height: 140px;
    bottom: 10%;
    left: -40px;
    background: radial-gradient(circle at 50% 50%, rgba(201,169,110,0.08), transparent 70%);
    animation: orbFloat2 8s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(201,169,110,0.3);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,169,110,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ---------- Services ---------- */
.services {
    background: var(--color-bg);
}

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

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(201,169,110,0.15) 0%, rgba(201,169,110,0.06) 40%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

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

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,169,110,0.08);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-icon:has(.service-logo-img) {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    margin-bottom: 20px;
}

.service-icon svg,
.service-icon i {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    stroke-width: 1.5;
}

.service-logo-img {
    width: 180px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.service-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-fast);
}

.service-link:hover {
    gap: 8px;
}

.service-link svg,
.service-link i {
    width: 14px;
    height: 14px;
}

/* ---------- Partners ---------- */
.partners {
    background: var(--color-bg);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 36px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.partner-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-primary);
    text-align: center;
}

.partner-desc {
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
}

/* ---------- About ---------- */
.about {
    background: var(--color-bg-alt);
}

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

.about-text .section-tag {
    margin-bottom: 16px;
}

.about-text .section-title {
    margin-bottom: 28px;
}

.about-paragraph {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-lighter);
}

.about-visual {
    position: relative;
}

.about-image-frame {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}

.about-float-card svg,
.about-float-card i {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.about-float-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

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

/* ---------- Cases ---------- */
.cases {
    background: var(--color-bg);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.case-card {
    display: block;
    color: inherit;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

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

.case-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.case-image-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
    background: transparent;
}

.case-card:hover .case-image-inner {
    transform: scale(1.05);
}

.case-image-inner svg,
.case-image-inner i {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.6);
}

.case-brand-img {
    width: auto;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.75);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-lg);
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-overlay-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
    margin-bottom: 4px;
}

.case-overlay-desc {
    font-size: 13px;
    color: var(--color-accent-light);
}

.case-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.case-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.case-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.case-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.case-hint svg,
.case-hint i {
    width: 14px;
    height: 14px;
}

.case-card:hover .case-hint {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    background: var(--color-primary);
    text-align: center;
    overflow: hidden;
}

.cta-bg-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-bg-1 {
    background:
        radial-gradient(ellipse 50% 50% at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(201,169,110,0.05) 0%, transparent 50%);
}

.cta-bg-2 {
    background:
        radial-gradient(circle at 70% 60%, rgba(201,169,110,0.06) 0%, transparent 30%);
}

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

.cta-tag {
    color: var(--color-accent-light) !important;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 17px;
    color: var(--color-text-lighter);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 56px 0 28px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 36px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--color-text-lighter);
    line-height: 1.7;
    max-width: 360px;
    margin: 0 auto;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-lighter);
    margin-bottom: 4px;
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }

.service-card.reveal:nth-child(1) { transition-delay: 0ms; }
.service-card.reveal:nth-child(2) { transition-delay: 100ms; }
.service-card.reveal:nth-child(3) { transition-delay: 200ms; }
.service-card.reveal:nth-child(4) { transition-delay: 300ms; }

.case-card.reveal:nth-child(1) { transition-delay: 0ms; }
.case-card.reveal:nth-child(2) { transition-delay: 100ms; }
.case-card.reveal:nth-child(3) { transition-delay: 200ms; }
.case-card.reveal:nth-child(4) { transition-delay: 300ms; }

/* ---------- Responsive: Tablet (768px - 1023px) ---------- */
@media (max-width: 1023px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 34px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-frame {
        aspect-ratio: 3 / 2;
        max-width: 500px;
    }

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

    .cta-title {
        font-size: 36px;
    }
}

/* ---------- Responsive: Mobile (<768px) ---------- */
@media (max-width: 767px) {
    :root {
        --nav-height: 60px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 17px;
        padding: 12px 0;
        width: 100%;
    }

    .nav-link[data-cta-nav] {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-desc br {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .stat-number {
        font-size: 32px;
    }

    .about-image-frame {
        aspect-ratio: 4 / 3;
    }

    .about-float-card {
        left: 0;
        bottom: -16px;
        padding: 12px 16px;
    }

    .about-float-card span {
        font-size: 12px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 30px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

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

    .section-header {
        margin-bottom: 40px;
    }
}