/* =====================================================================
   Digital Krish — Design System
   Blueprint-precision aesthetic: white "paper", black "line-work",
   red "annotation" accent — drawn from the brand logo's arc motif.
   ===================================================================== */

:root {
  --ink: #0A0A0A;
  --ink-soft: #2A2A2A;
  --red: #EC1B05;
  --red-dim: #c91802;
  --paper: #FFFFFF;
  --paper-warm: #FAFAF9;
  --gray: #6B6B6B;
  --hairline: #E5E5E5;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 4px 0; color: var(--ink-soft); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--red); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--red); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(236,27,5,0.25); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  overflow: hidden;
}
.hero-arc-field {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-arc-field svg { width: 900px; max-width: 140vw; height: auto; opacity: 0.9; }
.arc-path {
  fill: none; stroke-linecap: round;
}
.arc-black { stroke: var(--ink); stroke-width: 2; }
.arc-red { stroke: var(--red); stroke-width: 3; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(236,27,5,0.25); background: rgba(236,27,5,0.05);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--red); }

.hero p.lead {
  font-size: 18px; color: var(--gray); max-width: 560px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* ---------------- Stats strip ---------------- */
.stats-strip {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 13px; color: var(--gray);
}
.stats-strip strong { color: var(--ink); font-size: 15px; display: block; margin-bottom: 2px; font-family: var(--font-display); }

/* ---------------- Section divider (signature arc reveal) ---------------- */
.section-divider {
  display: flex; align-items: center; gap: 18px; margin: 0 auto 48px;
  max-width: 1180px; padding: 0 24px;
}
.section-divider svg { flex-shrink: 0; }
.section-divider .divider-line {
  fill: none; stroke: var(--hairline); stroke-width: 1.5;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.section-divider.in-view .divider-line { stroke-dashoffset: 0; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray);
  white-space: nowrap;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------------- Sections ---------------- */
section { padding: 90px 0; }
section.alt { background: var(--paper-warm); }

/* ---------------- Product cards ---------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.product-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 28px; position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  transform-style: preserve-3d;
}
.product-card:hover { border-color: var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.product-card .product-thumb {
	width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; display: block; background: var(--paper-warm);
}
.product-card .product-thumb-placeholder {
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--hairline);
	border: 1.5px dashed var(--hairline);
}
.product-card .tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--red); background: rgba(236,27,5,0.07);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 16px;
}
.product-card h3 { font-size: 20px; margin-bottom: 10px; }
.product-card p { color: var(--gray); font-size: 14.5px; margin-bottom: 22px; }
.product-card .price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--hairline); padding-top: 18px;
}
.product-card .price { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.product-card .price span { color: var(--gray); font-weight: 400; font-size: 12px; }

/* ---------------- Process (real sequence -> numbering justified) ---------------- */
.process-list { counter-reset: step; display: grid; gap: 0; }
.process-step {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--hairline);
}
.process-step:last-child { border-bottom: 1px solid var(--hairline); }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 14px; color: var(--red); font-weight: 600;
}
.process-step h4 { font-size: 17px; margin-bottom: 6px; }
.process-step p { color: var(--gray); font-size: 14.5px; margin: 0; max-width: 560px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #ccc; padding: 60px 0 30px; position: relative; overflow: hidden; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 600; }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #888; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #ccc; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid #222; font-size: 13px; color: #777; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- Scroll reveal ---------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------------- Mobile ---------------- */
.mobile-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 62px; left: 0; right: 0; background: var(--paper); flex-direction: column;
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--hairline); transform: translateY(-140%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: block; background: none; border: none; font-size: 22px; cursor: pointer; }
  .hero { padding: 70px 20px 50px; }
  .footer-inner { flex-direction: column; }
  section { padding: 60px 0; }
}

/* ---------------- Mobile-app-like bottom nav ---------------- */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav-inner { display: flex; justify-content: space-around; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--gray); }
.bottom-nav-item.active { color: var(--red); }
.bottom-nav-item .icon { font-size: 18px; }
@media (max-width: 640px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 64px; }
}
