/* Right Click IT Solutions – homepage component styles (used alongside Tailwind) */
html { scroll-behavior: smooth; }
a { color: #8fa9ff; } a:hover { color: #fff; }

/* ---------- keyframes ---------- */
@keyframes rcDash   { to { stroke-dashoffset: -48; } }
@keyframes rcBlink  { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes rcSweep  { 0%,100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
@keyframes rcEq     { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes rcDraw   { 0% { stroke-dashoffset: 520; } 55%,85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -520; } }
@keyframes rcPing   { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes rcHeart  { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes rcFill   { 0% { transform: scaleX(0); } 70%,100% { transform: scaleX(1); } }
@keyframes rcBob    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes rcShimmer{ to { background-position: -200% 0; } }
@keyframes rcWipe   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rcTrace  { from { left: -160px; } to { left: 100%; } }
@keyframes rcScan   { from { top: -30%; } to { top: 110%; } }
@keyframes rcDrop   { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes rcReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- backgrounds ---------- */
.bg-grid-fade { background-image: linear-gradient(rgba(143,169,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(143,169,255,.07) 1px,transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(#000,transparent 90%); mask-image: linear-gradient(#000,transparent 90%); }
.bg-grid-24 { background-image: linear-gradient(rgba(143,169,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(143,169,255,.06) 1px,transparent 1px); background-size: 24px 24px; }
.bg-grid-32 { background-image: linear-gradient(rgba(143,169,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(143,169,255,.07) 1px,transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(120deg,#000,transparent 70%); mask-image: linear-gradient(120deg,#000,transparent 70%); }
.bg-dots { background-image: radial-gradient(rgba(143,169,255,.14) 1px,transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 80% at 20% 30%,#000,transparent); mask-image: radial-gradient(70% 80% at 20% 30%,#000,transparent); }

/* ---------- header ---------- */
.hdr { background: rgba(11,15,25,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(143,169,255,.1); transition: background .3s, box-shadow .3s, border-color .3s; }
.hdr.is-solid { background: rgba(11,15,25,.92); border-bottom-color: rgba(143,169,255,.2); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nav-link { position: relative; display: inline-flex; align-items: center; padding: 8px 0; color: #c3cbe3; text-decoration: none; transition: color .2s; }
.nav-link:hover, .nav-link.is-active, .nav-link.is-open { color: #fff; }
.nav-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg,#6b8cff,#22d3ee); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.3,.7,.2,1); }
.nav-link.is-active .nav-bar { transform: scaleX(1); }
.caret { transition: transform .25s; } .nav-link.is-open .caret { transform: rotate(180deg); }
.mega.is-open { display: block; animation: rcDrop .25s ease-out both; }
.mega-sys { display: flex; gap: 12px; padding: 12px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.mega-sys:hover { background: rgba(107,140,255,.1); }
.mega-sys b { display: block; font: 600 14px 'Plus Jakarta Sans',sans-serif; color: #fff; }
.mega-sys small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: #8d97b5; }
.sys-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 3px; }
.mnav-link { font: 600 20px 'Oxanium',sans-serif; color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(143,169,255,.1); }
#mnav.is-open { display: flex; animation: rcDrop .25s ease-out both; }
.slide-link { display: inline-flex; width: fit-content; align-items: center; gap: 8px; color: #c3cbe3; text-decoration: none; transition: color .2s, translate .2s; }
.slide-link:hover { color: #fff; translate: 4px 0; }

/* ---------- cards + scroll reveal ---------- */
.card { background-color: #111729; border: 1px solid rgba(143,169,255,.14); border-radius: 16px; transition: translate .3s, border-color .3s, box-shadow .3s; }
.card:hover { translate: 0 -4px; border-color: rgba(143,169,255,.55); box-shadow: 0 18px 50px rgba(75,110,255,.18); }
@supports (animation-timeline: view()) {
  .reveal { animation: rcReveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}
.viz { width: 100%; height: 100%; max-height: 140px; overflow: visible; }

/* ---------- building type tabs ---------- */
.bt-tab { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: 500 13px 'Plus Jakarta Sans',sans-serif; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(143,169,255,.25); background: rgba(17,23,41,.6); color: #c3cbe3; transition: all .25s; }
.bt-tab::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(143,169,255,.5); }
.bt-tab:hover { border-color: #6b8cff; color: #fff; }
.bt-tab[aria-selected="true"] { background: #6b8cff; border-color: #6b8cff; color: #0b0f19; font-weight: 600; }
.bt-tab[aria-selected="true"]::before { background: #0b0f19; }
.bt-sys { font: 500 13px 'Plus Jakarta Sans',sans-serif; color: #e6eaf5; background: rgba(107,140,255,.12); border: 1px solid rgba(107,140,255,.35); border-radius: 8px; padding: 7px 12px; }
#bt-viz.swap { animation: rcReveal .5s ease-out both; }

/* ---------- approach ---------- */
.apr-tab { border: 0; cursor: pointer; padding: 11px 20px; border-radius: 7px; font: 500 14px 'Plus Jakarta Sans',sans-serif; background: transparent; color: #aab4d0; transition: background .25s, color .25s; }
.apr-tab[aria-selected="true"] { background: #6b8cff; color: #0b0f19; font-weight: 600; }
.apr-chip { font: 600 10px 'JetBrains Mono',monospace; letter-spacing: .08em; white-space: nowrap; border-radius: 999px; padding: 4px 9px; color: var(--mc); border: 1px solid var(--mc); transition: color .4s, border-color .4s; }
#approach[data-state="a"] { --mc: #fbbf24; } #approach[data-state="b"] { --mc: #22d3ee; }
.apr-text { margin: 0; color: #e6eaf5; }

/* ---------- managed IT console ---------- */
.console-row { display: grid; grid-template-columns: minmax(0,1fr) 160px; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(143,169,255,.1); }
.console-row > div { display: flex; flex-direction: column; gap: 5px; }
.console-row span { font-weight: 500; font-size: 16px; color: #fff; }
.console-row em { font: normal 400 11px 'JetBrains Mono',monospace; letter-spacing: .06em; color: #34d399; }
.console-row svg { width: 100%; height: 38px; overflow: visible; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #34d399; animation: rcPing 1.8s ease-out infinite; }

/* ---------- company ---------- */
.year { position: relative; display: inline-block; }
.year span { display: block; font: 700 clamp(104px,14vw,176px)/.95 'Oxanium',sans-serif; letter-spacing: -.02em; color: transparent; }
.year-outline { -webkit-text-stroke: 1.5px rgba(107,140,255,.55); }
.year-fill { position: absolute; inset: 0; background-image: linear-gradient(90deg,#6b8cff,#22d3ee 30%,#6b8cff 60%,#a78bfa 80%,#6b8cff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: rcShimmer 5s linear infinite; }
@supports (animation-timeline: view()) {
  .year-fill { animation: rcShimmer 5s linear infinite, rcWipe linear both; animation-timeline: auto, view(); animation-range: normal, entry 20% cover 45%; }
}
.trace span { position: absolute; top: 0; height: 2px; width: 160px; background: linear-gradient(90deg,transparent,#22d3ee,#34d399); box-shadow: 0 0 12px #22d3ee; animation: rcTrace 3.2s linear infinite; }
.milestone { display: flex; flex-direction: column; gap: 10px; }
.milestone i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #0e1322; border: 2px solid var(--c); }
.milestone i::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--c); }
.milestone b { margin-top: 8px; font: 500 12px 'JetBrains Mono',monospace; letter-spacing: .14em; color: var(--c); }
.milestone h3 { margin: 0; font: 600 22px 'Oxanium',sans-serif; color: #fff; }
.milestone p { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.6; color: #aab4d0; }

/* ---------- contact ---------- */
.scanline { position: absolute; left: 0; right: 0; height: 60px; pointer-events: none; background: linear-gradient(180deg,transparent,rgba(107,140,255,.10),transparent); border-bottom: 1px solid rgba(107,140,255,.35); animation: rcScan 3.6s linear infinite; }
.brief-row { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed rgba(143,169,255,.16); }
.brief-row > span:first-child { font: 500 10.5px 'JetBrains Mono',monospace; letter-spacing: .1em; color: #7c86a6; }
.brief-row > span:last-child { font: 500 14px 'Plus Jakarta Sans',sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.brief-row > span.is-empty { font: 400 12px 'JetBrains Mono',monospace; color: #4b5577; }
.step-label { margin-bottom: 10px; font: 500 11px 'JetBrains Mono',monospace; letter-spacing: .14em; color: #8fa9ff; }
.field { width: 100%; box-sizing: border-box; padding: 14px 15px; border: 1px solid rgba(143,169,255,.25); border-radius: 8px; font: 400 15px 'Plus Jakarta Sans',sans-serif; background: rgba(11,15,25,.7); color: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: #6b7596; }
.field:focus { border-color: #6b8cff; box-shadow: 0 0 0 3px rgba(107,140,255,.2); }
.type-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 12px; border-radius: 10px; cursor: pointer; text-align: left; font: 600 13px 'Plus Jakarta Sans',sans-serif; border: 1px solid rgba(143,169,255,.22); background: rgba(11,15,25,.55); color: #aab4d0; transition: all .2s; }
.type-tile:hover { border-color: rgba(107,140,255,.6); color: #fff; }
.type-tile[aria-pressed="true"] { border-color: #6b8cff; background: rgba(107,140,255,.22); color: #fff; box-shadow: 0 0 0 1px #6b8cff inset, 0 8px 24px rgba(75,110,255,.25); }
.type-tile svg { width: 28px; height: 22px; }
#form-ok.is-open { display: flex; }
#form-ok.is-open .check circle { animation: rcHeart 1s ease-out both; }
#form-ok.is-open .check path { animation: rcHeart 1.4s .3s ease-out both; }

/* ---------- footer ---------- */
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col > div { margin-bottom: 6px; font: 500 12px 'JetBrains Mono',monospace; letter-spacing: .12em; color: #8fa9ff; }
.foot-col a { display: inline-flex; width: fit-content; color: #c3cbe3; text-decoration: none; transition: color .2s, translate .2s; }
.foot-col a:hover { color: #fff; translate: 4px 0; }
.wordmark { --mx: 50%; --my: 50%; --ms: 0px; position: relative; overflow: hidden; padding: 24px 0 4px; cursor: crosshair; user-select: none; }
.wordmark span { display: block; text-align: center; white-space: nowrap; font: 700 clamp(64px,15.5vw,230px)/.85 'Oxanium',sans-serif; letter-spacing: -.01em; color: transparent; }
.wm-outline { -webkit-text-stroke: 1px rgba(143,169,255,.22); }
.wm-fill { position: absolute; left: 0; right: 0; top: 24px; background-image: linear-gradient(90deg,#6b8cff,#22d3ee,#34d399,#a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-mask-image: radial-gradient(var(--ms) circle at var(--mx) var(--my),#000 20%,transparent 75%); mask-image: radial-gradient(var(--ms) circle at var(--mx) var(--my),#000 20%,transparent 75%); }
