:root {
    --primary-red: #dc2626; /* red-600 */
    --hover-red: #b91c1c;   /* red-700 */
    --text-dark: #111827;   /* gray-900 */
    --text-gray: #6b7280;   /* gray-500 */
    --bg-gray: #f9fafb;     /* gray-50 */
}

body {
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Grid paper background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
    background-size: 120px 120px;
}

.container,
.hero {
    position: relative;
    z-index: 1;
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically in the viewport mostly */
    padding: 20px;
}

.hero {
    text-align: center;
    max-width: 1280px;
    width: 100%;
    padding-top: 10vh; /* Moved down from 5vh */
    padding-bottom: 5vh;
}

/* Brand Section */
.brand {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    width: 110px;
    height: 110px;
    position: relative;
    margin-bottom: 1rem;
    color: black;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px; /* Visual adjustment */
}

.logo-text-overlay span {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

.brand-name {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    margin: 0;
}

/* Headlines */
.headlines {
    margin-bottom: 3rem;
}

.main-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.main-title .highlight {
    display: block;
    color: var(--primary-red);
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .main-title {
        font-size: 3.75rem;
    }
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.75;
}

@media (min-width: 640px) {
    .subtitle {
        font-size: 1.25rem;
    }
}

/* Copy URL */
.copy-url {
    margin: 1.5rem auto 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.copy-prefix {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0 0.25rem 0 0.5rem;
    white-space: nowrap;
}

.copy-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: #0f172a;
    width: 280px;
}

.copy-btn {
    border: none;
    background: #dc2626;
    color: #fff;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #b91c1c;
}

.copy-btn.copied {
    background: #16a34a;
}

@media (max-width: 640px) {
    .copy-url {
        flex-direction: column;
        border-radius: 16px;
    }

    .copy-input {
        width: 220px;
        text-align: center;
    }
}

/* Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover-red);
}

.btn-outline {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background-color: var(--bg-gray);
    border-color: #d1d5db;
}

/* Footer Icons */
.footer-icons {
    background-color: transparent;
    padding: 2rem 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: 3rem;
    /* Flex box to ensure perfect centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.uppercase-text {
    text-align: center;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 0;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Increased gap for better visual spacing */
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Prevent touching edges on small screens */
    box-sizing: border-box;
}

.icon-item {
    width: 3.5rem; /* Slightly larger, closer to LobeHub style */
    height: 3.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.icon-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-5px); /* LobeHub 风格的上浮效果 */
}

.icon-item iconify-icon {
    width: 100%;
    height: 100%;
    /* Iconify 默认是 inline-block, 设为 block 方便宽高控制 */
    display: block; 
}

/* Specific colors for hover if supported by SVGs using currentColor */
.icon-item:hover svg, .icon-item:hover iconify-icon {
    /* This depends on SVG structure, but generally just removing grayscale helps */
}

.icon-item svg {
    width: 100%;
    height: 100%;
}
