/* ==========================================================================
   ZHIZHULI DIGITAL PLATFORM - DESIGN SYSTEM & STYLESHEET (v3.0)
   ========================================================================== */

:root {
  /* Color Palette */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --primary-600: #1d4ed8;
  --primary-500: #2563eb;
  --primary-400: #60a5fa;
  --primary-100: #dbeafe;
  --primary-50:  #eff6ff;

  --purple-600:  #7c3aed;
  --purple-500:  #8b5cf6;
  --purple-100:  #ede9fe;
  --purple-50:   #f5f3ff;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --header-h: 74px;

  /* Typography & Easing */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Setup */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  padding: 12px 20px; background: var(--primary-600); color: #fff;
  border-radius: 8px; font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Section Shared Utilities */
.section { padding: 100px 0; position: relative; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary-600);
  background: var(--primary-50); border: 1px solid var(--primary-100); margin-bottom: 14px;
}
.section-badge.badge-light {
  color: #60a5fa; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2);
}

.section-heading h2 {
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; color: var(--slate-900);
  line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-heading p.section-desc, .section-heading > p {
  font-size: 16px; color: var(--slate-500); max-width: 580px;
}
.section-heading.centered { text-align: center; }
.section-heading.centered p { margin-inline: auto; }

/* Global Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .22s var(--ease-out-smooth); text-decoration: none;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.button:hover svg { transform: translateX(3px); }

.button-primary {
  color: #ffffff; background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.button-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38); transform: translateY(-2px);
}

.button-secondary {
  color: var(--slate-700); background: var(--slate-50); border: 1px solid var(--slate-200);
}
.button-secondary:hover {
  color: var(--slate-900); background: #ffffff; border-color: var(--slate-300);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); transform: translateY(-2px);
}

.button-white {
  color: var(--slate-900); background: #ffffff; border: 1px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.button-white:hover {
  background: #f8fafc; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.button-outline-light {
  color: #ffffff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px);
}


/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  height: var(--header-h); background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  transition: all .25s var(--ease-out-smooth);
}
.site-header.is-scrolled {
  --header-h: 66px; background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); border-color: var(--slate-200);
}

.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; transition: opacity .2s ease; }
.brand:hover { opacity: .88; }
.brand img { width: 172px; height: auto; transition: width .25s ease; }
.site-header.is-scrolled .brand img { width: 152px; }

.site-nav { display: flex; align-items: center; gap: 32px; font-weight: 500; color: var(--slate-600); }
.site-nav > a:not(.nav-cta) {
  position: relative; padding-block: 16px; transition: color .2s ease;
}
.site-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 16px; height: 2px;
  background: var(--primary-500); border-radius: 2px; opacity: 0;
  transform: translate(-50%, 4px); transition: all .2s var(--ease-out-smooth);
}
.site-nav > a:not(.nav-cta):hover { color: var(--slate-900); }
.site-nav > a:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* Nav Tools CTA & Dropdown */
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 0 16px; color: #1d4ed8; background: rgba(239, 246, 255, .85);
  border: 1px solid #bfdbfe; border-radius: 12px; font: inherit; font-weight: 500;
  cursor: pointer; transition: all .2s ease;
}
.nav-cta:hover {
  color: #1e40af; background: #dbeafe; border-color: #93c5fd;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, .1);
}

.tools-menu { position: relative; }
.tools-trigger { gap: 8px; }
.tools-trigger .trigger-icon {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .24s var(--ease-out-smooth);
}
.tools-menu.is-open .tools-trigger {
  color: #1e40af; background: #dbeafe; border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.tools-menu.is-open .tools-trigger .trigger-icon { transform: rotate(180deg); }

.tools-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 320px; padding: 8px;
  visibility: hidden; opacity: 0; background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(226, 232, 240, .95); border-radius: 16px;
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, .15), 0 6px 16px -4px rgba(15, 23, 42, .05);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity .2s ease, transform .22s var(--ease-out-smooth), visibility 0s linear .22s; z-index: 100;
}
.tools-menu.is-open .tools-dropdown {
  visibility: visible; opacity: 1; transform: translateY(0) scale(1); transition-delay: 0s;
}

.tools-dropdown-header {
  padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--slate-400); text-transform: uppercase; border-bottom: 1px solid var(--slate-100); margin-bottom: 4px;
}
.tools-dropdown-list { display: flex; flex-direction: column; gap: 2px; }

