/* Shared Gemsly UI: section headings, glowing glass cards, tone colours and buttons.
   Used by the home and contact pages; the site backdrop itself lives in partials/header.ejs. */

.hero-title-grad {
    background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 38%, #8b5cf6 62%, #d946ef 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.sec-label { display: inline-flex; align-items: center; gap: .75rem; font-size: 11px; font-weight: 900; letter-spacing: .35em; text-transform: uppercase; color: #e879f9; }
.sec-label::before, .sec-label::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.sec-label::after { transform: scaleX(-1); }
.sec-title { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.sec-sub { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #cbd5e1; }

.gl-card {
    position: relative; border-radius: 1.25rem; overflow: hidden;
    background: linear-gradient(160deg, rgba(20,28,64,.78), rgba(8,11,28,.78));
    border: 1px solid rgba(99,102,241,.28);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.gl-card:hover { transform: translateY(-4px); }
.tone-cyan   { --tone: 34,211,238; }
.tone-blue   { --tone: 59,130,246; }
.tone-purple { --tone: 168,85,247; }
.tone-pink   { --tone: 217,70,239; }
.gl-card[class*="tone-"] { border-color: rgba(var(--tone), .38); box-shadow: 0 0 0 1px rgba(var(--tone), .06), 0 24px 60px -24px rgba(var(--tone), .45), inset 0 1px 0 rgba(255,255,255,.05); }
.gl-card[class*="tone-"]:hover { border-color: rgba(var(--tone), .75); box-shadow: 0 0 0 1px rgba(var(--tone), .2), 0 28px 70px -20px rgba(var(--tone), .65), inset 0 1px 0 rgba(255,255,255,.07); }
.tone-text { color: rgb(var(--tone)); }
.tone-icon {
    background: linear-gradient(145deg, rgba(var(--tone), .22), rgba(var(--tone), .05));
    border: 1px solid rgba(var(--tone), .45); box-shadow: 0 0 22px -4px rgba(var(--tone), .55), inset 0 0 12px rgba(var(--tone), .15);
}
.tone-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tone), .28), transparent 65%); filter: blur(30px); pointer-events: none; }

.dp-badge { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; color: #fff; }
.btn-grad {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1.6rem; border-radius: .6rem;
    font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #fff; white-space: nowrap;
    background: linear-gradient(90deg, #06b6d4, #3b82f6 50%, #a855f7); background-size: 160% 100%; background-position: 0 0;
    box-shadow: 0 10px 30px -10px rgba(59,130,246,.7); transition: background-position .4s, box-shadow .3s, transform .3s;
}
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 14px 40px -8px rgba(168,85,247,.8); transform: translateY(-1px); }
.btn-grad.purple { background-image: linear-gradient(90deg, #7c3aed, #a855f7 50%, #d946ef); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1.6rem; border-radius: .6rem;
    font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #fff; white-space: nowrap;
    background: rgba(10,14,32,.6); border: 1px solid rgba(148,163,184,.3); transition: border-color .3s, background .3s;
}
.btn-ghost:hover { border-color: rgba(168,85,247,.8); background: rgba(88,28,135,.25); }


.tone-green  { --tone: 34,197,94; }
.tone-sky    { --tone: 56,189,248; }

html.light .gl-card { background: #ffffff; box-shadow: 0 10px 30px -12px rgba(15,23,42,.15); }
html.light .btn-ghost { background: #fff; color: #0f172a; border-color: #cbd5e1; }
html.light .sec-sub { color: #475569; }
