/* ============================================================
   COPSOQ SaaS — Landing Page Styles
   Direction: Clinical Luxury
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --ink: #0b0f1a;
    --ink-2: #131929;
    --ink-3: #1a2138;
    --ink-4: #1e2640;
    --slate: #2a3352;
    --muted: #6b7a99;
    --soft: #8d9ab7;
    --cloud: #c4cedf;
    --snow: #eef1f7;
    --white: #f8f9fc;
    --pure: #ffffff;
    --emerald: #10b981;
    --emerald-bright: #34d399;
    --emerald-deep: #059669;
    --emerald-glow: rgba(16,185,129,.10);
    --amber: #f59e0b;
    --amber-glow: rgba(245,158,11,.08);
    --sky: #38bdf8;
    --sky-glow: rgba(56,189,248,.08);
    --violet: #8b5cf6;
    --violet-glow: rgba(139,92,246,.08);
    --coral: #f43f5e;
    --coral-glow: rgba(244,63,94,.08);
    --r: 10px;
    --r2: 14px;
    --r3: 20px;
    --r4: 28px;
    --bez: cubic-bezier(.22,1,.36,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem; color: var(--ink); line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    margin: 0; background: var(--pure);
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -.03em; line-height: 1.2;
}
a { text-decoration: none; color: inherit; transition: all .25s var(--bez); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════
   TOPBAR
   ═══════════════════════════════ */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
    height: 72px;
    display: flex; align-items: center;
    padding: 0 2.5rem;
    transition: all .35s var(--bez);
    background: transparent;
}
.topbar.pinned {
    background: rgba(11,15,26,.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,.25);
    height: 64px;
}

.tb-brand {
    display: flex; align-items: center; gap: .6rem;
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.2rem;
    color: var(--pure);
}
.tb-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--emerald), var(--sky));
    display: grid; place-items: center;
    font-size: .85rem; font-weight: 900; color: var(--ink);
}

.menu { display: flex; align-items: center; gap: 0; margin-left: auto; }
.menu-links {
    display: flex; align-items: center; gap: .25rem; list-style: none;
    margin: 0; padding: 0;
}
.menu-links a {
    color: var(--cloud); font-size: .88rem; font-weight: 500;
    padding: .5rem .85rem; border-radius: var(--r);
    transition: all .2s;
}
.menu-links a:hover { color: var(--pure); background: rgba(255,255,255,.06); }
.menu-cta { display: flex; align-items: center; gap: .5rem; margin-left: 1.25rem; }

.btn-tb-outline {
    padding: .45rem 1rem; border-radius: var(--r);
    border: 1.5px solid rgba(255,255,255,.15); color: var(--cloud);
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: .82rem;
}
.btn-tb-outline:hover { border-color: var(--emerald); color: var(--emerald-bright); }
.btn-tb-solid {
    padding: .45rem 1.15rem; border-radius: var(--r);
    background: var(--emerald); color: var(--ink); border: none;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .82rem;
    box-shadow: 0 2px 12px rgba(16,185,129,.3);
}
.btn-tb-solid:hover { background: var(--emerald-bright); transform: translateY(-1px); }

.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    color: var(--cloud); font-size: 1.5rem; padding: 4px; margin-left: 1rem;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
    position: relative;
    background: var(--ink);
    padding: 10rem 0 6rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex; align-items: center;
}

