/* 
 * Bayt Website Styles
 * Theme: Modern Minimalist (Apple/OpenAI inspired)
 */

:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #2997ff; /* Apple Blue style */
    
    /* Font Stack: SF Pro -> Inter -> System */
    --font-stack: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.1);
    
    --radius-lg: 24px;
    --radius-md: 12px;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Effect */
.background-glow {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(40, 40, 40, 0.4) 0%, transparent 70%);
    opacity: 0.6;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* Main Layout */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.5rem 2rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

/* Animation Keyframes */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Components */

/* Logo */
.logo-wrapper {
    margin-top: 4rem;
    margin-bottom: 2.5rem;
    animation: scaleIn 1s var(--ease-out);
}

.logo {
    width: 120px;
    height: 120px;
    /* iOS Superellipse approximation */
    border-radius: 26px; 
    background: #ffffff;
    padding: 16px; /* Clean spacing for the icon inside */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s var(--ease-out);
    will-change: transform;
}

.logo:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Typography */
.app-name {
    font-size: 3.5rem; /* Large, confident */
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /* Metallic Gradient Text Removed */
    /* background: linear-gradient(180deg, #ffffff 0%, #b0b0b0 100%); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
    animation: fadeUp 1s var(--ease-out) 0.1s backwards;
}

.slogan {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 3.5rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    animation: fadeUp 1s var(--ease-out) 0.2s backwards;
}

/* Buttons */
.download-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    animation: fadeUp 1s var(--ease-out) 0.3s backwards;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px; /* Pill shape */
    text-decoration: none;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-out);
    min-width: 180px;
}

.download-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.download-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    opacity: 0.9;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.btn-store {
    font-size: 1.0625rem; /* 17px */
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Primary Action (iOS) Emphasis */
/* Optional: Make iOS button white for higher contrast if desired. 
   Currently keeping both glass for uniformity/cleanliness. */

/* Contact */
.contact-section {
    width: 100%;
    margin-top: 4.5rem;
    text-align: center;
    animation: fadeUp 1s var(--ease-out) 0.35s backwards;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.section-subtitle {
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-list {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
    width: 100%;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.25s var(--ease-out);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

.contact-button {
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-arrow,
.contact-action {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    color: #424245;
    font-size: 0.8125rem;
    font-weight: 500;
    animation: fadeUp 1s var(--ease-out) 0.5s backwards;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .app-name {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