.tools-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; background: transparent; transition: background-color .18s ease;
}
.tools-item:hover, .tools-item:focus-visible { background: var(--slate-50); }

.tools-item-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; transition: transform .2s ease;
}
.tools-item:hover .tools-item-icon { transform: scale(1.05); }
.tools-item-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-erp { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; }
.icon-erp svg { stroke: #2563eb; }

.icon-poster { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border: 1px solid #ddd6fe; }
.icon-poster svg { stroke: #7c3aed; }

.icon-receipt { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0; }
.icon-receipt svg { stroke: #059669; }

.tools-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tools-item-title { display: flex; align-items: center; gap: 6px; }
.tools-item-title strong { color: var(--slate-900); font-size: 14px; font-weight: 600; transition: color .18s ease; }
.tools-item:hover .tools-item-title strong { color: var(--primary-600); }

.tools-badge { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 99px; background: #dbeafe; color: #1e40af; line-height: 1.4; }
.tools-item-desc { color: var(--slate-500); font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tools-item-arrow {
  flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: var(--slate-400); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-6px); transition: all .18s ease;
}
.tools-item:hover .tools-item-arrow { opacity: 1; transform: translateX(0); stroke: var(--primary-600); }

.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--slate-800); transition: all .2s ease; }


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: 72px;
  background: radial-gradient(60% 80% at 50% 0%, #f0f7ff 0%, #ffffff 100%);
  overflow: hidden; border-bottom: 1px solid var(--slate-200);
}

.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-img {
  position: absolute; inset: -20% -10%; opacity: .25; pointer-events: none;
  transform: translateY(var(--hero-parallax-y, 0px));
  will-change: transform;
}
.hero-bg-img img { width: 100%; height: 140%; object-fit: cover; filter: contrast(1.15) saturate(1.15); }
.hero-white-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .62) 76%, #fff 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .4; }
.glow-1 { width: 500px; height: 500px; background: var(--primary-400); top: -100px; right: -50px; }
.glow-2 { width: 450px; height: 450px; background: #a7f3d0; bottom: -50px; left: -100px; }

.hero-container { position: relative; z-index: 2; }
.hero-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; margin-bottom: 64px; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 10px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--primary-100);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06); font-size: 12px; font-weight: 600;
  color: var(--primary-600); margin-bottom: 24px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.pill-tag { padding: 1px 6px; border-radius: 4px; background: var(--primary-100); color: var(--primary-600); font-size: 11px; }

.hero-copy h1 {
  font-size: clamp(38px, 4.4vw, 56px); font-weight: 800; color: var(--slate-900);
  line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-600) 0%, #3b82f6 50%, var(--emerald-600) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 18px; font-weight: 600; color: var(--slate-700); margin-bottom: 12px; }
.hero-description { font-size: 16px; color: var(--slate-500); line-height: 1.65; max-width: 520px; margin-bottom: 32px; }

.hero-actions { display: flex; align-items: center; gap: 16px; }

/* Hero Visual & Dashboard Card */
.hero-visual { position: relative; }
.dashboard-card {
  background: #ffffff; border: 1px solid var(--slate-200); border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.16), 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 20px; position: relative; z-index: 2; transition: transform .3s ease;
}
.dashboard-card:hover { transform: translateY(-4px); }

.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--slate-100); margin-bottom: 16px;
}
.dashboard-dots { display: flex; gap: 6px; }
.dashboard-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-dots span:nth-child(1) { background: #ef4444; }
.dashboard-dots span:nth-child(2) { background: #f59e0b; }
.dashboard-dots span:nth-child(3) { background: #10b981; }

.dashboard-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--slate-700); }
.dashboard-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--emerald-600); }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }

.dashboard-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.metric-box {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 12px; padding: 14px;
}
.metric-label { font-size: 12px; color: var(--slate-500); display: block; margin-bottom: 4px; }
.metric-value { font-size: 24px; font-weight: 800; color: var(--slate-900); display: flex; align-items: baseline; gap: 4px; }
.metric-value small { font-size: 13px; font-weight: 500; color: var(--slate-500); }
.metric-trend { font-size: 11px; font-weight: 600; color: var(--slate-500); margin-top: 2px; display: block; }
.metric-trend.positive { color: var(--emerald-600); }

