:root {
    --primary-color: #24b0d7;
    --secondary-color: #30b298;
    --dark-color: #1C1C1E;
    --light-bg: #F2F2F7;
    --text-muted: #8E8E93;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #F2F2F7 0%, #E5E5EA 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a8db0;
    border-color: #1a8db0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 176, 215, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Active states for button groups and toggle buttons */
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-check:checked + .btn-outline-primary:hover,
.btn-outline-primary:active:hover,
.btn-outline-primary.active:hover {
    background-color: #1a8db0;
    border-color: #1a8db0;
    color: white;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* API Key Display */
.api-key-display {
    position: relative;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.api-key-display code {
    color: var(--dark-color);
}

.api-key-display button {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

/* Download Section */
#download {
    background-color: #FAFAFA;
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.iphone-frame {
    position: relative;
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 25px;
    background: #1C1C1E;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.iphone-app-content {
    position: absolute;
    top: 20px;
    left: 6px;
    right: 6px;
    bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    background: #f0f0f0;
    z-index: 1;
    border: 2px solid blue;
}

.iphone-app-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 2;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .iphone-mockup {
        max-width: 250px;
    }
    
    .iphone-frame {
        width: 150px;
        height: 300px;
    }
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--light-bg);
}

/* Alert Enhancement */
.alert-success {
    background-color: #E8F7F5;
    border: none;
    color: var(--secondary-color);
}

/* Success and accent elements */
.text-success {
    color: var(--secondary-color) !important;
}

/* Success buttons use secondary green - only for specific success actions */
.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #2a9b86;
    border-color: #2a9b86;
}

/* Additional button styles */
.btn-lg.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg.btn-primary:hover {
    background-color: #1a8db0;
    border-color: #1a8db0;
}

/* Icon colors for features */
.text-primary {
    color: var(--primary-color) !important;
}

/* Check icons in success states */
.fa-check-circle {
    color: var(--secondary-color);
}

.fa-check {
    color: var(--secondary-color);
}