/* ============================================================
   HandData — styles.css
   Dark theme inspired by skild.ai
   ============================================================ */

/* ── Variables ── */
:root {
  --bg:           #080808;
  --surface:      #101010;
  --surface-2:    #181818;
  --accent:       #FF5A1F;
  --accent-dim:   rgba(255, 90, 31, 0.12);
  --accent-glow:  rgba(255, 90, 31, 0.07);
  --text:         #FFFFFF;
  --text-2:       #888888;
  --text-3:       #444444;
  --green:        #4ade80;
  --yellow:       #fbbf24;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --radius:       12px;
  --radius-sm:    6px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ── Typography ── */
h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.accent { color: var(--accent); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 8, 8, 0.82);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--border-hover); }
.lang-option {
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 2px;
  user-select: none;
}
.lang-option.active { color: var(--text); font-weight: 700; }
.lang-divider { opacity: 0.25; }
.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, black 50%, transparent 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 700px at 68% 30%, rgba(255, 90, 31, 0.10), transparent 65%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { display: flex; flex-direction: column; gap: 26px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 90, 31, 0.28);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 460px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Hero Visual ── */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.video-placeholder {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hand-svg {
  width: 220px;
  height: auto;
  animation: hand-breathe 3s ease-in-out infinite;
}
@keyframes hand-breathe {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50%       { opacity: 1;    transform: translateY(-6px); }
}
.tip-pulse {
  animation: tip-blink 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes tip-blink {
  0%, 100% { r: 3; opacity: 1; }
  50%       { r: 5; opacity: 0.5; }
}
.data-overlay {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
}
.data-tag {
  background: rgba(255, 90, 31, 0.14);
  border: 1px solid rgba(255, 90, 31, 0.32);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: 'Consolas', 'Fira Code', monospace;
  letter-spacing: 0.06em;
}
.placeholder-label {
  position: absolute;
  bottom: 18px;
  font-size: 0.7rem;
  color: var(--text-3);
  font-family: monospace;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 90, 31, 0.28);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  transition: border-color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.btn-large { padding: 16px 36px; font-size: 1rem; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.stat-item {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 36px 20px;
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.stat-text { font-size: 2rem; }
.stat-label {
  font-size: 0.72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 24px 0;
}

/* ── Sections ── */
.section { padding: 112px 0; }
.section-dark { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin-bottom: 16px;
}
.accent-tag { color: var(--accent); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 580px;
  margin: 14px auto 0;
  line-height: 1.75;
}

/* ── Comparison Table ── */
.compare-wrap { max-width: 820px; margin: 0 auto; }
.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.compare-header .compare-col {
  padding: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}
.compare-header .col-ours {
  background: var(--accent-dim);
  color: var(--accent);
}
.compare-by { font-weight: 400; opacity: 0.55; }
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: rgba(255,255,255,0.025); }
.compare-feature {
  padding: 15px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}
.compare-col {
  padding: 15px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}
.col-ours { background: rgba(255, 90, 31, 0.04); }
.tag-good { color: var(--green); font-weight: 600; font-size: 0.82rem; }
.tag-bad  { color: var(--text-3); font-weight: 500; }
.tag-mid  { color: var(--yellow); font-weight: 500; font-size: 0.82rem; }

/* ── Process Flow ── */
.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 52px;
}
.process-step {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  letter-spacing: -0.04em;
}
.process-step h3 { font-size: 1rem; }
.process-step p  { font-size: 0.83rem; color: var(--text-2); line-height: 1.65; }
.process-arrow {
  display: flex;
  align-items: flex-start;
  padding: 0 14px;
  padding-top: 48px;
  color: var(--accent);
  font-size: 1.4rem;
  opacity: 0.5;
  flex-shrink: 0;
}
.process-cta { text-align: center; }

/* ── Task Grid ── */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.task-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.task-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.thumb-egg      { background: linear-gradient(135deg, #1c1000, #2e1d00, #180e00); }
.thumb-laundry  { background: linear-gradient(135deg, #001a1f, #002830, #001318); }
.thumb-chopstick{ background: linear-gradient(135deg, #1a0012, #2d0020, #130009); }
.thumb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
}
.thumb-task-id {
  font-size: 0.65rem;
  font-family: 'Consolas', monospace;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.thumb-hint {
  font-size: 0.65rem;
  font-family: 'Consolas', monospace;
  color: var(--text-3);
}
.task-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.task-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-hot {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--yellow);
}
.task-body h3 { font-size: 1.1rem; }
.task-body p  { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; }
.task-meta {
  display: flex;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--text-3);
  align-items: center;
}
.meta-dot { opacity: 0.4; }
.btn-task {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  margin-top: auto;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-task:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Specs Grid ── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.spec-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spec-icon {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}
.spec-card h3 { font-size: 0.92rem; }
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.spec-list li {
  font-size: 0.81rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.spec-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 0.7rem;
  top: 1px;
}

/* ── Code Preview ── */
.code-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 740px;
  margin: 0 auto;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.code-filename {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-left: 10px;
  font-family: 'Consolas', 'Fira Code', monospace;
}
.code-body { padding: 28px; overflow-x: auto; }
.code-body code {
  font-family: 'Consolas', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8rem;
  color: #c8c8c8;
  line-height: 1.8;
  display: block;
  white-space: pre;
}

/* ── Contact ── */
.contact-section {
  background: radial-gradient(ellipse 1100px 600px at 50% 100%, rgba(255, 90, 31, 0.065), transparent 70%);
}
.contact-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.contact-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.contact-email {
  font-size: 0.82rem;
  color: var(--text-3);
  font-family: monospace;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}
.footer-tagline { font-size: 0.8rem; color: var(--text-3); }
.footer-copy    { font-size: 0.78rem; color: var(--text-3); }

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .process-flow { flex-wrap: wrap; gap: 0; }
  .process-step { flex: calc(50% - 24px); min-width: 220px; }
  .process-arrow { display: none; }
  .process-flow .process-step:nth-child(odd)  { margin: 0 12px 20px 0; }
  .process-flow .process-step:nth-child(even) { margin: 0 0 20px 12px; }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  .hero { padding: 100px 0 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .hero-sub   { margin: 0 auto; }
  .hero-ctas  { justify-content: center; }
  .hero-badge { margin: 0 auto; }
  .video-placeholder { max-width: 340px; }

  .section { padding: 80px 0; }
  .stat-divider { display: none; }
  .stats-inner  { flex-wrap: wrap; }
  .stat-item    { flex: 1 1 45%; }

  .task-grid { grid-template-columns: 1fr; }

  .process-flow { flex-direction: column; }
  .process-step { flex: auto; margin: 0 0 16px !important; }

  .specs-grid { grid-template-columns: 1fr; }

  .compare-header,
  .compare-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .compare-feature { padding: 13px 10px; font-size: 0.8rem; }
  .compare-col     { padding: 13px 8px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; }
  .contact-ctas { flex-direction: column; width: 100%; }
  .btn-large { width: 100%; text-align: center; }
  .stat-item { flex: 1 1 100%; }
}
