/* =========================================================================
   sikhay.io — shared shell (premium light, software-native)
   ========================================================================= */
@import url('./tokens.css?v=5');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection { background: rgba(79, 70, 229, 0.16); color: var(--text); }

/* ----- Accessibility ----- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; font-size: 14px; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* ----- Background grid (subtle) ----- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.7;
}

/* ----- Nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: transparent;
  transition: background var(--dur) ease, backdrop-filter var(--dur) ease, border-color var(--dur) ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}
.logo {
  font-family: var(--font-sans); font-weight: 700; font-size: 20px;
  letter-spacing: -0.03em; color: var(--text); text-decoration: none;
}
.logo .dot { color: var(--accent); }
.logo .tld { color: var(--text-dim); font-weight: 500; }
.nav .links { display: flex; gap: 26px; align-items: center; font-size: 14px; }
.nav .links a { color: var(--text-muted); text-decoration: none; transition: color var(--dur); }
.nav .links a:not(.nav-cta):hover { color: var(--text); }
.nav .links a[aria-current="page"]:not(.nav-cta) { color: var(--text); }
.nav .nav-cta {
  background: var(--accent); color: var(--on-accent);
  padding: 9px 18px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 13px;
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
}
.nav .nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(79,70,229,0.28); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent;
  padding: 14px 26px; border-radius: var(--r-pill); cursor: pointer;
  text-decoration: none; letter-spacing: -0.01em;
  transition: background var(--dur), transform var(--dur) var(--ease-std), box-shadow var(--dur);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(79,70,229,0.26); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost {
  background: var(--bg); color: var(--text); border-color: var(--hairline-strong);
}
.btn--ghost:hover { background: var(--bg-elev-2); border-color: var(--text-dim); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ----- Section scaffolding ----- */
section { position: relative; padding: var(--section-y) var(--gutter); }
.container { max-width: var(--content-max); margin: 0 auto; position: relative; z-index: 1; }
.editorial { max-width: var(--editorial-max); margin: 0 auto; }
.section--inset { background: var(--bg-inset); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ----- Interior page header ----- */
.page-head { position: relative; overflow: hidden; padding: 150px var(--gutter) var(--space-7); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: var(--fs-h1); max-width: 20ch; margin-top: 16px; }
.page-head .lede { margin-top: var(--space-5); font-size: clamp(18px, 1.6vw, 21px); color: var(--text-muted); max-width: 62ch; line-height: 1.6; }
.page-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 50% 70% at 20% -10%, rgba(79,70,229,0.09), transparent 60%); }

.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: var(--space-7); }
.section-head::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

/* ----- Footer ----- */
.site-footer { background: var(--bg-inset); border-top: 1px solid var(--hairline); padding: var(--space-9) var(--gutter) var(--space-7); }
.site-footer .row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: var(--space-7); }
.site-footer .brand-row { display: flex; flex-direction: column; gap: 14px; }
.site-footer .brand-row p { color: var(--text-muted); font-size: 15px; max-width: 240px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin: 0 0 16px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color var(--dur); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.site-footer .legal-mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }

/* Content is always visible (no entrance-hide); .fade-up is a hook for
   optional scroll polish to be layered in later without risking hidden content. */

/* ----- Mobile ----- */
@media (max-width: 860px) {
  :root { --gutter: var(--gutter-mobile); }
  section { padding: var(--section-y-sm) var(--gutter); }
  .nav { padding: 14px var(--gutter); }
  .nav .links { gap: 14px; }
  .nav .links a:not(.nav-cta) { display: none; }
  .site-footer .row { grid-template-columns: 1fr 1fr; gap: 30px; }
  .site-footer .brand-row { grid-column: 1 / -1; }
}

/* =========================================================================
   Shared: featured-work rows + product mockups (home + work pages)
   ========================================================================= */
.work-list { display: flex; flex-direction: column; gap: var(--space-10); }
.work-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.work-feature:nth-child(even) .work-visual { order: 2; }
.work-kind { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.work-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.025em; margin: 14px 0 var(--space-3); line-height: 1.15; }
.work-metric { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--space-5); font-size: 16px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.work-metric::before { content: ''; flex: none; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }
.work-block { margin-bottom: var(--space-5); }
.work-block .lbl { display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 8px; }
.work-block p { font-size: 16.5px; line-height: 1.7; color: var(--text-muted); }
.work-block.solution .lbl { color: var(--accent); }
.work-block.solution p { color: var(--text); }
.work-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.work-stack span { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding: 5px 11px; border: 1px solid var(--hairline); border-radius: var(--r-pill); }
.work-foot { margin-top: var(--space-9); display: flex; }

/* ----- Shared closing CTA panel (inverted ink — premium accent block) ----- */
.cta-band { padding-top: var(--space-9); padding-bottom: var(--space-10); }
.cta-panel { position: relative; overflow: hidden; background: #0B1220; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: var(--space-9) var(--space-7); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); color: #FFFFFF; box-shadow: var(--shadow-lift); }
.cta-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 60% 90% at 50% 130%, rgba(129,140,248,0.30), transparent 62%); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 20ch; color: #FFFFFF; }
.cta-panel .eyebrow { color: rgba(255,255,255,0.62); }
.cta-panel .eyebrow .num { color: var(--accent-lift); }
.cta-panel .reassure { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 0.03em; }

