/* ESoftCentral — App Store Styles (Light Theme) */
:root {
    --primary: #c2310e;
    --primary-light: #e04a20;
    --primary-dark: #9a2810;
    --bg: #f5f5f5;
    --bg-card: #ffffff;
    --bg-elevated: #fafafa;
    --text: #1a1a1a;
    --text-muted: #666;
    --text-dim: #999;
    --border: #e0e0e0;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1100px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.logo-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold; color: white;
}
.logo:hover { color: var(--text); }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
    color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
    padding: 8px 0; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--primary); border-radius: 1px;
}
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
    flex-direction: column; gap: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--text); border-radius: 1px;
    transition: 0.3s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Main */
.site-main { flex: 1; }

/* Hero */
.hero {
    text-align: center; padding: 80px 20px 60px;
    background: radial-gradient(ellipse at center, rgba(194,49,14,0.08), transparent 70%);
}
.hero h1 {
    font-size: 2.8rem; font-weight: 800; margin-bottom: 16px;
    color: var(--text);
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: all 0.2s; border: none;
}
.btn-primary {
    background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-light); color: white; transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-elevated); }
.btn-large { padding: 14px 32px; font-size: 1rem; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* Sections */
.section { padding: 48px 20px; }
.section-title {
    font-size: 1.6rem; font-weight: 700; margin-bottom: 32px; text-align: center;
}

/* App Grid */
.app-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.app-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.app-icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: bold; color: white; flex-shrink: 0;
}
.app-icon img { width: 100%; height: 100%; border-radius: var(--radius-sm); object-fit: cover; }
.app-card-header h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tagline { color: var(--text-muted); font-size: 0.9rem; }
.short-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.5; }
.app-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    flex-wrap: wrap;
}
.price { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.badge-free { background: #e8f5e9; color: #2e7d32; }
.badge-iap { background: #fff3e0; color: #e65100; }
.badge-new { background: #e3f2fd; color: #1565c0; }

/* App Detail */
.app-hero {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border-bottom: 1px solid var(--border);
    padding: 48px 20px;
}
.app-hero-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.app-hero-icon { width: 96px; height: 96px; border-radius: var(--radius); flex-shrink: 0; }
.app-hero-icon img { width: 100%; height: 100%; border-radius: var(--radius); }
.app-hero-info { flex: 1; min-width: 260px; }
.app-hero-info h1 { font-size: 2rem; margin-bottom: 8px; }
.app-hero-info .tagline { font-size: 1.1rem; margin-bottom: 16px; }
.app-meta {
    display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
    color: var(--text-muted); font-size: 0.9rem;
}
.app-meta span { display: flex; align-items: center; gap: 6px; }
.rating { color: #f9a825; }

.app-screenshots { display: flex; gap: 16px; overflow-x: auto; padding: 4px; }
.app-screenshots img {
    height: 400px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); flex-shrink: 0;
}

.features-list { list-style: none; }
.features-list li {
    padding: 8px 0; padding-left: 28px; position: relative;
    border-bottom: 1px solid var(--border);
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--primary);
    font-weight: bold;
}

/* Blog */
.blog-list { display: flex; flex-direction: column; gap: 20px; }
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.blog-card .excerpt { color: var(--text-muted); margin-bottom: 12px; }
.blog-meta { color: var(--text-dim); font-size: 0.85rem; }
.blog-post { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.blog-post h1 { font-size: 2rem; margin-bottom: 12px; }
.blog-post h2 { font-size: 1.4rem; margin: 24px 0 12px; }
.blog-post p { margin-bottom: 16px; color: var(--text-muted); }
.blog-post ul, .blog-post ol { margin-left: 24px; margin-bottom: 16px; color: var(--text-muted); }
.blog-post code {
    background: #f0f0f0; padding: 2px 6px; border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace; font-size: 0.9em;
}
.blog-post pre code { display: block; padding: 16px; overflow-x: auto; }
.blog-post blockquote {
    border-left: 3px solid var(--primary); padding-left: 16px; margin: 16px 0;
    color: var(--text-muted); font-style: italic;
}

/* FAQ */
.faq-item { margin-bottom: 24px; }
.faq-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.faq-item p { color: var(--text-muted); }

/* Support Form */
.support-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text); font-size: 0.95rem; font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.success { background: #e8f5e9; color: #2e7d32; }
.form-status.error { background: #ffebee; color: #c62828; }

/* Design Services Banner */
.design-banner {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}
.design-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(194,49,14,0.15), transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}
.design-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,193,7,0.1), transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite reverse;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.design-banner-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.design-banner-graphic {
    font-size: 6rem;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 32px rgba(255,193,7,0.3));
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}
.design-banner-content {
    flex: 1;
}
.design-banner-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.design-banner-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    line-height: 1.6;
}
.design-banner-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.design-banner-features span {
    color: #FFC107;
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-design {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #FFC107, #FF8F00);
    color: #1a1a2e;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(255,193,7,0.4);
}
.btn-design:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,193,7,0.5);
    color: #1a1a2e;
}

@media (max-width: 768px) {
    .design-banner-inner { flex-direction: column; text-align: center; }
    .design-banner-graphic { font-size: 4rem; }
    .design-banner-content h2 { font-size: 1.6rem; }
    .design-banner-features { justify-content: center; }
}
.site-footer {
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 48px 20px 24px; margin-top: auto;
}
.footer-cols {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--text); }
.footer-col a, .footer-col p { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center; padding-top: 24px; border-top: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.85rem;
}

/* Purchase Page */
.purchase-options {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin: 32px 0;
}
.purchase-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.purchase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.purchase-card.featured { border-color: var(--primary); position: relative; }
.purchase-card.featured::before {
    content: 'POPULAR'; position: absolute; top: -1px; right: 24px;
    background: var(--primary); color: white; padding: 4px 12px;
    font-size: 0.75rem; font-weight: 700; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.purchase-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.purchase-card .price { font-size: 2rem; font-weight: 800; margin: 16px 0; }
.purchase-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.purchase-card ul { list-style: none; text-align: left; margin: 24px 0; }
.purchase-card ul li { padding: 8px 0; color: var(--text-muted); }
.purchase-card ul li::before { content: '✓ '; color: var(--primary); font-weight: bold; }

/* Success Page */
.success-container { text-align: center; padding: 60px 20px; }
.success-icon { font-size: 64px; margin-bottom: 24px; }
.success-container h1 { font-size: 2rem; margin-bottom: 16px; }
.success-container p { color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.activation-steps {
    text-align: left; max-width: 600px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
}
.activation-steps ol { margin-left: 24px; }
.activation-steps li { padding: 8px 0; color: var(--text-muted); }
.activation-steps code {
    background: #f0f0f0; padding: 4px 8px; border-radius: 4px;
    font-family: monospace; font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 48px 20px 40px; }
    .app-hero-inner { flex-direction: column; text-align: center; }
    .app-screenshots img { height: 280px; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 60px; left: 0; right: 0;
        background: rgba(255,255,255,0.98); flex-direction: column;
        padding: 16px 20px; border-bottom: 1px solid var(--border);
    }
    body.nav-open .main-nav { display: flex; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