/* Animated gradient orbs */
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: .25; pointer-events: none;
}
.hero::before {
    width: 600px; height: 600px; top: -200px; right: -100px;
    background: radial-gradient(circle, var(--emerald), transparent 70%);
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.hero::after {
    width: 500px; height: 500px; bottom: -150px; left: -100px;
    background: radial-gradient(circle, var(--violet), transparent 70%);
    animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute; inset: 0; opacity: .04;
    background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem; border-radius: 100px;
    background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2);
    color: var(--emerald-bright);
    font-size: .78rem; font-weight: 700; letter-spacing: .02em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.2rem; font-weight: 800; color: var(--pure);
    letter-spacing: -.04em; line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero-title span { color: var(--emerald-bright); }

.hero-desc {
    font-size: 1.1rem; color: var(--soft);
    line-height: 1.7; max-width: 480px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-hero {
    padding: .75rem 2rem; border-radius: var(--r2);
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .95rem;
    cursor: pointer; border: none; display: inline-flex; align-items: center; gap: .5rem;
}
.btn-hero-primary {
    background: var(--emerald); color: var(--ink);
    box-shadow: 0 4px 20px rgba(16,185,129,.35);
}
.btn-hero-primary:hover { background: var(--emerald-bright); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(16,185,129,.4); }
.btn-hero-ghost {
    background: transparent; color: var(--cloud);
    border: 1.5px solid rgba(255,255,255,.12);
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,.3); color: var(--pure); }

/* Glassmorphism dashboard mockup */
.hero-visual {
    position: relative;
}
.glass-dash {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r4);
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.gd-header {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 1.25rem;
}
.gd-dot { width: 8px; height: 8px; border-radius: 50%; }
.gd-dot:nth-child(1) { background: var(--coral); }
.gd-dot:nth-child(2) { background: var(--amber); }
.gd-dot:nth-child(3) { background: var(--emerald); }
.gd-title {
    margin-left: auto; font-size: .72rem; font-weight: 700;
    color: var(--soft); text-transform: uppercase; letter-spacing: .1em;
}

.gd-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
    margin-bottom: 1.25rem;
}
.gd-stat {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--r2); padding: .85rem;
}
.gd-stat-val {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 1.5rem; color: var(--pure); line-height: 1;
}
.gd-stat-lbl { font-size: .68rem; color: var(--muted); margin-top: .2rem; text-transform: uppercase; letter-spacing: .06em; }

.gd-chart {
    height: 120px;
    display: flex; align-items: flex-end; gap: 6px;
    padding: .75rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--r2);
}
.gd-bar-item {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: height 1s var(--bez);
}

@keyframes orbFloat {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ═══════════════════════════════
   SECTIONS
   ═══════════════════════════════ */
.section {
    padding: 5rem 0;
}
.section-dark { background: var(--ink); }
.section-alt { background: var(--white); }

.section-title {
    font-size: 2.2rem; font-weight: 800;
    text-align: center; margin-bottom: .5rem;
}
.section-dark .section-title { color: var(--pure); }
.section-subtitle {
    font-size: 1.05rem; color: var(--muted);
    text-align: center; max-width: 560px; margin: 0 auto 3rem;
}

/* ─── Como Funciona ─── */
.steps-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
    counter-reset: step;
}
.step-card {
    text-align: center; padding: 2rem 1.25rem;
    border-radius: var(--r3);
    background: var(--pure);
    border: 1px solid var(--snow);
    transition: all .3s var(--bez);
    counter-increment: step;
    position: relative;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11,15,26,.08);
    border-color: rgba(16,185,129,.15);
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald-glow), var(--sky-glow));
    border: 1px solid rgba(16,185,129,.15);
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 1.1rem; color: var(--emerald);
    margin-bottom: 1rem;
}
.step-card h4 {
    font-size: 1rem; font-weight: 700; margin-bottom: .5rem;
}
.step-card p {
    font-size: .88rem; color: var(--muted); line-height: 1.6; margin: 0;
}

/* ─── Features ─── */
.feat-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.feat-card {
    padding: 2rem 1.5rem;
    border-radius: var(--r3);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .3s var(--bez);
}
.section-dark .feat-card:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(16,185,129,.15);
    transform: translateY(-3px);
}
.feat-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.3rem;
    margin-bottom: 1.25rem;
}
.feat-card h4 { font-size: 1rem; font-weight: 700; color: var(--pure); margin-bottom: .5rem; }
.feat-card p { font-size: .88rem; color: var(--soft); line-height: 1.6; margin: 0; }