.mock { border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-elev-1); box-shadow: var(--shadow-card); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-elev-2); border-bottom: 1px solid var(--hairline); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-strong); }
.mock-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); background: var(--bg); padding: 4px 12px; border-radius: var(--r-pill); }
.mock-body { min-height: 248px; }
.m-dash { display: flex; gap: 16px; padding: 16px; }
.m-side { width: 44px; display: flex; flex-direction: column; gap: 11px; padding-right: 16px; border-right: 1px solid var(--hairline); }
.m-logo { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); }
.m-nav { height: 7px; border-radius: 4px; background: var(--hairline-strong); }
.m-nav.on { background: var(--accent-soft); }
.m-main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-kpi { background: var(--bg-elev-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 11px; display: flex; flex-direction: column; gap: 7px; }
.m-kpi i { width: 42%; height: 5px; border-radius: 3px; background: var(--text-dim); opacity: 0.6; }
.m-kpi b { width: 66%; height: 11px; border-radius: 3px; background: var(--text); opacity: 0.8; }
.m-chart { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding: 12px; background: var(--bg-elev-2); border: 1px solid var(--hairline); border-radius: 8px; min-height: 96px; }
.m-chart span { flex: 1; background: var(--hairline-strong); border-radius: 4px 4px 0 0; }
.m-chart span.hi { background: var(--accent); }
.m-table { display: flex; flex-direction: column; gap: 7px; }
.m-table span { height: 8px; border-radius: 3px; background: var(--hairline); }
.m-table span:nth-child(2) { width: 88%; } .m-table span:nth-child(3) { width: 94%; } .m-table span:nth-child(4) { width: 82%; }
.m-studio { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m-prompt { display: flex; gap: 10px; }
.m-input { flex: 1; height: 34px; border-radius: 8px; background: var(--bg-elev-2); border: 1px solid var(--hairline); }
.m-go { display: inline-flex; align-items: center; padding: 0 16px; height: 34px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-family: var(--font-sans); font-size: 12px; font-weight: 500; }
.m-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 10px; min-height: 150px; }
.m-grid span { border-radius: 8px; border: 1px solid var(--hairline); }
.m-grid .g1 { background: linear-gradient(135deg, #4F46E5, #3B2E8F); }
.m-grid .g2 { background: linear-gradient(135deg, #8B5CF6, #4C2A6E); }
.m-grid .g3 { background: linear-gradient(135deg, #1E293B, #0F172A); }
.m-grid .g4 { background: linear-gradient(135deg, #0EA5A0, #134E4A); }
.m-grid .g5 { background: linear-gradient(135deg, #4F46E5, #1E293B); }
.m-grid .g6 { background: linear-gradient(135deg, #475569, #1E293B); }
.m-grid .sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-auth { padding: 22px; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; }
.m-card { width: 72%; background: var(--bg-elev-2); border: 1px solid var(--hairline); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 13px; align-items: center; }
.m-title { width: 56%; height: 11px; border-radius: 3px; background: var(--text); opacity: 0.8; }
.m-field { width: 100%; height: 32px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hairline); }
.m-otp { display: flex; gap: 8px; }
.m-otp i { width: 28px; height: 34px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hairline-strong); }
.m-otp i:first-child { border-color: var(--accent); }
.m-btn { width: 100%; height: 32px; border-radius: 8px; background: var(--accent); }
.m-apps { display: flex; gap: 10px; }
.m-apps span { width: 50px; height: 30px; border-radius: 7px; background: var(--bg-elev-2); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; }
.m-apps i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.m-apps i.ok { background: #34D399; }
/* inbox */
.m-inbox { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.m-mail { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: center; padding: 11px 12px; background: var(--bg-elev-2); border: 1px solid var(--hairline); border-radius: 8px; grid-template-areas: 'tag a' 'tag b'; }
.m-mail.sel { border-color: var(--accent-line); }
.m-mail .tag { grid-area: tag; width: 4px; height: 28px; border-radius: 3px; }
.m-mail .tag.t1 { background: var(--accent); } .m-mail .tag.t2 { background: #34D399; } .m-mail .tag.t3 { background: #F59E0B; } .m-mail .tag.t4 { background: #475569; }
.m-mail .ln { height: 7px; border-radius: 3px; background: var(--hairline-strong); }
.m-mail .ln.w90 { width: 90%; } .m-mail .ln.w95 { width: 95%; } .m-mail .ln.w85 { width: 85%; } .m-mail .ln.w80 { width: 80%; } .m-mail .ln.w70 { width: 70%; } .m-mail .ln.w60 { width: 60%; opacity: 0.6; } .m-mail .ln.w55 { width: 55%; opacity: 0.6; } .m-mail .ln.w50 { width: 50%; opacity: 0.6; } .m-mail .ln.w40 { width: 40%; opacity: 0.6; }
/* wizard */
.m-wizard { padding: 18px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.m-steps { display: flex; align-items: center; gap: 10px; }
.m-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--hairline-strong); }
.m-steps i.on { background: var(--accent); }
.m-form { display: flex; flex-direction: column; gap: 12px; }
.m-form .fld { height: 34px; border-radius: 8px; background: var(--bg-elev-2); border: 1px solid var(--hairline); }
.m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-btn2 { height: 36px; width: 130px; border-radius: 8px; background: var(--accent); }

@media (max-width: 980px) {
  .work-feature { grid-template-columns: 1fr; gap: 32px; }
  .work-feature:nth-child(even) .work-visual { order: 0; }
  .work-list { gap: var(--space-9); }
}
