/* ─── SurfaceLab Landing Page ──────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --color-surface: #ffffff;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none;
}

.logo {
    height: 34px;
    width: auto;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--color-primary);
}

.lang-switch {
    border: 1px solid var(--color-border) !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    color: var(--color-text-light) !important;
    line-height: 1.4;
}

.lang-switch:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 40%, #f8fafc 100%);
}

.hero-inner {
    max-width: 600px;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--color-text);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-slogan {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 36px;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero badge — red accent for AiAD */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 10px;
    letter-spacing: 1px;
    transform: translateY(-4px);
}

.hero-subtitle {
    font-size: 18px;
    color: #6366f1;
    font-weight: 600;
    margin: -8px 0 16px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-btns {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero.btn-hero-red {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Shimmer sweep — visible on any background */
.btn-hero.btn-hero-red::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 40%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0.15) 60%,
        transparent 100%);
    animation: shimmer 2.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
/* Blinking dot — urgency signal */
.btn-hero.btn-hero-red::after {
    content: "";
    position: absolute;
    top: -5px; right: -5px;
    width: 10px; height: 10px;
    background: #fff;
    border: 2px solid #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(99,102,241,0.6);
    animation: dotBlink 1.5s ease-in-out infinite;
    z-index: 2;
}
.btn-hero.btn-hero-red:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-2px) scale(1.2) !important;
}
.btn-hero.btn-hero-red:hover::before {
    animation: none; opacity: 0;
}
.btn-hero.btn-hero-red:hover::after {
    animation: none; opacity: 0;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}
@keyframes dotBlink {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.3; }
}

.btn-hero {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-hero:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 12px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-text-light);
    border-bottom: 2px solid var(--color-text-light);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ─── Sections ────────────────────────────────────────────── */
.section {
    padding: 80px 24px;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

/* ─── About ───────────────────────────────────────────────── */
.about-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: center;
}

/* ─── Tool Cards ──────────────────────────────────────────── */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tool-card.coming-soon {
    opacity: 0.65;
    pointer-events: none;
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.tool-icon svg {
    width: 100%;
    height: 100%;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.tool-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-status.live {
    background: #ecfdf5;
    color: #059669;
}

.tool-status.soon {
    background: #fef3c7;
    color: #b45309;
}

/* ─── Feature Grid ────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
}

.feature-num {
    font-size: 40px;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ─── Contact ─────────────────────────────────────────────── */
.contact-text {
    text-align: center;
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.btn-contact {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 14px 32px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.btn-contact:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-8px);
    }
    60% {
        transform: rotate(45deg) translateY(-4px);
    }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-slogan {
        font-size: 17px;
    }
    .section-title {
        font-size: 26px;
    }
    .site-nav {
        gap: 16px;
    }
    .site-nav a {
        font-size: 13px;
    }
}
