/* ============================================
   MacWrench Website - Warm Modern Theme
   ============================================ */

:root {
    /* Warm color palette */
    --bg-primary: #0f0f0f;
    --bg-secondary: #161616;
    --bg-card: #1c1c1c;
    --bg-card-hover: #242424;
    
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    
    /* Warm accent colors */
    --accent-primary: #f59e0b;
    --accent-secondary: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --accent-glow: rgba(245, 158, 11, 0.25);
    
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1100px;
    
    /* Typography */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #0f0f0f;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--section-padding) + 60px) 24px var(--section-padding);
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(234, 88, 12, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-content {
    flex: 1;
    max-width: 540px;
    margin-right: 60px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Window Mockup */
.window-mockup {
    width: 100%;
    max-width: 540px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.window-titlebar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.window-buttons {
    display: flex;
    gap: 8px;
}

.window-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #febc2e; }
.btn-maximize { background: #28c840; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.window-content {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 160px;
    background: var(--bg-secondary);
    padding: 14px;
    border-right: 1px solid var(--border-color);
}

.mockup-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.mockup-tabs .tab {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.mockup-tabs .tab.active {
    background: var(--accent-primary);
    color: #0f0f0f;
    font-weight: 600;
}

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

.mockup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-card);
}

.mockup-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning);
}

.mockup-item .dot.green {
    background: var(--success);
}

.mockup-item.update {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.mockup-detail {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mockup-app-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.app-info h3 {
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: 600;
}

.app-info p {
    font-size: 0.8rem;
    color: var(--warning);
}

.mockup-btn {
    padding: 9px 28px;
    background: var(--accent-gradient);
    color: #0f0f0f;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    padding: var(--section-padding) 24px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.workflow-step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0 auto 16px;
}

.workflow-step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: var(--accent-gradient);
    color: #0f0f0f;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-badge.save {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.pricing-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-header > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Download Section
   ============================================ */

.download {
    padding: var(--section-padding) 24px;
}

.download-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 32px;
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.download-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.download-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.download-version {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 14px !important;
}

.download-notes {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.download-notes h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.download-notes ul {
    list-style: none;
}

.download-notes li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-notes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

/* ============================================
   Modal
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-content > p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

#apple-signin-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 56px 24px 28px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
    margin-bottom: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-content > p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 48px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 70px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .window-mockup {
        max-width: 100%;
    }
    
    .window-content {
        flex-direction: column;
    }
    
    .mockup-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links a:not(:last-child) {
        display: none;
    }
}
