/* Hallmark · redesign (multi-page, design.md-managed) · genre: modern-minimal (dark security)
 * theme: h00dies DS preserved (ink navy paper · electric-cyan accent · Atkinson Hyperlegible + Pretendard + AH Mono)
 * pass: de-slop (window-dot chrome removed, arrow micro-interaction, editorial Why rows) + craft layer */
/* h00dies landing — page-level styles on top of tokens + components. */

@import url('tokens/fonts.css');
@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('tokens/spacing.css');
@import url('tokens/radius.css');
@import url('tokens/shadows.css');
@import url('tokens/motion.css');
@import url('tokens/base.css');
@import url('components.css');

/* Mockup helmet defaults */
a { color: var(--cyan-400); }
a:hover { color: var(--cyan-200); }

/* Craft layer — typography + tactile details */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[data-count-to] { font-variant-numeric: tabular-nums; }
/* KO wraps at word boundaries (CJK default breaks mid-word); `anywhere` (not break-word)
   so long URLs/tokens also shrink min-content and can't widen 1fr grid tracks */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
.arr { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
a:hover .arr, a:focus-visible .arr { transform: translateX(3px); }
html { scrollbar-color: var(--ink-600) var(--bg-app); }
/* Scoped to the viewport scrollbar only — inner overflow containers keep native styling */
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: var(--bg-app); }
html::-webkit-scrollbar-thumb { background: var(--ink-700); border-radius: 999px; border: 2px solid var(--bg-app); }
html::-webkit-scrollbar-thumb:hover { background: var(--ink-600); }

@keyframes hsweep { to { transform: rotate(360deg); } }
@keyframes hpulse { 0% { opacity: .85; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.9); } }
@keyframes hblink { 50% { opacity: .35; } }
/* Blink via paint opacity so anime.js entrance (inline opacity) isn't overridden */
@keyframes hblinks { 50% { fill-opacity: .25; stroke-opacity: .35; } }
/* Horizontal scan sweep for pinned product mockups (30%-wide bar crossing its container) */
@keyframes hscan { from { transform: translateX(-100%); } to { transform: translateX(433%); } }

/* Reduced motion: ambient CSS loops off too (JS animation is gated separately in main.js) */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Hover states ported from style-hover attributes */
.navlink { color: var(--text-secondary); transition: var(--transition-base); position: relative; }
.navlink:hover { color: var(--text-primary); }
.navlink::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.navlink:hover::after, .navlink:focus-visible::after { transform: scaleX(1); }
.menu-item { transition: var(--transition-base); }
.menu-item:hover { background: var(--surface-2); }
.card-h { transition: border-color var(--dur-base) var(--ease-out); }
.card-h:hover { border-color: var(--border-strong); }
.langbtn { transition: var(--transition-base); }
.langbtn:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--surface-2); }
.flink { color: var(--text-secondary); transition: var(--transition-base); }
.flink:hover { color: var(--text-primary); }
.flink-dim { color: var(--text-tertiary); transition: var(--transition-base); }
.flink-dim:hover { color: var(--text-secondary); }

/* Sticky nav */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ink-1000) 84%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }

/* Mega menu panels — hidden until JS opens them */
.mega { position: absolute; left: 0; right: 0; top: 64px; background: var(--ink-900); border-bottom: 1px solid var(--border-strong); box-shadow: var(--shadow-xl); display: none; }

/* Language picker menu */
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 140px; background: var(--ink-900); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg), var(--edge-top); padding: 5px; display: none; z-index: 60; }
.lang-menu.open { display: block; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 11px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-secondary); transition: var(--transition-base); }
.lang-menu a:hover { background: var(--surface-2); color: var(--text-primary); }
.lang-menu a[aria-current] { color: var(--text-primary); font-weight: 700; }

/* Hero variants — JS reveals one */
[data-hero-variant] { display: none; }
[data-hero-variant].is-active { display: block; }

/* Interactive lift targets get GPU hint */
.lift { will-change: transform; }

/* Scroll-driven product demo (progressive enhancement: static stacked list by default,
   pinned scrolltelling when JS adds .scrolly-on on wide, motion-enabled viewports) */
.scrolly-caps, .scrolly-vis { position: relative; }
.scrolly-layer + .scrolly-layer { margin-top: 18px; }
.scrolly-on .scrolly-track { height: 320vh; }
.scrolly-on .scrolly-track--tall { height: 400vh; } /* 5-step sessions keep per-step scroll distance */
.scrolly-on .scrolly-stage { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
.scrolly-on .scrolly-layer { position: absolute; inset: 0; margin: 0; }
.scrolly-on .scrolly-vis { min-height: 380px; }

/* Basic responsive fallback (full mobile design lives in MobileHome mockup) */
@media (max-width: 960px) {
  .g-hero { grid-template-columns: 1fr !important; }
  .g-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .g-3 { grid-template-columns: 1fr !important; }
  .g-2 { grid-template-columns: 1fr !important; }
  .g-steps { grid-template-columns: 1fr !important; }
  .g-steps .step-arrow { display: none !important; }
  .g-consult { grid-template-columns: 1fr !important; }
  .g-dash { grid-template-columns: 1fr !important; }
  .g-foot { grid-template-columns: repeat(2, 1fr) !important; }
  .nav-links { display: none !important; }
  .hero-headline { font-size: 40px !important; }
}
