/* Cabbit Tech (cabbittech.xyz) — Production Stylesheet */
:root {
  --cb-bg: #FAFAFA;
  --cb-surface: #FFFFFF;
  --cb-subtle: #F2F3F5;
  --cb-ink: #0B0C0E;
  --cb-secondary: #4B5058;
  --cb-muted: #7B818C;
  --cb-border: #E5E7EB;
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #E5E7EB;
  -webkit-font-smoothing: antialiased;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  background-color: var(--cb-bg);
  color: var(--cb-ink);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
  padding: 0;
}

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

button {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

/* Instant Bilingual Toggle Rules */
body[data-lang="en"] .lang-zh {
  display: none !important;
}
body[data-lang="zh"] .lang-en {
  display: none !important;
}

/* Subtle architectural grid background */
.cb-grid-bg {
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, rgba(11, 12, 14, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 12, 14, 0.035) 1px, transparent 1px);
}

.cb-card {
  background: var(--cb-surface);
  border: 1px solid var(--cb-border);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cb-card-hover:hover {
  border-color: #B8BEC8;
  box-shadow: 0 12px 32px -10px rgba(11, 12, 14, 0.07);
}

.mono-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Layout & Positioning */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.sticky { position: sticky; }
.relative { position: relative; }
.top-0 { top: 0px; }
.z-40 { z-index: 40; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.aspect-square { aspect-ratio: 1 / 1; }
.object-contain { object-fit: contain; }
.mix-blend-multiply { mix-blend-mode: multiply; }
.whitespace-nowrap { white-space: nowrap; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Grid Columns & Gaps */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Vertical Spacing (space-y) */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

/* Sizing */
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding & Margin */
.p-0\.5 { padding: 0.125rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-5 { padding-bottom: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }

/* Borders & Radius */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-\[\#E5E7EB\] { border-color: #E5E7EB; }
.border-neutral-100 { border-color: #F5F5F5; }
.border-neutral-200 { border-color: #E5E5E5; }
.border-neutral-200\/70 { border-color: rgba(229, 229, 229, 0.7); }
.border-neutral-200\/80 { border-color: rgba(229, 229, 229, 0.8); }
.border-neutral-200\/90 { border-color: rgba(229, 229, 229, 0.9); }
.border-neutral-300 { border-color: #D4D4D4; }
.border-neutral-700 { border-color: #404040; }
.border-neutral-800 { border-color: #262626; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Backgrounds & Effects */
.bg-white { background-color: #FFFFFF; }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-\[\#FAFAFA\] { background-color: #FAFAFA; }
.bg-\[\#F9F9F7\] { background-color: #F9F9F7; }
.bg-\[\#F7F6F2\] { background-color: #F7F6F2; }
.bg-\[\#0B0C0E\] { background-color: #0B0C0E; }
.bg-neutral-100 { background-color: #F5F5F5; }
.bg-neutral-900 { background-color: #171717; }
.bg-emerald-100 { background-color: #D1FAE5; }
.bg-emerald-600 { background-color: #059669; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04); }
.transition { transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Typography */
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-\[1\.14\] { line-height: 1.14; }
.leading-relaxed { line-height: 1.625; }

/* Text Colors */
.text-white { color: #FFFFFF; }
.text-\[\#0B0C0E\] { color: #0B0C0E; }
.text-\[\#4B5058\] { color: #4B5058; }
.text-neutral-300 { color: #D4D4D4; }
.text-neutral-400 { color: #A3A3A3; }
.text-neutral-500 { color: #737373; }
.text-neutral-600 { color: #525252; }
.text-neutral-700 { color: #404040; }
.text-emerald-800 { color: #065F46; }

/* Hover States */
.hover\:bg-neutral-50:hover { background-color: #FAFAFA; }
.hover\:bg-neutral-800:hover { background-color: #262626; }
.hover\:text-black:hover { color: #000000; }
.hover\:underline:hover { text-decoration: underline; }

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.12; }
}

@media (min-width: 768px) {
  .md\:inline-block { display: inline-block !important; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}
