:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #7c3aed;
    --accent-deep: #4c1d95;
    --accent-warm: #f59e0b;
    --accent-cool: #06b6d4;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --dark-line: #334155;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);

    /* Heading gradient — reference Nexus: hsl(212,72%,10%) → hsl(205,65%,48%) */
    --heading-gradient-from: hsl(212, 72%, 10%);
    --heading-gradient-to: hsl(205, 65%, 48%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
    .ambient-grid {
        animation: background-drift 28s linear infinite alternate;
    }
}

a {
    color: inherit;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: var(--progress, 0%);
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--accent), var(--accent-cool));
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.28);
}

.ambient-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 55% 30%, rgba(30, 80, 140, 0.10), transparent 65%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(240, 244, 248, 0.82) 48%, rgba(210, 224, 240, 0.65)),
        linear-gradient(18deg, transparent 0 46%, rgba(20, 80, 140, 0.045) 46% 54%, transparent 54% 100%);
}

.ambient-layer {
    position: absolute;
    inset: -12%;
    will-change: transform;
}

.ambient-grid {
    opacity: 0.72;
    background:
        linear-gradient(90deg, rgba(173, 185, 198, 0.24) 1px, transparent 1px),
        linear-gradient(180deg, rgba(173, 185, 198, 0.24) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18) 72%, transparent);
}

.ambient-contours {
    left: 45%;
    top: 3%;
    width: 760px;
    height: 760px;
    inset: auto;
    opacity: 0.42;
    transform-origin: center;
    background-image: url("data:image/svg+xml,%3Csvg width='760' height='760' viewBox='0 0 760 760' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230b4f4a' stroke-width='1.15' stroke-opacity='.2'%3E%3Cpath d='M100 408c52-104 88-176 182-198 112-26 252 16 324 104 70 86 72 206 0 284-84 92-268 104-392 36-92-50-148-136-114-226Z'/%3E%3Cpath d='M156 404c42-82 78-132 148-148 88-20 198 14 252 82 54 66 52 154-2 214-64 70-204 78-298 28-70-38-126-108-100-176Z'/%3E%3Cpath d='M216 396c30-56 60-86 108-96 60-12 138 10 174 58 34 44 32 104-4 144-42 48-136 54-200 20-48-26-96-80-78-126Z'/%3E%3Cpath d='M292 388c20-34 42-52 72-56 38-6 84 8 106 36 22 28 18 66-6 90-28 30-84 32-122 12-32-18-64-50-50-82Z'/%3E%3Cpath d='M32 544c70 30 140 58 230 54 112-6 190-68 270-112 86-48 162-54 220-28'/%3E%3Cpath d='M48 256c66-30 130-44 210-34 98 12 154 62 228 88 84 30 160 16 220-30'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: blur(0.1px);
}

.ambient-type {
    inset: 0;
    display: grid;
    align-content: center;
    gap: 34px;
    color: rgba(17, 19, 22, 0.035);
    font-size: clamp(92px, 14vw, 210px);
    font-weight: 850;
    line-height: 0.78;
    letter-spacing: 0;
    text-transform: uppercase;
    user-select: none;
}

.ambient-type span:first-child {
    margin-left: -2vw;
}

.ambient-type span:last-child {
    margin-left: 32vw;
}

.ambient-plates {
    inset: 0;
}

.ambient-plates span {
    position: absolute;
    display: block;
    border: 1px solid rgba(15, 118, 110, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06));
    box-shadow: 0 34px 90px rgba(17, 19, 22, 0.08);
    transform: skewX(-14deg) rotate(-8deg);
}

.ambient-plates span:nth-child(1) {
    width: 260px;
    height: 520px;
    top: 8%;
    right: 11%;
}

.ambient-plates span:nth-child(2) {
    width: 150px;
    height: 360px;
    left: 4%;
    top: 42%;
    opacity: 0.58;
}

.ambient-plates span:nth-child(3) {
    width: 440px;
    height: 86px;
    right: 2%;
    bottom: 12%;
    opacity: 0.44;
}

@media (prefers-reduced-motion: no-preference) {
    .ambient-contours {
        animation: contour-breathe 12s ease-in-out infinite;
    }

    .ambient-plates span {
        animation: plate-sheen 9s ease-in-out infinite;
    }

    .ambient-plates span:nth-child(2) {
        animation-delay: 1.6s;
    }

    .ambient-plates span:nth-child(3) {
        animation-delay: 3.1s;
    }
}

