:root {
    --system-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --bg-color: #000000;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
}

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

body {
    font-family: var(--system-font);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Setup */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('assets/background.webp');
    background-size: cover;
    background-position: center;
    background-color: #050505; /* Fallback color while loading */
    filter: brightness(0.6) saturate(1.1);
    transform: scale(1.05); /* Prevents edge bleeding */
    animation: slowZoom 25s infinite alternate ease-in-out, fadeInBg 1.5s ease-out forwards;
    opacity: 0;
}

.bg-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, #000000 100%);
    /* Adding a subtle technical grid for AI feel */
    background-image: 
        radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, #000000 100%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Navigation (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nav-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    /* Enhanced Glass panel effect */
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.6), rgba(5, 5, 5, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Slight top highlight */
    border-radius: 32px;
    padding: 70px 50px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    /* Smooth entrance animation */
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind the hero panel */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, rgba(41, 151, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(41, 151, 255, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2997ff;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.15);
    animation: pulseGlow 3s infinite alternate;
}

.title {
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ticker {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

.description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.description strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Buttons */
.cta-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.1) translateX(2px);
}

.cta-button.primary {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.cta-button.secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Solana Icon */
.sol-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Contract Info */
.contract-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    flex-wrap: wrap;
}

.contract-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contract-address {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: "SF Mono", "Fira Code", monospace;
    word-break: break-all;
    max-width: 300px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ─── Launch Countdown + Whitelist Section ─────────────── */
.launch-section {
    padding: 60px 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.launch-card {
    max-width: 900px;
    width: 100%;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(15, 15, 17, 0.75), rgba(5, 5, 7, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.launch-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 45, 85, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.15), rgba(255, 159, 10, 0.1));
    border: 1px solid rgba(255, 45, 85, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff9f0a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.launch-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 36px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

/* Countdown */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    padding: 20px 16px;
    background: linear-gradient(180deg, rgba(28, 28, 30, 0.9), rgba(18, 18, 20, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.countdown-value {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    font-family: "SF Mono", "SF Pro Display", -apple-system, monospace;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, #d1d1d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.countdown-label {
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.countdown-sep {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    padding-bottom: 28px;
    animation: sepBlink 1s ease-in-out infinite;
}

@keyframes sepBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Whitelist */
.whitelist-box {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.whitelist-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.whitelist-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.whitelist-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.whitelist-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.whitelist-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.whitelist-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(41, 151, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1);
}

.whitelist-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5ea 100%);
    color: #000000;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.whitelist-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.whitelist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.whitelist-status {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 22px;
}

.whitelist-status.success {
    color: #34c759;
    opacity: 1;
}

.whitelist-status.error {
    color: #ff453a;
    opacity: 1;
}

/* Mobile adaptation for Launch section */
@media (max-width: 768px) {
    .launch-section {
        padding: 40px 16px 20px;
    }
    .launch-card {
        padding: 40px 20px;
    }
    .countdown {
        gap: 4px;
    }
    .countdown-unit {
        min-width: 0;
        flex: 1;
        padding: 14px 6px;
        border-radius: 16px;
    }
    .countdown-sep {
        font-size: 1.5rem;
        padding-bottom: 20px;
    }
    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }
    .whitelist-form {
        flex-direction: column;
    }
    .whitelist-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Steve Jobs AI Assistant Section ─────────────────── */
.steve-section {
    padding: 60px 20px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.steve-card {
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.7), rgba(5, 5, 7, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.steve-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.steve-photo-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    height: 180px;
}

.steve-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(41, 151, 255, 0.2);
    position: relative;
    z-index: 2;
}

.steve-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(41, 151, 255, 0.4);
    animation: pulseRing 2.5s ease-out infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.steve-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.steve-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34c759;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #34c759;
    border-radius: 50%;
    box-shadow: 0 0 8px #34c759;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.steve-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steve-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.steve-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.steve-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2997ff 0%, #0071e3 100%);
    color: #ffffff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(41, 151, 255, 0.3);
}

.steve-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(41, 151, 255, 0.5);
}

.steve-cta .arrow {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.steve-cta:hover .arrow {
    transform: translateX(4px);
}

/* Mobile adaptation for Steve section */
@media (max-width: 768px) {
    .steve-section {
        padding: 40px 16px 60px;
    }
    .steve-card {
        flex-direction: column;
        gap: 24px;
        padding: 32px 24px;
        text-align: center;
    }
    .steve-photo-wrapper {
        width: 140px;
        height: 140px;
    }
    .steve-badge {
        margin: 0 auto 14px;
    }
    .steve-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBg {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(41, 151, 255, 0.1); border-color: rgba(41, 151, 255, 0.2); }
    100% { box-shadow: 0 0 25px rgba(41, 151, 255, 0.4); border-color: rgba(41, 151, 255, 0.5); }
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

/* ─── Mobile Adaptability (Tablet & Mobile) ─── */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    .nav-logo { height: 28px; }
    .nav-title { font-size: 1.1rem; }

    .hero {
        padding: 90px 12px 50px;
        min-height: auto;
    }
    .hero-content {
        padding: 36px 22px;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.78), rgba(5, 5, 5, 0.88));
    }
    .ticker {
        margin-bottom: 24px;
    }
    .description {
        margin-bottom: 32px;
    }
    .cta-container {
        flex-direction: column;
        gap: 12px;
    }
    .cta-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }
    .contract-info {
        padding: 10px 12px;
        gap: 6px;
    }
    .contract-label {
        font-size: 0.7rem;
    }
    .contract-address {
        font-size: 0.7rem;
        max-width: 220px;
    }
}

/* ─── Small Mobile (iPhone SE, etc.) ─── */
@media (max-width: 420px) {
    .hero {
        padding: 80px 10px 40px;
    }
    .hero-content {
        padding: 28px 16px;
        border-radius: 22px;
    }
    .title {
        font-size: 2.4rem;
    }
    .ticker {
        font-size: 1.2rem;
    }
    .description {
        font-size: 0.95rem;
    }
    .contract-address {
        font-size: 0.65rem;
        max-width: 180px;
    }
    .launch-card {
        padding: 32px 14px;
    }
    .countdown {
        gap: 2px;
    }
    .countdown-unit {
        padding: 12px 4px;
        border-radius: 14px;
    }
    .countdown-value {
        font-size: 1.8rem;
    }
    .countdown-label {
        font-size: 0.55rem;
    }
    .countdown-sep {
        font-size: 1.2rem;
        padding-bottom: 18px;
    }
    .steve-card {
        padding: 28px 18px;
    }
    .steve-title {
        font-size: 1.6rem;
    }
    .steve-subtitle {
        font-size: 0.95rem;
    }
}

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {
    .whitelist-input {
        font-size: 16px;
    }
}
