/* Candidate 2: Merged Corporate + TextMe + My PC Direct Design */

:root {
    --color-primary: #10b981;
    --color-secondary: #667eea;
    --color-accent: #764ba2;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-muted: #9ca3af;
    --color-bg: #fff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #111827;
    --color-border: #e5e7eb;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1200px;
    --spacing: 1.5rem;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.2);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header .container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 20px;
}

.logo {
    font-size: 1.375rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

.logo-primary {
    color: var(--color-primary);
}

.logo-primary:hover {
    text-decoration: none;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.logo-secondary {
    color: var(--color-secondary);
}

.logo-secondary:hover {
    text-decoration: none;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Action Buttons in Header */
.action-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.action-btn:disabled:hover {
    transform: none;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
}

.action-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.action-btn-secondary {
    background: linear-gradient(135deg, var(--color-danger) 0%, #dc2626 100%);
    color: white;
}

.action-btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.action-btn-tertiary {
    background: linear-gradient(135deg, var(--color-info) 0%, #2563eb 100%);
    color: white;
}

.action-btn-tertiary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-icon {
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav {
    margin-left: 2rem;
}

.nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
}

.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Download Buttons */
.download-main {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-main:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

.download-info {
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 1.5rem;
}

.download-platforms {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.platform-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* App Screenshot */
.app-screenshot {
    max-width: 500px;
    margin: 2rem auto 0;
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.app-screenshot .placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.25rem;
}

.app-screenshot .screenshot-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* Section */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: var(--color-bg);
}

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    line-height: 1;
}

.close-button:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

/* Modal Content */
.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
}

.url-container {
    margin: 15px 0;
}

.url-textarea {
    width: 100%;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-alt);
    resize: none;
    padding: 12px;
    transition: border-color 0.2s ease;
}

.url-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.help-text {
    background: var(--color-bg-alt);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.help-text i {
    color: var(--color-danger);
    font-weight: 600;
}

/* Button Container */
.button-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-copy {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 180px;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: white;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-outline:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
}

.btn-danger-outline {
    background: white;
    color: var(--color-danger);
    border: 2px solid var(--color-danger);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-danger-outline:hover {
    background: #fff5f5;
    transform: translateY(-2px);
}

.status-message {
    display: block;
    color: var(--color-success);
    font-weight: 600;
    font-size: 14px;
    min-height: 24px;
    padding-left: 16px;
    margin-top: 8px;
}

/* Alert/Loading Overlay */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.alert-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.alert-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.alert-overlay.active .alert-box {
    transform: scale(1);
}

.lock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.lock-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
}

.alert-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.alert-message {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.step.active {
    color: var(--color-secondary);
    font-weight: 600;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: background 0.3s ease;
}

.step.active .step-dot {
    background: var(--color-secondary);
}

.step.completed .step-dot {
    background: var(--color-success);
}

/* Footer */
.footer {
    background: var(--color-bg-alt);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.375rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--color-text-light);
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-col a {
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    line-height: 2;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem var(--spacing);
    }

    .action-buttons-container {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        order: 3;
        margin-top: 1rem;
    }

    .action-btn {
        width: 100%;
        padding: 12px 24px;
    }

    .nav {
        display: none;
        margin-left: 0;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
    }

    .nav.active ul {
        flex-direction: column;
        gap: 0;
    }

    .nav.active a {
        display: block;
        padding: 0.75rem 0;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .app-screenshot {
        max-width: 320px;
        margin: 1.5rem auto 0;
        padding: 0.35rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .button-container {
        flex-direction: column;
    }

    .btn-copy,
    .btn-outline,
    .btn-danger-outline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing: 1rem;
    }

    .modal-box,
    .alert-box {
        padding: 24px 16px;
    }

    .section {
        padding: 4rem 0;
    }
}
