/* ============================================================
   Platform Hosting Pages – Shared Styles
   Used by: coolify-hosting, dokploy-hosting, n8n-hosting,
            docker-cloud-hosting-on-platform-as-a-service,
            magento-in-paas, wordpress-in-paas
   ============================================================ */

/* ── PaaS Hero ── */
.paas-hero {
    position: relative; min-height: 90vh; display: flex; flex-direction: column;
    justify-content: center; padding: 10rem 3rem 5rem; z-index: 1; text-align: center;
}
.paas-hero-content { max-width: 950px; margin: 0 auto; }
.paas-hero .section-label { margin-bottom: 1.5rem; }
.paas-hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; line-height: 1.08;
    margin-bottom: 1.5rem; letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease forwards;
}
.paas-hero h1 .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.paas-hero p.hero-desc {
    font-size: 1.2rem; color: var(--text-secondary); max-width: 750px;
    margin: 0 auto 3rem; line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.15s forwards; opacity: 0;
}
.paas-hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0;
}
.paas-hero-stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    padding-top: 2.5rem; border-top: 1px solid var(--border-subtle);
    animation: fadeInUp 0.8s ease 0.3s forwards; opacity: 0;
}
.paas-hero-stat { text-align: center; }
.paas-hero-stat-value {
    font-family: 'Space Mono', monospace; font-size: 2.25rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.paas-hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.25rem; }

/* ── Install Command Section ── */
.install-section { position: relative; z-index: 1; padding: 6rem 3rem; }
.install-inner { max-width: 800px; margin: 0 auto; }
.install-command-box {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; position: relative; overflow: hidden;
    margin-top: 2rem;
}
.install-command-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
}
.install-command-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle);
}
.install-command-dots { display: flex; gap: 0.4rem; }
.install-command-dots span { width: 10px; height: 10px; border-radius: 50%; }
.install-command-dots span:nth-child(1) { background: #ef4444; }
.install-command-dots span:nth-child(2) { background: #eab308; }
.install-command-dots span:nth-child(3) { background: #22c55e; }
.install-command-title {
    font-family: 'Space Mono', monospace; font-size: 0.8rem;
    color: var(--text-muted); margin-left: 0.5rem;
}
.install-command-copy {
    margin-left: auto; background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.3); border-radius: 6px;
    color: var(--accent-gold); font-size: 0.75rem; font-weight: 600;
    padding: 0.35rem 0.75rem; cursor: pointer; transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}
.install-command-copy:hover { background: rgba(245, 166, 35, 0.2); }
.install-command-copy.copied { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.3); color: var(--accent-green); }
.install-command-code {
    font-family: 'Space Mono', monospace; font-size: 1rem;
    color: var(--accent-gold); background: rgba(0,0,0,0.3);
    padding: 1.25rem 1.5rem; border-radius: 8px; overflow-x: auto;
    white-space: nowrap; line-height: 1.6;
}
.install-command-code .prompt { color: var(--accent-green); }
.install-command-note {
    font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem;
    text-align: center; line-height: 1.6;
}

/* ── Server Choice Cards ── */
.server-choice-section { position: relative; z-index: 1; padding: 6rem 3rem; background: var(--bg-secondary); }
.server-choice-inner { max-width: 1100px; margin: 0 auto; }
.server-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.server-choice-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden;
    transition: all 0.4s ease; backdrop-filter: blur(10px);
}
.server-choice-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.4s ease;
}
.server-choice-card:hover { border-color: rgba(245, 166, 35, 0.3); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4); }
.server-choice-card:hover::before { opacity: 1; }
.server-choice-card.recommended {
    border-color: var(--accent-gold);
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.08) 0%, var(--bg-card) 100%);
}
.server-choice-card.recommended::before { opacity: 1; }
.recommended-badge {
    position: absolute; top: 1.25rem; right: 1.25rem; background: var(--gradient-primary);
    color: var(--bg-primary); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; padding: 0.35rem 0.75rem; border-radius: 100px;
}
.server-choice-icon {
    width: 56px; height: 56px; background: var(--accent-gold-dim); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; color: var(--accent-gold);
}
.server-choice-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.server-choice-card .card-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.server-choice-card .card-price {
    font-family: 'Space Mono', monospace; font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 1.5rem;
}
.server-choice-card .card-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.server-choice-specs { list-style: none; margin-bottom: 2rem; }
.server-choice-specs li {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}
.server-choice-specs li:last-child { border-bottom: none; }
.server-choice-specs li svg { color: var(--accent-gold); flex-shrink: 0; }

/* ── Steps/Setup Grid ── */
.steps-section { position: relative; z-index: 1; padding: 6rem 3rem; }
.steps-inner { max-width: 1000px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; text-align: center; position: relative;
    transition: all 0.3s ease;
}
.step-card:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.step-number {
    font-family: 'Space Mono', monospace; font-size: 2.5rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* Alias: setup-* classes (used by n8n-hosting, paas) map to same styles */
.setup-section { position: relative; z-index: 1; padding: 6rem 3rem; background: var(--bg-secondary); }
.setup-inner { max-width: 1000px; margin: 0 auto; }
.setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.setup-step {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; text-align: center; position: relative;
    transition: all 0.3s ease;
}
.setup-step:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.setup-step-number {
    font-family: 'Space Mono', monospace; font-size: 2.5rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 1rem;
}
.setup-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.setup-step p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ── About Section with Capabilities ── */
.about-section { position: relative; z-index: 1; padding: 6rem 3rem; background: var(--bg-secondary); }
.about-inner { max-width: 1200px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.about-text p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.about-text p strong { color: var(--text-primary); }
.about-capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-capability {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 12px; padding: 1.25rem; transition: all 0.3s ease;
}
.about-capability:hover { border-color: rgba(245, 166, 35, 0.3); }
.about-capability h4 {
    font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.about-capability h4 svg { color: var(--accent-gold); flex-shrink: 0; }
.about-capability p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── Pricing Highlight Cards ── */
.pricing-highlight {
    position: relative; z-index: 1; padding: 5rem 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.98));
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.pricing-highlight-inner { max-width: 1000px; margin: 0 auto; }
.pricing-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; margin-top: 3rem;
}
.pricing-highlight-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
    transition: all 0.3s ease; backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}
