* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
}

:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.45);
    --card-bg: rgba(18, 18, 18, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --countdown-bg: rgba(35, 35, 35, 0.9);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem;
}

/* Image Background */
.image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: #080808;
    background-image: url("https://pub-f63729da526e4cf695a5e2a15d8816f3.r2.dev/robo%20arm.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .image-background {
        background-position: 30% 35%;
    }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        115deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 35%,
        rgba(0, 0, 0, 0.3) 55%,
        rgba(0, 0, 0, 0.5) 75%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    z-index: 1;
    position: relative;
    margin-left: auto;
    margin-right: 8%;
}

@media (min-width: 1400px) {
    .container {
        margin-right: 12%;
    }
}

@media (min-width: 1600px) {
    .container {
        margin-right: 15%;
    }
}

/* Content Container */
.card {
    background: transparent;
    padding: 2.5rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chevron-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chevron-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pagination {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pagination .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.pagination .dot.active {
    background: var(--text-primary);
    width: 6px;
    height: 6px;
}

/* Card Content */
.card-content {
    display: flex;
    flex-direction: column;
}

/* Main Title */
.main-title {
    font-size: clamp(2.75rem, 7vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

.title-line {
    display: block;
}

.title-line.indent {
    padding-left: 0;
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    margin-bottom: 1.5rem;
}

/* Project Info */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 2rem;
}

.project-name {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    font-style: italic;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.contact-prompt {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Countdown Section */
.countdown-section {
    margin-bottom: 2rem;
}

.countdown-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.countdown-item {
    background: var(--countdown-bg);
    border: none;
    border-radius: 10px;
    padding: 1rem 0.875rem;
    min-width: 72px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.countdown-item:hover {
    background: rgba(45, 45, 45, 0.95);
    transform: translateY(-1px);
}

.countdown-value {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    line-height: 1;
    transform-origin: center;
}

.countdown-value.updating {
    animation: countdownUpdate 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes countdownUpdate {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px) scale(0.95);
        opacity: 0;
    }
    51% {
        transform: translateY(8px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    opacity: 0.7;
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    opacity: 0.3;
    margin: 0 0.125rem;
    margin-top: -0.5rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: flex-end;
}

.contact-button {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.contact-button:hover {
    background: var(--text-primary);
    color: #0a0a0a;
    border-color: var(--text-primary);
}

.contact-button:active {
    transform: scale(0.98);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .container {
        margin-right: 3rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
        max-width: 420px;
    }
    
    .image-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.35) 40%,
            rgba(0, 0, 0, 0.65) 100%
        );
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        align-items: center;
    }

    .card {
        padding: 1.5rem 1.25rem;
        background: transparent;
    }
    
    .card-header {
        margin-bottom: 1.25rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .header-controls {
        display: none;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .title-line.indent {
        padding-left: 0.5rem;
    }
    
    .divider {
        margin-bottom: 0.875rem;
    }
    
    .project-info {
        margin-bottom: 1.25rem;
        gap: 0.25rem;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .tagline, .contact-prompt {
        font-size: 0.8rem;
    }

    .countdown-section {
        margin-bottom: 1.25rem;
    }

    .countdown-container {
        justify-content: space-between;
        gap: 0.35rem;
    }

    .countdown-item {
        flex: 1;
        min-width: 0;
        padding: 0.625rem 0.4rem;
        border-radius: 8px;
    }

    .countdown-value {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
    }
    
    .countdown-label {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }

    .countdown-separator {
        font-size: 1rem;
        margin: 0;
        flex: 0;
        opacity: 0.25;
    }

    .card-footer {
        justify-content: stretch;
    }

    .contact-button {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }
}

/* Small mobile */
@media (max-width: 390px) {
    body {
        padding: 0.75rem;
        padding-bottom: 1rem;
    }
    
    .card {
        padding: 1.25rem 1rem;
    }
    
    .card-header {
        margin-bottom: 1rem;
    }

    .main-title {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .divider {
        margin-bottom: 0.75rem;
    }
    
    .project-info {
        margin-bottom: 1rem;
    }
    
    .project-name {
        font-size: 0.95rem;
    }
    
    .tagline, .contact-prompt {
        font-size: 0.75rem;
    }
    
    .countdown-section {
        margin-bottom: 1rem;
    }
    
    .countdown-item {
        padding: 0.5rem 0.3rem;
        border-radius: 6px;
    }
    
    .countdown-value {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .countdown-label {
        font-size: 0.45rem;
    }
    
    .countdown-separator {
        font-size: 0.9rem;
    }
    
    .contact-button {
        padding: 0.75rem 0.875rem;
        font-size: 0.65rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        align-items: center;
        padding: 0.75rem 2rem;
    }
    
    .container {
        max-width: 380px;
    }
    
    .card {
        padding: 1rem 1.25rem;
    }
    
    .card-header {
        margin-bottom: 0.75rem;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
    }
    
    .divider {
        margin-bottom: 0.5rem;
    }
    
    .project-info {
        margin-bottom: 0.75rem;
        gap: 0.125rem;
    }
    
    .project-name {
        font-size: 0.9rem;
    }
    
    .tagline, .contact-prompt {
        font-size: 0.7rem;
    }
    
    .countdown-section {
        margin-bottom: 0.75rem;
    }
    
    .countdown-item {
        padding: 0.4rem 0.35rem;
    }
    
    .countdown-value {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }
    
    .countdown-label {
        font-size: 0.4rem;
    }
    
    .contact-button {
        padding: 0.625rem 1rem;
        font-size: 0.6rem;
    }
}