.js [data-reveal] {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(28px);
    transition:
        opacity 760ms cubic-bezier(0.2, 0.7, 0.16, 1),
        filter 760ms cubic-bezier(0.2, 0.7, 0.16, 1),
        transform 760ms cubic-bezier(0.2, 0.7, 0.16, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(217, 224, 232, 0.5);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.nav {
    width: min(1160px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    transition: opacity 200ms ease;
}

.brand:hover {
    opacity: 0.8;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--white);
    font-weight: 760;
    font-size: 18px;
    box-shadow: 
        0 4px 12px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(124, 58, 237, 0.12) 50%,
        transparent 60%
    );
    animation: brand-shine 6s ease-in-out infinite;
}

@keyframes brand-shine {
    0%, 100% { transform: translateX(-100%) rotate(0deg); }
    50% { transform: translateX(100%) rotate(0deg); }
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links a {
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 200ms ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cool));
    transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

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

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

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

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

.hero {
    display: flex;
    align-items: center;
    padding: 100px 0 220px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(238, 242, 244, 0.34));
}

.hero-inner {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 70px;
    position: relative;
}

/* ---- Hero copy decoration ---- */
.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-copy::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(124, 58, 237, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- Floating decorative elements ---- */
.hero-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 50%;
    animation: float-up 6s ease-in-out infinite;
}

.deco-circle.small {
    width: 30px;
    height: 30px;
    animation-duration: 8s;
    animation-delay: 2s;
}

.deco-circle.large {
    width: 90px;
    height: 90px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.deco-dot {
    width: 8px;
    height: 8px;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    animation: float-dot 5s ease-in-out infinite;
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

@keyframes float-dot {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-25px) translateX(-5px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.3;
    }
}

/* ---- Heading gradient utility ---- */
.heading-gradient {
    background: linear-gradient(135deg, var(--heading-gradient-from), var(--heading-gradient-to));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.download-copy h2,
.doc-hero h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--heading-gradient-from), var(--heading-gradient-to));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    display: block;
}

.hero-lede {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--white);
    background: var(--dark);
}

.button-primary:hover {
    background: #000000;
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.74);
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: var(--ink);
}

.button-light {
    width: 100%;
    color: var(--dark);
    background: var(--white);
}

.button-light:hover {
    background: #f2faf8;
}

/* ---- Notched CTA: 4-corner decoration accents ---- */
.button-notched {
    position: relative;
    border-radius: 4px;
    overflow: visible;
}

.notch {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transition: opacity 200ms ease;
}

/* Top-left */
.notch-tl { top: 4px; left: 4px; border-top: 1px solid rgba(255,255,255,0.75); border-left: 1px solid rgba(255,255,255,0.75); }
/* Top-right */
.notch-tr { top: 4px; right: 4px; border-top: 1px solid rgba(255,255,255,0.75); border-right: 1px solid rgba(255,255,255,0.75); }
/* Bottom-left */
.notch-bl { bottom: 4px; left: 4px; border-bottom: 1px solid rgba(255,255,255,0.75); border-left: 1px solid rgba(255,255,255,0.75); }
/* Bottom-right */
.notch-br { bottom: 4px; right: 4px; border-bottom: 1px solid rgba(255,255,255,0.75); border-right: 1px solid rgba(255,255,255,0.75); }

.button-notched:hover .notch {
    opacity: 0.45;
}

/* ---- Navbar CTA — outlined GET IN TOUCH style ---- */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-cta:hover {
    color: var(--white);
    border-color: var(--ink);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.nav-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-note {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-visual {
    min-width: 0;
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a, #1e293b);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ---- Floating Data Islands ---- */
.float-islands {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.island {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    pointer-events: auto;
    animation: island-float 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.island:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.25);
    background: rgba(255, 255, 255, 0.14);
}

.island-1 { top: 8%; left: 10%; }
.island-2 { top: 5%; right: 8%; }
.island-3 { bottom: 15%; left: 18%; }
.island-4 { bottom: 8%; right: 12%; }

.island-num {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.island-icon {
    font-size: 28px;
    line-height: 1;
}

.island-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

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

.app-window {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
    border: 1px solid rgba(17, 19, 22, 0.08);
    box-shadow: var(--shadow);
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.app-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 18%),
        rgba(146, 226, 210, 0.16),
        transparent 34%
    );
    opacity: 0.8;
    transition: opacity 220ms ease;
}

.app-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.08) 44%, transparent 58%);
    transform: translateX(-120%);
}

