/* mediaPaaS landing page: same w3schools dark palette, type and components as the PaaSbox dashboard */
:root {
    --bg: #1d2a35;
    --bg-2: #18232c;
    --panel: #282a35;
    --panel-2: #38444d;
    --line: #38444d;
    --text: #e7e9eb;
    --muted: #9ba6b1;
    --accent: #04aa6d;
    --accent-2: #059862;
    --accent-soft: rgba(4, 170, 109, .14);
    --radius: 10px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .25);
    --nav-h: 66px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.6 "Source Sans 3", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; color: #7ee2b8; background: rgba(4, 170, 109, .1); padding: 1px 6px; border-radius: 5px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* buttons, chips, cards (dashboard components) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--text); background: var(--panel-2); white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: none; border-color: var(--line); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.lg { padding: 13px 24px; font-size: 16px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; display: none; place-items: center; }
.icon-btn:hover { background: var(--panel-2); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 20px; font-size: 14px;
    background: rgba(40, 42, 53, .7); border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.chips i { color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.chip {
    padding: 6px 14px; border-radius: 16px; border: 1px solid var(--line); background: none; color: var(--muted);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand span { font-size: 21px; font-weight: 600; line-height: 1; }
.brand b { color: var(--accent); }
.brand small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* top navigation */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
    background: rgba(29, 42, 53, .55); border-bottom: 1px solid transparent; backdrop-filter: blur(12px);
    transition: background .2s, border-color .2s;
}
.nav.scrolled { background: rgba(40, 42, 53, .92); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-mobile-only { display: none; }

/* hero: grid lines anchored bottom-left so they line up with the app wall cells */
.hero {
    --cell: 72px; --wall-h: 288px;
    position: relative; overflow: hidden; min-height: min(100vh, 980px);
    display: flex; align-items: flex-start; padding: calc(var(--nav-h) + 72px) 0 calc(var(--wall-h) + 36px);
    background:
        radial-gradient(circle at 80% 8%, rgba(4, 170, 109, .22) 0, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(33, 150, 243, .14) 0, transparent 45%),
        linear-gradient(170deg, #22313d 0%, var(--bg-2) 75%);
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: var(--cell) var(--cell); background-position: 0 100%;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .2), #000 60%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .2), #000 60%);
}
.hero-glow {
    background-image:
        linear-gradient(to right, rgba(4, 170, 109, .75) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(4, 170, 109, .75) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(circle 200px at var(--mx, -999px) var(--my, -999px), #000, transparent);
    mask-image: radial-gradient(circle 200px at var(--mx, -999px) var(--my, -999px), #000, transparent);
    opacity: 0; transition: opacity .3s;
}
.hero.lit .hero-glow { opacity: 1; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 10px; border-radius: 20px; margin-bottom: 22px;
    background: var(--accent-soft); color: #7ee2b8; font-size: 14px; font-weight: 600; border: 1px solid rgba(4, 170, 109, .35);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(4, 170, 109, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(4, 170, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(4, 170, 109, 0); } }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -.015em; line-height: 1.04; }
.hero h1 span { color: var(--accent); }
.hero-copy > p { max-width: 640px; color: var(--muted); font-size: 19px; margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-wall { position: absolute; left: 0; bottom: 0; z-index: 1; display: grid; grid-auto-rows: var(--cell); }
.hero-cell { position: relative; display: grid; place-items: center; }
.hero-cell.dot::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgba(4, 170, 109, .3); }
.hero-app {
    position: relative; width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; cursor: pointer;
    background: rgba(40, 42, 53, .92); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1.4), box-shadow .22s, border-color .22s, opacity .22s, filter .22s;
    animation: tile-in .5s backwards; animation-delay: var(--d);
}
.hero-app img { width: 32px; height: 32px; object-fit: contain; }
.hero-wall:has(.hero-app:hover) .hero-app:not(:hover) { opacity: .45; filter: grayscale(.7); }
.hero-wall .hero-app:hover {
    opacity: 1; filter: none; z-index: 3; transform: translateY(-8px) scale(1.18);
    border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 30px rgba(4, 170, 109, .35);
}
.hero-label {
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap;
    padding: 3px 9px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
    opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.hero-app:hover .hero-label { opacity: 1; transform: translate(-50%, 0); }
@keyframes tile-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; overflow: hidden; }
.step-num { position: absolute; top: 14px; right: 20px; font-size: 64px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .05); }
.step-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature > i { font-size: 22px; color: var(--accent); margin-bottom: 14px; display: block; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* app catalog */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.app-card { display: flex; gap: 14px; padding: 16px; align-items: flex-start; transition: border-color .15s, transform .15s; }
.app-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.app-card[hidden] { display: none; }
.app-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.app-icon img { width: 28px; height: 28px; object-fit: contain; }
.app-card h3 { font-size: 16px; }
.app-card .cat { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.app-card p { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }

/* pricing (same plan cards as the dashboard's Add PaaSbox page) */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-top: 4px solid var(--plan); transition: transform .15s, box-shadow .15s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--plan); box-shadow: 0 0 0 1px var(--plan), 0 14px 40px rgba(4, 170, 109, .18); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 12px; white-space: nowrap; }
.plan-name { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--plan); }
.plan-price { font-size: 40px; font-weight: 700; margin: 6px 0 18px; line-height: 1.1; }
.plan-price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.plan li i { width: 18px; text-align: center; color: var(--plan); }
.plan li b { color: var(--text); }
.plan-note { text-align: center; color: var(--muted); margin-top: 28px; }
.plan-note i { color: var(--accent); margin-right: 4px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .15s; }
.faq details[open] { border-color: rgba(4, 170, 109, .5); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); font-size: 14px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* CTA band */
.cta-band { padding: 72px 0; background: linear-gradient(120deg, rgba(4, 170, 109, .18), rgba(33, 150, 243, .08)), var(--bg-2); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 34px); }
.cta-inner p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.footer { background: var(--panel); border-top: 1px solid var(--line); padding: 56px 0 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { color: var(--text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-cols a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-app, .pulse { animation: none; }
    .hero-glow { display: none; }
}

/* responsive */
@media (max-width: 1040px) {
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 16px;
        background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
    }
    .nav.open .nav-links { display: flex; }
    .nav.open { background: var(--panel); }
    .nav-links a { padding: 12px; }
    .nav-mobile-only { display: block; }
    .icon-btn { display: inline-grid; }
    .nav-signin { display: none; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .section { padding: 64px 0; }
    .hero { --cell: 56px; padding-top: calc(var(--nav-h) + 40px); min-height: 0; }
    .hero-app { width: 42px; height: 42px; border-radius: 11px; }
    .hero-app img { width: 26px; height: 26px; }
    .hero-copy > p { font-size: 17px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .feature-grid, .plan-grid { grid-template-columns: 1fr; }
    .nav-actions .btn.primary { padding: 8px 12px; font-size: 14px; }
    .footer-cols { gap: 36px; }
}