.dashboard-stream { display: flex; flex-direction: column; gap: 8px; }
.stream-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(248, 250, 252, 0.8); border: 1px solid var(--slate-100);
}
.stream-icon {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.stream-icon svg { width: 16px; height: 16px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.stream-icon.icon-blue { background: var(--primary-100); } .stream-icon.icon-blue svg { stroke: var(--primary-600); }
.stream-icon.icon-purple { background: var(--purple-100); } .stream-icon.icon-purple svg { stroke: var(--purple-600); }
.stream-icon.icon-emerald { background: var(--emerald-100); } .stream-icon.icon-emerald svg { stroke: var(--emerald-600); }

.stream-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stream-text strong { font-size: 13px; font-weight: 600; color: var(--slate-800); }
.stream-text span { font-size: 11px; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-item time { font-size: 11px; color: var(--slate-400); flex-shrink: 0; }

.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--slate-200); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 13px; font-weight: 600; color: var(--slate-800); backdrop-filter: blur(12px);
  animation: float-around 4s ease-in-out infinite alternate;
}
.badge-top { top: -18px; right: -18px; }
.badge-bottom { bottom: -20px; left: -20px; animation-delay: -2s; }

@keyframes float-around {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Stats Counter Bar */
.hero-stats {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center;
  padding: 24px 32px; background: #ffffff; border: 1px solid var(--slate-200);
  border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 26px; font-weight: 800; color: var(--primary-600); line-height: 1.2; }
.stat-item span { font-size: 13px; color: var(--slate-500); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--slate-200); }


/* ==========================================================================
   ABOUT / BRAND INTRO SECTION
   ========================================================================== */
.intro-section { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.intro-cards { display: flex; flex-direction: column; gap: 16px; }
.principle-card {
  display: flex; gap: 20px; padding: 24px; background: #ffffff; border: 1px solid var(--slate-200);
  border-radius: 16px; transition: all .22s var(--ease-out-smooth); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.principle-card:hover {
  border-color: var(--primary-400); transform: translateX(6px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card-content h3 { font-size: 18px; font-weight: 700; color: var(--slate-900); margin-bottom: 4px; }
.card-content p { font-size: 14px; color: var(--slate-500); line-height: 1.55; }


/* ==========================================================================
   PARALLAX SHOWCASE BANNER
   ========================================================================== */
.parallax-showcase {
  position: relative; padding: 120px 0; overflow: hidden; color: #ffffff;
  background: var(--slate-900); border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.parallax-bg {
  position: absolute; inset: -30% 0; pointer-events: none; z-index: 1;
  transform: translateY(var(--parallax-offset-y, 0px));
  will-change: transform;
}
.parallax-bg img { width: 100%; height: 160%; object-fit: cover; filter: brightness(0.68) contrast(1.15); }
.parallax-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.parallax-container { position: relative; z-index: 2; display: flex; justify-content: center; }
.parallax-card {
  max-width: 820px; width: 100%; padding: 52px 40px; text-align: center;
  background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px; backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.parallax-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px;
  background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 13px; font-weight: 600; color: #34d399; margin-bottom: 20px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }

.parallax-card h2 {
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; color: #ffffff;
  line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 16px;
}
.parallax-card p {
  font-size: 16px; color: var(--slate-300); line-height: 1.65; max-width: 640px;
  margin-inline: auto; margin-bottom: 36px;
}

.parallax-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 32px;
}
.parallax-metrics strong { display: block; font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.parallax-metrics span { font-size: 13px; color: var(--slate-400); font-weight: 500; }


/* ==========================================================================
   PRODUCTS SECTION - BENTO GRID
   ========================================================================== */
.products-section { background: #ffffff; }

.bento-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: auto auto;
  gap: 24px; margin-top: 48px;
}

.bento-card {
  position: relative; background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: 24px; padding: 36px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden; transition: all .25s var(--ease-out-smooth);
}
.bento-card:hover {
  border-color: var(--slate-300); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08); transform: translateY(-4px);
}

.bento-main {
  grid-row: 1 / span 2; background: linear-gradient(145deg, #ffffff, #f0f7ff);
  border: 1px solid #bfdbfe;
}
.bento-main:hover { border-color: var(--primary-400); box-shadow: 0 24px 48px rgba(37, 99, 235, 0.12); }

.bento-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.bento-tags { display: flex; align-items: center; gap: 12px; }
.bento-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .02em; }
.tag-primary { background: var(--primary-100); color: var(--primary-600); }
.tag-purple { background: var(--purple-100); color: var(--purple-600); }
.tag-emerald { background: var(--emerald-100); color: var(--emerald-600); }

.bento-number { font-size: 16px; font-weight: 800; color: var(--slate-400); }

.product-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.product-icon svg { width: 26px; height: 26px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bento-body h3 { font-size: 26px; font-weight: 800; color: var(--slate-900); margin-bottom: 12px; }
.bento-desc { font-size: 15px; color: var(--slate-600); line-height: 1.6; margin-bottom: 24px; }

.feature-checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.feature-checklist li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--slate-700); }
.feature-checklist svg { width: 18px; height: 18px; fill: var(--primary-600); flex-shrink: 0; }

.preview-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.preview-pills span {
  padding: 6px 12px; border-radius: 8px; background: #ffffff; border: 1px solid var(--slate-200);
  font-size: 12px; font-weight: 500; color: var(--slate-600);
}

.link-action {
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700;
  color: var(--primary-600); transition: all .2s ease;
}
.link-action:hover { color: #1e40af; transform: translateX(3px); }


/* ==========================================================================
   NEWS SECTION - TIMELINE
   ========================================================================== */
.news-section { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }

.news-timeline { display: flex; flex-direction: column; gap: 24px; position: relative; padding-left: 24px; }
.news-timeline::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--slate-200);
}

.timeline-item { position: relative; }
.timeline-dot {
  position: absolute; left: -24px; top: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: #ffffff; border: 3px solid var(--primary-500); box-shadow: 0 0 0 4px var(--slate-50);
}

.timeline-card {
  background: #ffffff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 20px 24px;
  transition: all .2s ease; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}
.timeline-card:hover {
  border-color: var(--primary-400); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.timeline-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.timeline-meta time { font-size: 13px; font-weight: 600; color: var(--slate-400); }

.news-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.tag-blue { background: var(--primary-100); color: var(--primary-600); }

.timeline-card h3 { font-size: 17px; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; }
.timeline-card p { font-size: 14px; color: var(--slate-500); }


/* ==========================================================================
   CONTACT CTA SECTION - DARK HERO BANNER
   ========================================================================== */
.contact-section { padding: 80px 0; }

.dark-hero-banner {
  position: relative; background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a8a 100%);
  border-radius: 32px; padding: 64px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; overflow: hidden; box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.3);
}

.banner-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; pointer-events: none; }
.glow-left { width: 350px; height: 350px; background: var(--primary-500); top: -100px; left: -100px; }
.glow-right { width: 300px; height: 300px; background: var(--emerald-500); bottom: -100px; right: -50px; }

.contact-content { position: relative; z-index: 2; max-width: 580px; color: #ffffff; }
.contact-content h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.contact-content p { font-size: 16px; color: var(--slate-300); }

.contact-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding: 48px 0; background: #ffffff; border-top: 1px solid var(--slate-200); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 140px; }
.footer-brand p { font-size: 13px; color: var(--slate-500); border-left: 1px solid var(--slate-200); padding-left: 16px; }

.footer-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--slate-600); }
.footer-links a:hover { color: var(--primary-600); }

.copyright { font-size: 13px; color: var(--slate-400); }
.copyright a { color: inherit; text-decoration: underline; }


/* ==========================================================================
   PAPER CRAFT VISUAL DIRECTION (v4.0)
   ========================================================================== */
main { display: flex; flex-direction: column; }
main > .hero { order: 1; }
main > .products-section { order: 2; }
main > .intro-section { order: 3; }
main > .parallax-showcase { order: 4; }
main > .news-section { order: 5; }
main > .contact-section { order: 6; }

.hero {
  min-height: clamp(720px, 82svh, 800px);
  padding-top: calc(var(--header-h) + 82px);
  padding-bottom: 92px;
  isolation: isolate;
  border-bottom: 0;
  background-color: #f8fafc;
  background-image: url("/assets/paper-fiber-texture-v1.png");
  background-size: 760px 760px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 0 48%;
  z-index: 0;
  background: rgba(239, 246, 255, .52);
  border-left: 1px solid rgba(255, 255, 255, .78);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 4% 78%, 1% 57%, 6% 34%);
}
.hero-bg-img {
  inset: var(--header-h) 0 0 49%;
  opacity: .92;
  overflow: hidden;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 5% 77%, 1% 55%, 7% 31%);
}
.hero-bg-img img {
  height: 115%;
  object-position: 58% center;
  filter: contrast(1.03) saturate(.92) brightness(1.03);
}
.hero-white-gradient {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 39%, rgba(255,255,255,.76) 55%, rgba(255,255,255,.08) 78%),
    linear-gradient(180deg, rgba(255,255,255,.18) 44%, rgba(239,246,255,.34) 100%);
}
.hero-glow { opacity: .24; }
.glow-1 { width: 360px; height: 360px; top: 8%; right: 32%; background: #bfdbfe; }
.glow-2 { width: 420px; height: 420px; left: 38%; bottom: -16%; background: #99f6e4; }
.paper-imprint {
  position: absolute;
  inset: 14% auto auto 2%;
  width: 48%;
  height: 58%;
  opacity: .16;
  background-image: url("/assets/paper-fiber-texture-v1.png");
  background-size: 520px;
  mix-blend-mode: multiply;
  transform: rotate(-2deg);
  border-radius: 48% 52% 44% 56%;
}
.hero-container { z-index: 3; }
.hero-layout {
  grid-template-columns: .94fr 1.06fr;
  gap: 56px;
  margin-bottom: 56px;
}
.hero-copy { padding-top: 6px; }
.hero-pill {
  border-color: rgba(191, 219, 254, .85);
  background: rgba(255,255,255,.78);
  box-shadow: 0 5px 18px rgba(30, 64, 175, .08);
  backdrop-filter: blur(10px);
}
.hero-copy h1 { font-size: clamp(42px, 4.3vw, 62px); line-height: 1.15; }
.hero-description { color: var(--slate-600); }
.button { border-radius: 10px; }
.button-secondary { background: rgba(255,255,255,.78); border-color: #bfdbfe; }
.hero-visual {
  padding: 28px 10px 0 32px;
  perspective: 1000px;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 28px;
  top: 11px;
  bottom: 16px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 22px;
  background: rgba(219,234,254,.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  transform: rotate(-1.8deg) translateY(-9px);
}
.hero-visual::after {
  left: 25px;
  right: 14px;
  top: 19px;
  bottom: 7px;
  background: rgba(255,255,255,.22);
  transform: rotate(1.2deg) translateY(-3px);
}
.dashboard-card {
  border-color: rgba(255,255,255,.84);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 28px 64px -18px rgba(15,23,42,.26), inset 0 1px 0 rgba(255,255,255,.94);
}
.dashboard-card::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -17px;
  width: 150px;
  height: 28px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.82);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(219,234,254,.58);
}
.dashboard-card:hover { transform: translateY(-3px) rotateX(.5deg); }
.dashboard-header { border-bottom-color: rgba(203,213,225,.58); }
.dashboard-dots { display: none; }
.metric-box,
.stream-item {
  background: rgba(255,255,255,.55);
  border-color: rgba(203,213,225,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.float-badge { display: none; }
.hero-stats {
  position: relative;
  z-index: 4;
  padding: 25px 34px;
  isolation: isolate;
  border: 0;
  border-radius: 4px;
  background-color: rgba(255,255,255,.94);
  background-image: url("/assets/paper-fiber-texture-v1.png");
  background-size: 620px;
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 32px -18px rgba(15,23,42,.18);
}
.hero-stats::before,
.hero-stats::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  height: 30px;
  z-index: 0;
  background: url("/assets/torn-paper-edge-v1.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  opacity: .55;
}
.hero-stats > * { position: relative; z-index: 1; }
.hero-stats::before {
  top: -22px;
  transform: rotate(180deg);
  filter: drop-shadow(0 2px 3px rgba(15,23,42,.04));
}
.hero-stats::after {
  bottom: -22px;
  filter: drop-shadow(0 3px 4px rgba(15,23,42,.04));
}
.paper-tear {
  position: absolute;
  left: -1%;
  right: -1%;
  z-index: 5;
  height: 64px;
  background: url("/assets/torn-paper-edge-v1.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  opacity: .45;
}
.paper-tear-top {
  top: calc(var(--header-h) - 26px);
  left: -1%;
  right: 48%;
  height: 58px;
  z-index: 2;
  filter: drop-shadow(0 3px 4px rgba(15,23,42,.04));
}
.paper-tear-bottom {
  display: none;
}
.intro-section {
  padding-top: 88px;
  background-color: #f8fffd;
  background-image: linear-gradient(rgba(204,251,241,.64), rgba(248,250,252,.82)), url("/assets/paper-fiber-texture-v1.png");
  background-size: auto, 760px;
  border-bottom: 0;
}
.intro-section .split-layout { align-items: center; }
.intro-section .section-heading { max-width: 460px; }
.brand-highlight {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-left: 3px solid var(--primary-500);
  border-radius: 0 12px 12px 0;
  background-color: rgba(255, 255, 255, .72);
  background-image: url("/assets/paper-fiber-texture-v1.png");
  background-size: 620px;
  box-shadow: 0 10px 28px -20px rgba(15, 23, 42, .36), inset 0 1px 0 #fff;
}
.brand-highlight p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--slate-700);
}
.intro-section .link-action { margin-top: 22px; }
.section-badge { border-radius: 7px 10px 8px 6px; }
.principle-card,
.bento-card,
.timeline-card {
  background-image: url("/assets/paper-fiber-texture-v1.png");
  background-size: 620px;
  border-color: rgba(203,213,225,.72);
  box-shadow: 0 10px 28px -20px rgba(15,23,42,.36), inset 0 1px 0 #fff;
}
.principle-card:nth-child(2) { transform: translateX(12px) rotate(.35deg); }
.principle-card:nth-child(3) { transform: translateX(3px) rotate(-.25deg); }
.principle-card:hover { transform: translateX(8px) rotate(0); }
.products-section {
  padding-top: 86px;
  background-color: #effdfa;
  background-image: linear-gradient(rgba(204,251,241,.58), rgba(248,250,252,.72)), url("/assets/paper-fiber-texture-v1.png");
  background-size: auto, 760px;
}
.products-section .section-heading { text-align: left; }
.products-section .section-heading p { margin-inline: 0; }
.bento-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  margin-top: 34px;
}
.bento-main { grid-row: auto; }
.bento-card { min-height: 420px; padding: 28px; }
.bento-body h3 { font-size: 23px; }
.bento-head { margin-bottom: 20px; }
.feature-checklist { margin-bottom: 24px; }
.preview-pills { margin-bottom: 18px; }

@media (min-width: 1025px) {
  .hero-layout { transform: translateY(-6px); }
  .dashboard-card { min-height: 430px; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .bento-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento-main { grid-row: auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
  .stat-divider { display: none; }
  .dark-hero-banner { flex-direction: column; text-align: center; padding: 48px 32px; }
  .contact-actions { justify-content: center; width: 100%; }
  .hero { min-height: auto; }
  .hero::before { inset-inline-start: 32%; }
  .hero-bg-img { inset-inline-start: 34%; opacity: .48; }
  .hero-layout { gap: 72px; }
  .hero-visual { width: min(680px, 100%); margin-inline: auto; }
  .bento-card { min-height: 0; padding: 24px; }
  .bento-body h3 { font-size: 21px; }
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 16px; right: 16px; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px;
    background: #ffffff; border: 1px solid var(--slate-200); border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.nav-cta) { padding: 12px; }
  .menu-toggle { display: block; }

  .tools-dropdown { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-color: var(--slate-200); }
  .tools-menu.is-open .tools-dropdown { display: block; }
  .tools-item-arrow { opacity: 1; transform: none; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .button { width: 100%; }

  .float-badge { display: none; }
  .hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 38px;
    background-size: 520px;
  }
  .hero::before { inset: 39% 0 0 0; clip-path: none; background: rgba(219,234,254,.28); }
  .hero-bg-img {
    inset: 39% 0 0;
    opacity: .72;
    clip-path: polygon(0 8%, 16% 3%, 30% 9%, 48% 2%, 65% 8%, 83% 1%, 100% 7%, 100% 100%, 0 100%);
  }
  .hero-bg-img img { object-position: 61% center; filter: contrast(1.05) saturate(.9) brightness(1.04); }
  .hero-white-gradient {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.97) 36%, rgba(255,255,255,.42) 53%, rgba(239,246,255,.14) 100%);
  }
  .paper-tear-top { top: calc(var(--header-h) - 42px); right: -2%; height: 102px; opacity: .98; }
  .paper-imprint { display: none; }
  .hero-layout { gap: 34px; margin-bottom: 34px; }
  .hero-pill { margin-bottom: 16px; }
  .hero-copy h1 { font-size: clamp(37px, 9.6vw, 46px); margin-bottom: 12px; }
  .hero-subtitle { font-size: 16px; margin-bottom: 8px; }
  .hero-description { font-size: 15px; margin-bottom: 22px; }
  .hero-visual { padding: 20px 2px 0 8px; }
  .hero-visual::before { left: 0; right: 12px; }
  .hero-visual::after { left: 10px; right: 0; }
  .dashboard-card { padding: 16px; background: rgba(255,255,255,.88); }
  .dashboard-title { font-size: 12px; }
  .dashboard-status { font-size: 11px; }
  .hero-stats { padding: 22px 16px; border-radius: 3px; }
  .hero-stats::before,
  .hero-stats::after { height: 22px; }
  .hero-stats::before { top: -16px; }
  .hero-stats::after { bottom: -16px; }
  .products-section { padding-top: 74px; }
  .products-section .section-heading { text-align: left; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { min-height: 0; }
  .intro-section { padding-top: 76px; }
  .principle-card:nth-child(2),
  .principle-card:nth-child(3) { transform: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { flex-direction: column; gap: 8px; }
  .footer-brand p { border-left: 0; padding-left: 0; }
}

@media (min-width: 480px) and (max-width: 768px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .button { width: auto; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img,
  .parallax-bg {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 768px) {
  .hero-bg-img {
    transform: none !important;
    will-change: auto;
  }
  .parallax-bg {
    transform: none !important;
    will-change: auto;
  }
}


/* ==========================================================================
   MOTION & PRESENCE UPGRADE (v5.0)
   ========================================================================== */

/* Scroll-triggered reveal (JS adds .is-revealed; WAAPI handles the motion) */
.js [data-reveal]:not(.is-revealed) { opacity: 0; }

/* Breathing aurora glows */
.hero-glow { animation: glow-breathe 11s ease-in-out infinite; will-change: transform, opacity; }
.glow-2 { animation-duration: 14s; animation-delay: -6s; }
@keyframes glow-breathe {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .24; }
  50% { transform: translate(-6%, -5%) scale(1.14); opacity: .42; }
}

/* Floating paper-fiber particles */
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-particles span {
  position: absolute; bottom: -12px; border-radius: 50%;
  animation: particle-rise linear infinite;
  will-change: transform, opacity;
}
@keyframes particle-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .7; }
  85% { opacity: .3; }
  100% { transform: translate3d(var(--drift, 0px), -108vh, 0); opacity: 0; }
}

/* Live status pulse */
.status-pulse { animation: status-pulse 2.2s ease-out infinite; }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Dashboard live stream ticker */
.dashboard-stream { display: block; overflow: hidden; }
.stream-track {
  display: flex; flex-direction: column; gap: 8px;
  animation: stream-scroll var(--stream-duration, 11s) linear infinite;
  will-change: transform;
}
.stream-track:hover { animation-play-state: paused; }
@keyframes stream-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--stream-shift, 0px))); }
}

/* Bento spotlight hover */
[data-spotlight] { position: relative; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .10), transparent 46%);
}
[data-spotlight]:hover::after { opacity: 1; }
[data-spotlight] > * { position: relative; z-index: 1; }

/* Button shine sweep */
.button-primary, .button-white { position: relative; overflow: hidden; }
.button-primary::after, .button-white::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  pointer-events: none; transform: skewX(-20deg);
}
.button-primary::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); }
.button-white::after { background: linear-gradient(100deg, transparent, rgba(15, 23, 42, .07), transparent); }
.button-primary:hover::after, .button-white:hover::after { animation: btn-shine .85s var(--ease-out-smooth); }
@keyframes btn-shine { to { left: 140%; } }

/* Gradient headline shimmer */
.gradient-text {
  background-size: 200% auto;
  animation: gradient-pan 6.5s ease-in-out infinite alternate;
}
@keyframes gradient-pan {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.is-revealed) { opacity: 1; }
  .hero-glow,
  .hero-particles span,
  .status-pulse,
  .stream-track,
  .gradient-text { animation: none !important; }
}