.app-window > * {
    position: relative;
    z-index: 2;
}

.window-titlebar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-bottom: 1px solid var(--dark-line);
    background: #15191f;
}

.window-dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #78d7c8;
    box-shadow: 0 0 0 rgba(120, 215, 200, 0.5);
}

.window-dot.muted {
    background: #4a525c;
}

.window-title {
    margin-left: 10px;
    color: #c9d2dc;
    font-size: 13px;
}

.status-panel {
    position: relative;
    margin: 22px;
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #202832, #171c22);
    border: 1px solid var(--dark-line);
    overflow: hidden;
}

.status-panel::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(146, 226, 210, 0.9), transparent);
    transform: translateX(-110%);
}

.status-label,
.metric-grid span,
.download-meta span {
    display: block;
    color: #9aa7b5;
    font-size: 12px;
}

.status-panel h2 {
    margin: 6px 0 0;
    font-size: 42px;
    letter-spacing: 0;
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    color: #10201d;
    background: #92e2d2;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 0 0 0 rgba(146, 226, 210, 0.42);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 22px 22px;
}

.metric-grid div {
    min-height: 78px;
    padding: 15px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: #171c22;
}

.metric-grid strong {
    display: block;
    margin-top: 7px;
    color: #edf2f7;
    font-size: 15px;
}

.log-list {
    margin: 0 22px 22px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    overflow: hidden;
}

.log-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 13px 15px;
    background: #15191f;
    border-bottom: 1px solid var(--dark-line);
}

.log-row p {
    position: relative;
}

.log-row p::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 5px;
    vertical-align: -2px;
    background: #92e2d2;
    opacity: 0;
}

.log-row:last-child {
    border-bottom: 0;
}

.log-row span {
    color: #7f8a98;
    font-size: 12px;
}

.log-row p {
    margin: 0;
    color: #cbd5df;
    font-size: 13px;
}

.proof-strip-wrapper {
    width: min(1160px, calc(100% - 40px));
    margin: -34px auto 0;
    position: relative;
    z-index: 2;
}

.proof-label {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(17, 19, 22, 0.08);
}

.proof-strip div {
    padding: 20px 22px;
    border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
    border-right: 0;
}

.proof-strip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.proof-strip strong {
    display: block;
    margin-top: 5px;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.section {
    padding: 112px 0;
}

.section-light {
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(4px);
}

.section-heading {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2,
.split-copy h2,
.download-copy h2 {
    font-size: clamp(34px, 5vw, 56px);
}

.section-heading p:not(.eyebrow),
.split-copy p,
.download-copy p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.feature-grid {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 260px;
    padding: 26px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(17, 19, 22, 0.06);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 118, 110, 0.36);
    box-shadow: 0 22px 48px rgba(17, 19, 22, 0.1);
}

.feature-index {
    color: var(--accent-warm);
    font-size: 13px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 58px 0 12px;
    font-size: 22px;
    letter-spacing: 0;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.split-section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
    gap: 70px;
    align-items: start;
}

.principle-list {
    display: grid;
    gap: 14px;
}

.principle-item {
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.principle-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 118, 110, 0.28);
}

.principle-item span {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.principle-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.download-section {
    padding: 96px 0;
    background: var(--dark);
    color: var(--white);
}

.download-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 72px;
    align-items: center;
    padding-left: max(20px, calc((100% - 1160px) / 2));
    padding-right: max(20px, calc((100% - 1160px) / 2));
}

.download-copy h2 {
    color: var(--white);
}

.download-copy .eyebrow {
    color: #92e2d2;
}

.download-copy p {
    color: #b8c2cc;
    max-width: 680px;
}

.download-card {
    padding: 24px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--dark-line);
}

.download-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dark-line);
    color: var(--ink-soft);
}

.download-meta:first-child {
    padding-top: 0;
}

