/* ===================================================================
   Cybrid homepage redesign (2026) — modern, conversion-focused sections
   built on the brand system: dark field, cyan/blue, glass, motion.
   New cy-* classes, styled here so they don't fight the legacy theme.
   =================================================================== */

/* Sections are transparent so the global network/aurora field shows
   (beats dark-redesign's generic `section { background: cy-bg }`). */
html body .cy-section {
    background: transparent !important;
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(60px, 8.5vh, 116px) clamp(18px, 5vw, 44px);
}

.cy-section-head {
    max-width: 760px;
    margin: 0 auto clamp(34px, 5vh, 58px);
    text-align: center;
}
.cy-eyebrow {
    display: inline-block;
    color: var(--cy-cyan, #00c0fa);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 12px;
}
.cy-h2 {
    color: #f3f7fb;
    font-size: clamp(1.8rem, 3.4vw, 2.85rem);
    line-height: 1.12;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.cy-lead {
    color: var(--cy-muted, #a9b4c2);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 620px;
}
.cy-center { text-align: center; margin-top: 42px; }

/* ---- Shared glass surface ---- */
.cy-bento-tile,
.cy-proof-feature,
.cy-demo-card,
.cy-step,
.cy-why-item,
.cy-final-inner {
    background: linear-gradient(160deg, rgba(20, 27, 40, 0.66), rgba(11, 16, 25, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

/* ---- Icon tiles ---- */
.cy-tile-icon, .cy-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(0, 192, 250, 0.1);
    border: 1px solid rgba(0, 192, 250, 0.26);
    color: var(--cy-cyan, #00c0fa);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

/* ===================== Capabilities bento ===================== */
.cy-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.cy-bento-tile {
    grid-column: span 2;
    padding: 30px 28px;
    transition: transform 0.4s cubic-bezier(0.22,0.61,0.36,1), border-color 0.4s ease;
}
.cy-bento-tile--lg { grid-column: span 3; }
.cy-bento-tile h3 { color: #eef3f9; font-size: 1.28rem; margin: 0 0 10px; font-weight: 700; }
.cy-bento-tile p { color: var(--cy-muted, #a9b4c2); line-height: 1.6; margin: 0; }
.cy-bento-tile--lg h3 { font-size: 1.5rem; }
.cy-tile-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px; color: var(--cy-cyan, #00c0fa);
    font-weight: 600; text-decoration: none; font-size: 0.95rem;
}
.cy-tile-link i { transition: transform 0.3s ease; }
.cy-tile-link:hover i { transform: translateX(4px); }
@media (hover: hover) {
    .cy-bento-tile:hover { transform: translateY(-6px); border-color: rgba(0,192,250,0.4); }
}

/* ===================== Proof / DocSmith ===================== */
.cy-proof-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.cy-proof-feature { padding: 38px; display: flex; flex-direction: column; }
.cy-badge {
    align-self: flex-start;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    color: #cdeefb; background: rgba(0, 192, 250, 0.16);
    border: 1px solid rgba(0, 192, 250, 0.3);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.cy-badge-alt { background: rgba(1, 94, 234, 0.18); border-color: rgba(1,94,234,0.34); color: #d4e2ff; }
.cy-docsmith-mark {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.03em;
    line-height: 1; margin-bottom: 16px;
    background: linear-gradient(135deg, #00c0fa, #015eea 70%, #7ce0a1);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cy-proof-feature h3 { color: #eef3f9; font-size: 1.4rem; margin: 0 0 12px; font-weight: 700; }
.cy-proof-feature > p { color: var(--cy-muted, #a9b4c2); line-height: 1.7; margin: 0; }
.cy-tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 26px; }
.cy-tag-row li {
    font-size: 0.78rem; padding: 5px 12px; border-radius: 999px;
    background: rgba(0, 192, 250, 0.08); border: 1px solid rgba(0, 192, 250, 0.2); color: #bcdff0;
}
.cy-proof-feature .cy-btn { align-self: flex-start; margin-top: auto; }

.cy-proof-demos { display: grid; gap: 20px; }
.cy-demo-card { display: flex; gap: 16px; padding: 16px; align-items: center; transition: transform 0.4s ease, border-color 0.4s ease; }
.cy-demo-card:hover { transform: translateY(-4px); border-color: rgba(0,192,250,0.35); }
.cy-demo-thumb {
    flex: 0 0 92px; height: 92px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.5rem; color: #fff;
}
.cy-demo-bistro { background: linear-gradient(135deg, #3a2a1e, #1c140e); color: #ffd9a8; font-size: 1.8rem; }
.cy-demo-fp {
    background: linear-gradient(135deg, #0a1428, #10233f);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #00c0fa, #015eea);
}
.cy-demo-body h4 { color: #eef3f9; margin: 8px 0 4px; font-size: 1.05rem; }
.cy-demo-body p { color: var(--cy-muted, #a9b4c2); font-size: 0.9rem; margin: 0 0 10px; line-height: 1.5; }
.cy-demo-link { display: inline-flex; align-items: center; gap: 7px; color: var(--cy-cyan, #00c0fa); font-weight: 600; text-decoration: none; font-size: 0.9rem; }

/* ===================== How it works ===================== */
.cy-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cy-step { padding: 30px 28px; position: relative; overflow: hidden; }
.cy-step-num {
    position: absolute; top: 16px; right: 22px;
    font-size: 3rem; font-weight: 800; line-height: 1;
    color: rgba(0, 192, 250, 0.16);
}
.cy-step h3 { color: #eef3f9; font-size: 1.2rem; margin: 0 0 10px; }
.cy-step p { color: var(--cy-muted, #a9b4c2); line-height: 1.6; margin: 0; }

/* ===================== Why Cybrid ===================== */
.cy-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.cy-why-item { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.cy-why-item i { color: var(--cy-cyan, #00c0fa); font-size: 1.45rem; margin-bottom: 4px; }
.cy-why-item h3 { color: #eef3f9; font-size: 1.12rem; margin: 0; }
.cy-why-item p { color: var(--cy-muted, #a9b4c2); line-height: 1.6; margin: 0; }

/* ===================== Final CTA ===================== */
.cy-final { padding-top: clamp(40px, 6vh, 80px); }
.cy-final-inner {
    max-width: 860px; margin: 0 auto; text-align: center;
    padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 56px);
    border-radius: 26px;
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(0, 192, 250, 0.14), transparent 60%),
        linear-gradient(160deg, rgba(20, 27, 40, 0.7), rgba(11, 16, 25, 0.6));
}
.cy-final-inner h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 14px; font-weight: 800; }
.cy-final-inner > p { color: #c8d2df; font-size: 1.12rem; line-height: 1.6; max-width: 560px; margin: 0 auto 28px; }
.cy-final-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cy-final-note { color: var(--cy-subtle, #778396); font-size: 0.85rem; margin: 24px 0 0; letter-spacing: 0.3px; }

/* ===================== Buttons ===================== */
.cy-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px; border-radius: 12px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    font-size: 0.98rem;
}
.cy-btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.cy-btn-primary { background: linear-gradient(135deg, #00c0fa, #015eea); color: #fff; box-shadow: 0 12px 32px rgba(0, 150, 250, 0.36); }
.cy-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 150, 250, 0.48); }
.cy-btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); color: #e6edf3; }
.cy-btn-ghost:hover { border-color: rgba(0, 192, 250, 0.5); color: #fff; transform: translateY(-2px); }

/* ===================== Border beam (Magic UI port) ===================== */
@property --cy-beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.cy-beam { position: relative; isolation: isolate; }
.cy-beam::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--cy-beam-angle, 0deg),
        transparent 55%, rgba(0, 192, 250, 0.9) 78%, rgba(1, 94, 234, 0.95) 90%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    pointer-events: none;
    animation: cyBeamSpin 6s linear infinite;
}
@keyframes cyBeamSpin { to { --cy-beam-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .cy-beam::after { animation: none; } }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
    .cy-proof-grid { grid-template-columns: 1fr; }
    .cy-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .cy-bento { grid-template-columns: 1fr; }
    .cy-bento-tile, .cy-bento-tile--lg { grid-column: auto; }
    .cy-why-grid { grid-template-columns: 1fr; }
    .cy-demo-card { flex-direction: row; }
}
