/* ===== 导入字体 ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&family=Fira+Code:wght@400;500&display=swap');

/* ===== 全局重置与变量 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --bg-body: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --white: #ffffff;
    --shadow-sm: 0 4px 24px rgba(124, 58, 237, 0.06);
    --shadow-md: 0 20px 60px rgba(124, 58, 237, 0.10);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* ===== 自定义光标光晕 ===== */
#cursor-glow {
    position: fixed;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    will-change: transform;
    mix-blend-mode: multiply;
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.30);
    letter-spacing: 0.3px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.40);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.30);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #0891b2);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.30);
}

.btn-secondary:hover {
    box-shadow: 0 16px 48px rgba(6, 182, 212, 0.45);
    transform: translateY(-4px) scale(1.02);
}

/* ===== 头部 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo 容器：图片 + 网站名并排 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

/* 自定义 Logo 图片 */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}
.custom-logo-link img {
    max-height: 50px;  /* 会被定制器内联覆盖 */
    width: auto;
    vertical-align: middle;
}

/* 网站名字（无论是否上传 Logo 都显示） */
.logo .site-title,
.logo-link span {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* 备用 Logo（无自定义 Logo 时） */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 800;
}
.logo-link i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 28px;
    font-size: 0.9rem;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 60px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.20);
}
.nav-cta::after {
    display: none !important;
}
.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* 移动端汉堡 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== 滚动动画（reveal） ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ===== Hero ===== */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(165deg, #f1f5f9 0%, #ffffff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.2) translate(30px, -20px);
        opacity: 1;
    }
}

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

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 56px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(124, 58, 237, 0.08);
}

.hero-stats .stat h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.hero-stats .stat p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

/* 英雄区视觉-代码终端 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-illustration {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 24px 24px 32px;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    transition: var(--transition);
}

.hero-illustration:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 80px rgba(124, 58, 237, 0.12);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }
.terminal-title {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-left: 8px;
    font-weight: 500;
    opacity: 0.7;
}

.code-block {
    background: #0f172a;
    border-radius: 14px;
    padding: 24px 28px;
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 2;
    overflow-x: auto;
    position: relative;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
}

.code-block .comment { color: #64748b; }
.code-block .keyword { color: #a78bfa; }
.code-block .string { color: #34d399; }
.code-block .function { color: #fbbf24; }
.code-block .variable { color: #60a5fa; }

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #e2e8f0;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

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

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 22px;
    border-radius: 60px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: float 5s ease-in-out infinite;
    color: var(--text-dark);
}

.floating-badge i {
    color: var(--primary);
    font-size: 1.2rem;
}

.floating-badge.b1 {
    top: -12px;
    right: -16px;
    animation-delay: 0s;
}
.floating-badge.b2 {
    bottom: 20px;
    left: -24px;
    animation-delay: 1.8s;
}

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

/* ===== 通用标题 ===== */
.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title .title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    margin: 12px auto 16px;
}

.section-title p {
    color: var(--text-gray);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== 服务 ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 44px 32px 36px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 58, 237, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 58, 237, 0.08);
}
.service-card:hover::before { opacity: 1; }

.service-card .icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ede9fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 22px;
    transition: var(--transition);
}
.service-card:hover .icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.05) rotate(-4deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}
.service-card .learn-more i { transition: var(--transition); }
.service-card:hover .learn-more i { transform: translateX(8px); }

/* ===== 关于 ===== */
.about {
    padding: 100px 0;
    background: var(--bg-body);
}

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

.about-image .img-placeholder {
    background: linear-gradient(145deg, var(--white), #f1f5f9);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(124, 58, 237, 0.04);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-image .img-placeholder i {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.about-image .img-placeholder h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
}
.about-image .img-placeholder p {
    color: var(--text-gray);
    max-width: 280px;
}

.about-content h2 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.about-content h2 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 30px;
    margin-top: 12px;
}
.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    list-style: none;
}
.about-features li i {
    color: var(--secondary);
    font-size: 1.2rem;
    background: #ecfdf5;
    padding: 4px;
    border-radius: 50%;
}

/* ===== 作品集 ===== */
.portfolio {
    padding: 100px 0;
    background: var(--white);
}

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

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(124, 58, 237, 0.04);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 58, 237, 0.08);
}

.portfolio-item .thumb {
    height: 210px;
    background: linear-gradient(145deg, #ede9fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6rem;
    color: var(--primary);
    transition: var(--transition);
}
.portfolio-item:hover .thumb {
    background: linear-gradient(145deg, #c7d2fe, #a5b4fc);
    color: var(--white);
}
.portfolio-item .thumb i { transition: var(--transition); }
.portfolio-item:hover .thumb i { transform: scale(1.1) rotate(-4deg); }

.portfolio-item .info {
    padding: 28px 28px 30px;
}
.portfolio-item .info .tag {
    display: inline-block;
    background: #ede9fe;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 60px;
    margin-bottom: 12px;
}
.portfolio-item .info h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.portfolio-item .info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== 团队 ===== */
.team {
    padding: 100px 0;
    background: var(--bg-body);
}

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

.team-member {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 20px 30px;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.04);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 58, 237, 0.08);
}

.team-member .avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}
.team-member:hover .avatar {
    transform: scale(1.06);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.25);
}
.team-member h4 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}
.team-member .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.team-member p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

.cta h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.cta p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 520px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 2;
}
.cta .btn {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
}
.cta .btn:hover {
    background: #f8fafc;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.20);
}

/* ===== 页脚 ===== */
footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 30px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

footer .brand {
    display: flex;
    flex-direction: column;
}

footer .brand .footer-logo {
    display: block;
    margin-bottom: 12px;
}
footer .brand .footer-logo img {
    max-height: 40px; /* 会被定制器内联覆盖 */
    width: auto;
}

footer .brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
footer .brand h3 i {
    color: var(--primary-light);
}

footer .brand p {
    max-width: 280px;
    margin-top: 12px;
    line-height: 1.8;
    font-size: 0.95rem;
}

footer .socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
footer .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 1.1rem;
    text-decoration: none;
}
footer .socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 600;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 12px;
}
footer ul li a {
    transition: var(--transition);
    font-size: 0.95rem;
    text-decoration: none;
    color: inherit;
}
footer ul li a:hover {
    color: var(--white);
}

footer .copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-illustration { max-width: 100%; }
    .floating-badge.b1 { top: -10px; right: 10px; }
    .floating-badge.b2 { bottom: 20px; left: 10px; }

    .about .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-features { justify-items: center; }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        border-left: 1px solid rgba(124, 58, 237, 0.04);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.4rem; color: var(--text-dark); }
    .nav-cta { font-size: 1rem; padding: 14px 40px; }

    .hamburger { display: flex; }

    .hero { padding: 140px 0 80px; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }

    .services-grid,
    .portfolio-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .about-features { grid-template-columns: 1fr; }

    .section-title h2 { font-size: 2.2rem; }

    footer .container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    footer .brand p { max-width: 100%; }
    footer .socials { justify-content: center; }
    .cta h2 { font-size: 2.2rem; }
    #cursor-glow { display: none; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .floating-badge { display: none; }
    .code-block { font-size: 0.7rem; padding: 16px; }
    .terminal-title { font-size: 0.7rem; }
}