.download-meta strong {
    text-align: right;
    color: var(--ink);
}

.download-card .button {
    margin-top: 22px;
}

.download-card p {
    margin: 16px 0 0;
    color: #9aa7b5;
    font-size: 13px;
}

.footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    width: min(1160px, calc(100% - 40px));
    min-height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--muted);
    font-size: 13px;
}

.brand-footer {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer p {
    margin: 0;
}

.doc-main {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 104px;
}

.doc-hero {
    margin-bottom: 34px;
}

.doc-hero h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.doc-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.doc-content {
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(17, 19, 22, 0.08);
}

.doc-content section + section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.doc-content h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: 0;
}

.doc-content h3 {
    margin: 24px 0 8px;
    font-size: 18px;
}

.doc-content p,
.doc-content li {
    color: var(--muted);
}

.doc-content p {
    margin: 0 0 14px;
}

.doc-content p:last-child {
    margin-bottom: 0;
}

.doc-content ul {
    margin: 0;
    padding-left: 1.2em;
}

.doc-content a {
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .app-window::after {
        animation: glass-sweep 6.8s ease-in-out infinite;
        animation-delay: 900ms;
    }

    .window-dot:first-child {
        animation: dot-pulse 2.8s ease-in-out infinite;
    }

    .status-panel::after {
        animation: signal-scan 3.8s ease-in-out infinite;
    }

    .status-badge {
        animation: badge-breathe 3.2s ease-in-out infinite;
    }

    .log-row:last-child p::after {
        animation: caret-blink 1.2s steps(2, end) infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes background-drift {
    from {
        background-position: 0 0, 0 0, 0 0;
    }

    to {
        background-position: 34px 18px, 34px 18px, 0 0;
    }
}

@keyframes glass-sweep {
    0%,
    45% {
        transform: translateX(-120%);
        opacity: 0;
    }

    58% {
        opacity: 1;
    }

    74%,
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes dot-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(120, 215, 200, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(120, 215, 200, 0.12);
    }
}

@keyframes signal-scan {
    0%,
    34% {
        transform: translateX(-110%);
        opacity: 0;
    }

    48% {
        opacity: 1;
    }

    78%,
    100% {
        transform: translateX(110%);
        opacity: 0;
    }
}

@keyframes badge-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(146, 226, 210, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(146, 226, 210, 0.08);
    }
}

@keyframes caret-blink {
    0%,
    42% {
        opacity: 0;
    }

    43%,
    100% {
        opacity: 1;
    }
}

@keyframes contour-breathe {
    0%,
    100% {
        opacity: 0.36;
        filter: blur(0.1px);
    }

    50% {
        opacity: 0.52;
        filter: blur(0);
    }
}

@keyframes plate-sheen {
    0%,
    100% {
        border-color: rgba(15, 118, 110, 0.1);
        box-shadow: 0 34px 90px rgba(17, 19, 22, 0.07);
    }

    50% {
        border-color: rgba(15, 118, 110, 0.2);
        box-shadow: 0 38px 110px rgba(17, 19, 22, 0.1);
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding-top: 64px;
    }

    .hero-inner,
    .split-section,
    .download-section {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-inner {
        align-items: start;
    }

    .hero-decoration {
        display: none;
    }

    .hero-copy::before,
    .hero-copy::after {
        display: none;
    }

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

    .download-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-inner {
        padding: 32px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .ambient-scene {
        background:
            linear-gradient(112deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 244, 0.82) 58%, rgba(226, 232, 235, 0.68)),
            linear-gradient(18deg, transparent 0 48%, rgba(15, 118, 110, 0.04) 48% 55%, transparent 55% 100%);
    }

    .ambient-contours {
        left: 10%;
        top: 18%;
        width: 520px;
        height: 520px;
        opacity: 0.3;
    }

    .ambient-type {
        font-size: 76px;
        opacity: 0.72;
        gap: 18px;
    }

    .ambient-type span:first-child {
        margin-left: -20px;
    }

    .ambient-type span:last-child {
        margin-left: 86px;
    }

    .ambient-plates span:nth-child(1) {
        width: 140px;
        height: 360px;
        right: -8%;
        top: 18%;
        opacity: 0.48;
    }

    .ambient-plates span:nth-child(2) {
        width: 96px;
        height: 260px;
        left: -12%;
        top: 54%;
        opacity: 0.36;
    }

    .ambient-plates span:nth-child(3) {
        display: none;
    }

    .nav {
        width: min(100% - 28px, 1160px);
        min-height: 66px;
    }

    .nav-links {
        gap: 14px;
        font-size: 13px;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(2) {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .brand-copy small {
        display: none;
    }

    .hero-inner,
    .proof-strip-wrapper,
    .feature-grid,
    .split-section,
    .section-heading,
    .doc-main {
        width: min(100% - 28px, 1160px);
    }

    .hero {
        padding: 48px 0 54px;
    }

    .hero h1 {
        font-size: 46px;
    }

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

    .button {
        width: 100%;
    }

    .proof-strip,
    .feature-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .proof-strip-wrapper {
        margin-top: -20px;
    }

    .proof-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .proof-strip div:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 78px 0;
    }

    .section-heading {
        text-align: left;
    }

    .feature-card {
        min-height: 220px;
    }

    .feature-card h3 {
        margin-top: 38px;
    }

    .download-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .download-card {
        width: 100%;
    }

    .doc-main {
        padding-top: 54px;
    }

    .doc-content {
        padding: 28px 22px;
    }
}

.profile-card {
    background: var(--dark);
    border-radius: 12px;
    padding: 28px;
    color: var(--white);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: transform 220ms ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), var(--accent-cool));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
}

.profile-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.profile-info p {
    margin: 0;
    color: #9aa7b5;
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px 12px;
    background: var(--dark-soft);
    border-radius: 8px;
    border: 1px solid var(--dark-line);
}

.stat-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    display: block;
    color: var(--white);
}

