/* ===================================
   AGENTLY Landing Page
   Font: Martian Mono (3 sizes only)
   - Small: clamp(12px, 1.1vw, 16px)
   - Medium: clamp(20px, 2.2vw, 32px)
   - Large: clamp(36px, 4.2vw, 60px)
   =================================== */

@font-face {
    font-family: 'Martian Mono';
    src: url('fonts/MartianMono-StdRg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --bg-color: #d1d7d5;
    --text-color: #000000;
    --font-family: 'Martian Mono', monospace;
    
    /* 3 font sizes in vw with clamp for min/max */
    --font-small: clamp(12px, 1.1vw, 16px);
    --font-medium: clamp(20px, 2.2vw, 32px);
    --font-large: clamp(36px, 4.2vw, 60px);
    
    /* Spacing */
    --gap: clamp(16px, 2vw, 20px);
    --container-width: clamp(320px, 48vw, 692px);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Layout */
.landing {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 24px);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap);
    width: 100%;
    max-width: var(--container-width);
    text-align: center;
}

/* Typography - Only 3 sizes */
.tagline {
    font-size: var(--font-small);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.title {
    font-size: var(--font-large);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: -10px 0;
}

.subtitle {
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 1.3;
}

.description {
    font-size: var(--font-small);
    font-weight: 400;
    line-height: 1.6;
    max-width: 50vw;
}

.email {
    font-size: var(--font-medium);
    font-weight: 400;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
    user-select: none;
}

.email:hover {
    opacity: 0.6;
}

.email:active {
    opacity: 0.4;
}

/* Copy badge animation */
.copy-badge {
    position: fixed;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: clamp(10px, 0.85vw, 12px);
    font-family: var(--font-family);
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transform: translate(-50%, 0);
    animation: floatUp 1.2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -8px);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -8px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
}

/* Product Image */
.product-image {
    width: clamp(240px, 28vw, 400px);
    margin-top: -10px;
    margin-bottom: clamp(8px, 1vw, 16px);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Powered By Section */
.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: clamp(8px, 1vw, 16px);
}

.powered-text {
    font-size: clamp(10px, 0.85vw, 12px);
    opacity: 0.7;
}

.efferon-logo {
    height: clamp(18px, 1.6vw, 24px);
    width: auto;
    margin-top: 5px;
}

/* ===================================
   Animations - handled via JS + CSS transitions
   =================================== */

/* ===================================
   Mobile Responsive
   =================================== */

@media (max-width: 768px) {
    :root {
        --font-small: clamp(11px, 3.5vw, 14px);
        --font-medium: clamp(18px, 5.5vw, 26px);
        --font-large: clamp(32px, 10vw, 48px);
        --gap: clamp(16px, 6vw, 20px);
    }
    
    .landing {
        padding: 32px 20px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .product-image {
        width: clamp(240px, 70vw, 340px);
    }
    
    .description {
        max-width: 100%;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-small: clamp(10px, 3.2vw, 13px);
        --font-medium: clamp(16px, 5vw, 22px);
        --font-large: clamp(28px, 9vw, 40px);
    }
    
    .landing {
        padding: 24px 16px;
    }
    
    .product-image {
        width: 85vw;
        max-width: 300px;
    }
    
    .powered-by {
        flex-direction: row;
        gap: 6px;
    }
}