.pricing-highlight-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s ease;
}
.pricing-highlight-card:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.pricing-highlight-card:hover::before { opacity: 1; }
.pricing-highlight-card.featured {
    border-color: var(--accent-gold);
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.08) 0%, var(--bg-card) 100%);
}
.pricing-highlight-card.featured::before { opacity: 1; }
.ph-label { font-size: 0.8rem; font-weight: 600; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.ph-price {
    font-family: 'Space Mono', monospace; font-size: 2rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.25rem;
}
.ph-price span { font-size: 1rem; color: var(--text-muted); }
.ph-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Language/Tech Badges ── */
.languages-section {
    position: relative; z-index: 1; padding: 5rem 3rem;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border-subtle);
}
.languages-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.languages-grid {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
    margin-top: 2.5rem;
}
.language-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem 1.5rem; background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 12px;
    font-size: 0.9rem; color: var(--text-secondary); font-weight: 500;
    transition: all 0.3s ease;
}
.language-badge:hover { border-color: rgba(245, 166, 35, 0.3); color: var(--text-primary); }
.language-badge .lang-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ── Deploy Steps ── */
.deploy-section { position: relative; z-index: 1; padding: 6rem 3rem; }
.deploy-inner { max-width: 1000px; margin: 0 auto; }
.deploy-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.deploy-step {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem 1.5rem; text-align: center;
    transition: all 0.3s ease; position: relative;
}
.deploy-step:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.deploy-step-num {
    font-family: 'Space Mono', monospace; font-size: 2rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 1rem;
}
.deploy-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.deploy-step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Architecture Cards (with color icon variants) ── */
.architecture-section {
    position: relative; z-index: 1; padding: 6rem 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.98));
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.architecture-inner { max-width: 1200px; margin: 0 auto; }
.arch-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
}
.arch-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; transition: all 0.3s ease;
    backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.arch-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s ease;
}
.arch-card:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.arch-card:hover::before { opacity: 1; }
.arch-card-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 1.25rem;
    background: var(--accent-gold-dim); color: var(--accent-gold);
}
.arch-card-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.arch-card-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); }
.arch-card-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.arch-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.arch-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Testimonials ── */
.testimonials-section { position: relative; z-index: 1; padding: 6rem 3rem; }
.testimonials-inner { max-width: 1200px; margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; transition: all 0.3s ease;
}
.testimonial-card:hover { border-color: rgba(245, 166, 35, 0.3); }
.testimonial-stars { color: var(--accent-gold); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 0.15em; }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* ── Mobile & Tablet Performance (≤1024px) ── */
@media (max-width: 1024px) {
    .paas-hero h1, .paas-hero p.hero-desc, .paas-hero-cta, .paas-hero-stats { animation: none; opacity: 1; }
    .server-choice-card, .pricing-highlight-card, .arch-card { backdrop-filter: none; transition: none; }
    .server-choice-card::before, .pricing-highlight-card::before, .arch-card::before { transition: none; }
    .step-card, .setup-step, .deploy-step, .about-capability,
    .language-badge, .testimonial-card { transition: none; }
    .server-choice-card:hover, .step-card:hover, .setup-step:hover,
    .pricing-highlight-card:hover, .deploy-step:hover, .arch-card:hover { transform: none; box-shadow: none; }
    .install-command-copy { transition: none; }
}
/* ── Responsive ── */
@media (max-width: 768px) {
    .paas-hero { padding: 7rem 1.5rem 3rem; }
    .paas-hero-stats { gap: 2rem; }
    .paas-hero-stat-value { font-size: 1.75rem; }
    .server-choice-grid { grid-template-columns: 1fr; }
    .steps-grid, .setup-steps { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-capabilities { grid-template-columns: 1fr 1fr; }
    .install-section, .server-choice-section, .steps-section, .setup-section,
    .about-section, .deploy-section, .testimonials-section { padding: 4rem 1.5rem; }
    .install-command-code { font-size: 0.8rem; }
    .pricing-highlight { padding: 3rem 1.5rem; }
    .languages-section { padding: 3rem 1.5rem; }
    .deploy-steps { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .architecture-section { padding: 4rem 1.5rem; }
    .arch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .paas-hero { padding: 6rem 1rem 2rem; }
    .paas-hero h1 { font-size: 2rem; }
    .paas-hero p.hero-desc { font-size: 1rem; }
    .paas-hero-cta { flex-direction: column; }
    .paas-hero-stats { flex-direction: column; gap: 1.5rem; }
    .about-capabilities { grid-template-columns: 1fr; }
    .install-section, .server-choice-section, .steps-section, .setup-section,
    .about-section, .deploy-section, .testimonials-section { padding: 3rem 1rem; }
    .install-command-code { font-size: 0.7rem; padding: 1rem; }
    .pricing-cards { grid-template-columns: 1fr; }
    .deploy-steps { grid-template-columns: 1fr; }
    .architecture-section { padding: 3rem 1rem; }
}