.stat-label {
    font-size: 12px;
    color: #9aa7b5;
    display: block;
}

.profile-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 220ms ease;
}

.btn-like {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: var(--white);
}

.btn-like:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-like.active {
    animation: heartBeat 0.6s ease;
}

.btn-save {
    background: var(--dark-soft);
    color: var(--white);
    border: 1px solid var(--dark-line);
}

.btn-save:hover {
    background: #2a3140;
    transform: translateY(-2px);
}

.btn-save.active {
    animation: starPop 0.6s ease;
}

.project-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.project-preview {
    perspective: 1200px;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all 220ms ease;
}

.feature-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 24px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-muted);
    border-radius: 8px;
}

.meta-label {
    color: var(--muted);
    font-size: 14px;
}

.meta-value {
    font-weight: 700;
    color: var(--ink);
}

.project-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

@keyframes starPop {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.4) rotate(10deg); }
}

@media (max-width: 980px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .profile-stats {
        gap: 12px;
    }

    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 720px) {
    .profile-card {
        padding: 20px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }
}

.resume-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 40px;
    align-items: start;
}

.resume-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}

.resume-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.resume-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.resume-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 16px;
}

.resume-item {
    margin-bottom: 12px;
}

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

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.resume-item-header strong {
    font-size: 16px;
}

.resume-date {
    font-size: 13px;
    color: var(--muted);
}

.resume-school {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all 180ms ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(124, 58, 237, 0.06);
}

.resume-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resume-highlight {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 220ms ease;
}

.resume-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
    border-color: var(--accent);
}

.highlight-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.highlight-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.resume-cta {
    text-align: center;
}

.gallery-filters {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 180ms ease;
}

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

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ========================================
   Gallery — Masonry Grid
   ======================================== */
.gallery-grid {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.gallery-item.hidden {
    display: none;
}

/* Card size assignments */
.gallery-item.card-large  { grid-column: span 8; grid-row: span 2; }
.gallery-item.card-medium { grid-column: span 4; grid-row: span 1; }
.gallery-item.card-small  { grid-column: span 4; grid-row: span 1; }

/* Image fill */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay — hidden by default, fade in on hover */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Category tag pill */
.gallery-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 14px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

/* Card title */
.gallery-title {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* Card description — only on screens wide enough */
.gallery-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.5;
}

/* View detail CTA (large cards) */
.gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.gallery-cta:hover {
    background: var(--accent-deep);
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 15px;
}

/* Responsive: 6-col */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 240px;
        gap: 16px;
    }
    .gallery-item.card-large  { grid-column: span 6; grid-row: span 2; }
    .gallery-item.card-medium,
    .gallery-item.card-small  { grid-column: span 3; grid-row: span 1; }
    .gallery-title { font-size: 17px; }
}

