:root {
    --bg-color: #FAFAFB;
    --grid-color: rgba(103, 107, 255, 0.08);
    --grid-line-color: rgba(103, 107, 255, 0.15);

    --text-primary: #1A1A1E;
    --text-secondary: #5F6368;
    --text-tertiary: #8B8D98;

    --accent-color: #676BFF;
    --accent-color-hover: #585CE5;
    --accent-light: rgba(103, 107, 255, 0.1);

    --wireframe-border: #E5E7EB;
    --wireframe-strong: #D1D5DB;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Blueprint Grid Background --- */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    z-index: -2;
    animation: panGrid 60s linear infinite;
    pointer-events: none;
}

@keyframes panGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100px, -100px);
    }
}

/* --- Decorative Wireframe Elements --- */
.wireframe-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.wf-element {
    position: absolute;
    border: 1px solid var(--wireframe-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 4px;
}

/* Top Left */
.wf-t-l {
    top: 10%;
    left: 8%;
    width: 180px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-line {
    height: 6px;
    background: var(--wireframe-border);
    border-radius: 4px;
    width: 100%;
}

.wf-line.short {
    width: 40%;
}

.wf-line.long {
    width: 80%;
}

.wf-line.w-half {
    width: 60%;
}

/* Top Right Browser */
.wf-browser {
    top: 15%;
    right: 10%;
    width: 240px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.wf-browser-head {
    height: 24px;
    border-bottom: 1px solid var(--wireframe-border);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
    background: #fff;
}

.wf-browser-head .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--wireframe-strong);
}

.wf-browser-body {
    padding: 16px;
}

.wf-image-placeholder {
    width: 100%;
    height: 100px;
    border: 1px dashed var(--wireframe-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wireframe-strong);
    border-radius: 4px;
}

.wf-image-placeholder svg {
    width: 32px;
    height: 32px;
}

/* Bottom Left Text Block */
.wf-text-block {
    bottom: 20%;
    left: 12%;
    width: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-dashed-connector {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 1px;
    height: 40px;
    border-left: 2px dashed var(--wireframe-strong);
}

/* Floating Shapes */
.wf-circle {
    top: 60%;
    right: 15%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px dashed var(--accent-color);
    background: transparent;
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.wf-square {
    top: 75%;
    left: 25%;
    width: 48px;
    height: 48px;
    border: 1px solid var(--accent-color);
    background: transparent;
    opacity: 0.3;
    transform: rotate(15deg);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* --- Layout Container --- */
.container {
    max-width: 640px;
    width: 90%;
    margin: 0 auto;
    padding: 120px 0 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    z-index: 1;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    border: 1px dashed var(--accent-color);
    padding: 6px 14px;
    border-radius: 2px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.6;
}

.hero-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* --- Primary Actions --- */
.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    background: #fff;
    min-width: 200px;
}

.btn-outline {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 4px 4px 0px var(--accent-light);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--accent-light);
}

.btn-outline:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--accent-light);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* --- Progress Indicator --- */
.progress-indicator {
    width: 100%;
    max-width: 320px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: var(--wireframe-border);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30%;
    background: var(--accent-color);
    border-radius: 2px;
    animation: loadingBar 2s ease-in-out infinite alternate;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: monospace;
    letter-spacing: 0.05em;
}

@keyframes loadingBar {
    0% {
        width: 10%;
        transform: translateX(0);
    }

    100% {
        width: 30%;
        transform: translateX(230%);
    }
}

/* --- Footer --- */
footer {
    width: 90%;
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 0 48px;
    text-align: center;
    border-top: 1px dashed var(--wireframe-strong);
    margin-top: auto;
}

footer p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* --- Top Timer --- */
.top-timer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--wireframe-border);
    border-radius: 100px;
    margin-bottom: -16px;
    /* Pull it slightly up closer to the hero */
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.timer-values {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.timer-values span {
    color: var(--text-primary);
}


/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.8s;
}

.delay-7 {
    animation-delay: 1.0s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {

    .wf-t-l,
    .wf-t-r,
    .wf-b-l {
        display: none;
        /* Hide heavy structural wireframes on smaller devices for cleanliness */
    }
}

@media (max-width: 600px) {
    .container {
        padding: 80px 0 40px;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .actions {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
    }

    .blueprint-grid {
        background-size: 15px 15px, 15px 15px, 75px 75px, 75px 75px;
    }
}