/* ─── Pricing ─── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.pricing-card {
    background: var(--pure);
    border: 1px solid var(--snow);
    border-radius: var(--r3);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all .3s var(--bez);
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11,15,26,.08);
}
.pricing-card.featured {
    border-color: var(--emerald);
    box-shadow: 0 8px 30px rgba(16,185,129,.12);
}
.pricing-popular {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--emerald); color: var(--ink);
    padding: .3rem 1.25rem; border-radius: 100px;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .7rem;
    letter-spacing: .05em; text-transform: uppercase;
}
.pricing-name {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 1.15rem; margin-bottom: .3rem;
}
.pricing-desc { font-size: .84rem; color: var(--muted); margin-bottom: 1.25rem; }
.pricing-price {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 2.5rem; margin-bottom: .15rem;
}
.pricing-cycle { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features {
    text-align: left; margin-bottom: 1.75rem;
    list-style: none; padding: 0;
}
.pricing-features li {
    display: flex; align-items: center; gap: .55rem;
    font-size: .86rem; color: var(--slate);
    padding: .4rem 0;
}
.pricing-features li i { color: var(--emerald); font-size: .8rem; }
.btn-pricing {
    display: block; width: 100%;
    padding: .7rem; border-radius: var(--r2);
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .88rem;
    border: 1.5px solid transparent; cursor: pointer;
    transition: all .25s var(--bez);
}
.btn-pricing-primary {
    background: var(--emerald); color: var(--ink); border-color: var(--emerald);
    box-shadow: 0 2px 12px rgba(16,185,129,.25);
}
.btn-pricing-primary:hover { background: var(--emerald-bright); transform: translateY(-1px); }
.btn-pricing-outline {
    background: transparent; color: var(--emerald); border-color: var(--snow);
}
.btn-pricing-outline:hover { border-color: var(--emerald); background: var(--emerald-glow); }

/* ─── FAQ ─── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--snow); padding: 1.25rem 0;
}
.faq-q {
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .95rem;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q i { font-size: .75rem; color: var(--muted); transition: transform .3s; }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .4s var(--bez), padding .3s;
    font-size: .9rem; color: var(--muted); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: .75rem; }
.faq-item.open .faq-q i { transform: rotate(180deg); }

/* ─── CTA ─── */
.cta-section {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(16,185,129,.12), transparent 70%);
    pointer-events: none;
}
.cta-title { font-size: 2rem; font-weight: 800; color: var(--pure); margin-bottom: .75rem; position: relative; z-index: 2; }
.cta-desc { font-size: 1.05rem; color: var(--soft); max-width: 480px; margin: 0 auto 2rem; position: relative; z-index: 2; }

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer {
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.04);
    padding: 3.5rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-brand {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 1.1rem; color: var(--pure);
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .75rem;
}
.footer-desc { font-size: .84rem; color: var(--muted); line-height: 1.7; max-width: 300px; }
.footer-title {
    font-family: 'Sora', sans-serif; font-weight: 700;
    font-size: .72rem; color: var(--cloud);
    text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    font-size: .86rem; color: var(--muted);
    transition: all .2s;
}
.footer-links a:hover { color: var(--emerald-bright); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.04);
    font-size: .78rem; color: var(--slate);
}

/* ═══════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════ */
.sr {
    opacity: 0; transform: translateY(24px);
    transition: all .7s var(--bez);
}
.sr.vis { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 991px) {
    .hero { padding: 8rem 0 4rem; min-height: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-visual { max-width: 500px; }
    .steps-grid { grid-template-columns: repeat(2,1fr); }
    .feat-grid { grid-template-columns: repeat(2,1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hamburger { display: block; }
    .menu-links, .menu-cta { display: none; }
}
@media (max-width: 640px) {
    .hero-title { font-size: 2rem; }
    .hero { padding: 7rem 0 3rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.65rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: .5rem; }
    .topbar { padding: 0 1rem; }
}