/* Responsive: stack single column */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
        gap: 14px;
    }
    .gallery-item.card-large,
    .gallery-item.card-medium,
    .gallery-item.card-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-overlay { padding: 18px; }
    .gallery-title { font-size: 18px; }
    .gallery-desc { font-size: 13px; }
}

@media (max-width: 980px) {
    .resume-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .resume-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .resume-highlight {
        flex: 1;
        min-width: 120px;
    }

    .resume-cta {
        flex-basis: 100%;
    }
}

@media (max-width: 720px) {
    .resume-card {
        padding: 20px;
    }

    .gallery-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .highlight-number {
        font-size: 28px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
    cursor: zoom-out;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.92);
    transition: transform 250ms ease;
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 180ms ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   NEW STYLES — Denyinghanabi Redesign
   ======================================== */

/* --- 烟花粒子 Canvas --- */
.ambient-fireworks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

/* --- Hero Subtitle & Quote --- */
.hero-subtitle {
    margin: 8px 0 0;
    color: var(--accent);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    letter-spacing: 0;
}

.hero-quote {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
}

/* --- Accent Button (Purple) --- */
.button-accent {
    color: var(--white);
    background: var(--accent);
}

.button-accent:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}

/* --- Profile Achievement Badge --- */
.achievement-badge {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #c4b5fd;
}

/* --- Resume: Core Advantage Summary --- */
.resume-summary {
    margin: 0;
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.resume-detail {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* --- 3-Level Skill Tree --- */
.skill-tree {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-tier {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
}

.skill-tier.skill-core {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.skill-tier.skill-aux {
    border-left: 4px solid var(--accent);
    background: rgba(124, 58, 237, 0.03);
}

.skill-tier.skill-other {
    border-left: 4px solid var(--muted);
    background: rgba(100, 116, 139, 0.03);
}

.skill-tier-badge {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.skill-core .skill-tier-badge { color: #ef4444; }
.skill-aux .skill-tier-badge { color: var(--accent); }
.skill-other .skill-tier-badge { color: var(--muted); }

/* --- Project Cards in Stack --- */
.projects-stack {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card-full {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: all 220ms ease;
}

.project-card-full:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-muted);
}

.project-rank {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    background: var(--dark);
    color: var(--white);
    letter-spacing: 0;
}

.project-card-header h3 {
    margin: 0 0 4px;
    font-size: 19px;
    color: var(--ink);
}

.project-tagline {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.project-card-body {
    padding: 0;
}

.project-field {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
}

.project-field:last-child {
    border-bottom: none;
}

.project-field strong {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

.project-field p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* --- Contact Grid --- */
.contact-grid .feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    margin-top: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    border: none;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 220ms ease;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.3);
}

/* --- Animate profile stats numbers --- */
.profile-stats .stat-value {
    transition: color 220ms ease;
}

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

@media (max-width: 980px) {
    .project-field {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 20px;
    }

    .project-card-header {
        padding: 20px;
    }

    .project-rank {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .resume-detail {
        font-size: 13px;
    }
}

@media (max-width: 720px) {
    .hero-quote {
        font-size: 14px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-visual {
        height: 280px;
        order: -1;
        margin-bottom: 24px;
    }

    .island { padding: 10px 14px; }
    .island-num { font-size: 22px; }
    .island-icon { font-size: 20px; }
    .island-label { font-size: 9px; }

    .projects-stack {
        width: min(100% - 28px, 960px);
        gap: 14px;
    }

    .skill-tier {
        padding: 12px 14px;
    }

    .skill-tier-badge {
        font-size: 11px;
    }

    .resume-summary {
        font-size: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .achievement-badge {
        font-size: 12px;
        padding: 8px 12px;
    }

    .project-card-header h3 {
        font-size: 16px;
    }

    .project-card-header {
        padding: 16px;
        gap: 12px;
    }

    .project-field {
        padding: 12px 16px;
    }

    .project-field strong {
        font-size: 12px;
    }

    .project-field p {
        font-size: 13px;
    }
}
