/* ══════════════════════════════════════════════════════════════
   INVENTARE SOLUTIONS — Editorial Light Design System
   Inspired by Dong Wei portfolio · Adapted for Inventare identity
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --bg-page:      #F5F4F1;
  --bg-section:   #FFFFFF;
  --bg-alt:       #EFEFEC;
  --bg-card:      rgba(0,0,0,0.03);

  --bg-dark:      #0D0D0D;
  --bg-dark-2:    #141418;

  --ink:          #0D0D0D;
  --ink-2:        #5A5A65;
  --ink-3:        #9898A6;

  --ink-inv:      #EDECF0;
  --ink-inv-2:    rgba(237,236,240,0.55);
  --ink-inv-3:    rgba(237,236,240,0.28);

  --indigo:       #4F46E5;
  --indigo-lt:    rgba(79,70,229,0.1);
  --indigo-glow:  rgba(79,70,229,0.25);

  --border:       rgba(0,0,0,0.08);
  --border-dark:  rgba(255,255,255,0.08);

  --sidebar-w:    72px;

  --ease-out:    cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-menu:   cubic-bezier(0.76, 0, 0.24, 1);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--indigo); color: white; }

img { display: block; max-width: 100%; }

/* ── Accessibility ─────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%; left: calc(var(--sidebar-w) + 1rem);
  z-index: 999;
  background: var(--indigo);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════
   SIDEBAR NAV
   ══════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: rgba(8,8,14,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 0 1.5rem;
  z-index: 200;
  transition: transform 0.5s var(--ease-menu), background 0.4s ease, border-color 0.4s ease;
}

.sidebar-divider {
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.sidebar-nav-link {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 0.875rem 0;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.sidebar-nav-link::before {
  content: '';
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--indigo);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: bottom;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active { color: rgba(255,255,255,0.9); }
.sidebar-nav-link:hover::before,
.sidebar-nav-link.active::before { transform: scaleY(1); }

.sidebar-social { color: rgba(255,255,255,0.4); }
.sidebar-social:hover { color: rgba(255,255,255,0.9); transform: translateY(-2px); }

.sidebar-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-shrink: 0;
}

.sidebar-social {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s var(--ease-spring);
}
.sidebar-social svg { width: 15px; height: 15px; fill: currentColor; }
.sidebar-social:hover { color: rgba(255,255,255,0.9); transform: translateY(-2px); }

/* Sidebar — light mode (when scrolled past hero) */
.sidebar.on-light {
  background: rgba(245,244,241,0.88);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(0,0,0,0.08);
}
.sidebar.on-light .sidebar-divider { background: rgba(0,0,0,0.1); }
.sidebar.on-light .sidebar-nav-link { color: rgba(13,13,13,0.45); }
.sidebar.on-light .sidebar-nav-link:hover,
.sidebar.on-light .sidebar-nav-link.active { color: rgba(13,13,13,0.9); }
.sidebar.on-light .sidebar-social { color: rgba(13,13,13,0.35); }
.sidebar.on-light .sidebar-social:hover { color: rgba(13,13,13,0.9); }

/* ── Mobile header ────────────────── */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}
.mobile-logo { display: flex; align-items: center; text-decoration: none; }
.mobile-logo img { height: 24px; width: auto; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease-menu), opacity 0.25s ease;
}
.hamburger.open span { background: var(--ink-inv); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 190;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  color: var(--ink-inv-2); text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--ink-inv); }

/* ══════════════════════════════════════════════════
   PAGE CONTENT
   ══════════════════════════════════════════════════ */
.page-content { margin-left: var(--sidebar-w); }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0A0A12;
}

/* Background image — full cover */
.hero-image {
  position: absolute; inset: 0;
  background: url('assets/hero-image.png') center/cover no-repeat;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,8,14,0.88) 0%,
    rgba(8,8,14,0.55) 38%,
    rgba(8,8,14,0.15) 65%,
    rgba(8,8,14,0.05) 100%
  );
}

/* Logo — top-left of hero */
.hero-logo {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  left: clamp(2rem, 5vw, 4rem);
  z-index: 3;
  text-decoration: none;
}
.hero-logo img {
  height: clamp(28px, 3.5vw, 42px);
  width: auto;
  filter: brightness(0) invert(1);
}

/* Content — left column, vertically centered */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  height: 100%;
  padding: 0 5vw 6rem clamp(3rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Badge */
.hero-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
}

/* Big ghost title */
.hero-big-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(5.5rem, 13vw, 11rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.07);
  margin-bottom: 1.75rem;
  display: block;
  transition: opacity 0.25s ease;
}
.hero-big-title.fade { opacity: 0; transition-duration: 0.15s; }

/* Main text */
.hero-main-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.93);
  margin-bottom: 1.25rem;
  transition: opacity 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main-text.fade { opacity: 0; transition-duration: 0.15s; }
.hero-main-text strong,
.hero-main-text em {
  font-style: italic;
  color: #FFFFFF;
  font-weight: 400;
}

/* Sub text */
.hero-sub-text {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.42);
  max-width: 44ch;
  margin-bottom: 2.5rem;
  transition: opacity 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-sub-text.fade { opacity: 0; transition-duration: 0.15s; }

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  color: #0D0D0D;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}
.hero-cta-primary:hover {
  background: var(--indigo);
  color: #FFFFFF;
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.hero-cta-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}

/* ── Services bar — bottom of hero ── */
.hero-services-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.hero-svc {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  cursor: default;
}
.hero-svc:last-child { border-right: none; }

.hero-svc-line {
  position: absolute;
  top: -1px; left: 0;
  height: 2px;
  width: 0;
  background: #6366F1;
  transition: width 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.hero-svc:hover .hero-svc-line { width: 100%; }

.hero-svc-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--indigo);
  margin-bottom: 0.35rem;
  display: block;
}

.hero-svc-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  display: block;
  transition: color 0.25s ease;
}

.hero-svc:hover .hero-svc-name { color: #fff; }

/* ══════════════════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════════════════ */
.section-white { background: var(--bg-section); color: var(--ink); }
.section-page { background: var(--bg-page); color: var(--ink); }
.section-alt { background: var(--bg-alt); color: var(--ink); }
.section-dark { background: var(--bg-dark); color: var(--ink-inv); }
.section-padding { padding: clamp(5rem, 12vw, 9rem) clamp(2rem, 5vw, 4rem); }

.mini-heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--indigo); }

.section-sub {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 50ch;
}
.section-white .section-sub,
.section-page .section-sub,
.section-alt .section-sub { color: var(--ink-2); }
.section-dark .section-sub { color: var(--ink-inv-2); }

.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }

.action-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease-spring), color 0.2s;
  cursor: pointer;
}
.action-link:hover { gap: 8px; }

/* ══════════════════════════════════════════════════
   ABOUT — split
   ══════════════════════════════════════════════════ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-left {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem);
  border-right: 1px solid var(--border);
}

.about-right {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 50ch;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-lbl {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ══════════════════════════════════════════════════
   SERVICES — light section
   ══════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-block {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--indigo-lt);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}
.service-block:hover .service-icon {
  background: var(--indigo);
  color: white;
  transform: scale(1.05);
}
.service-icon svg { width: 18px; height: 18px; stroke-width: 1.75; fill: none; stroke: currentColor; }

.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.service-block p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════
   PRODUCTS — split cards with iframe preview
   ══════════════════════════════════════════════════ */
.products-grid {
  display: flex;
  flex-direction: column;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.product-card:last-child { border-bottom: none; }

.pr-left {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.product-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.product-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

.pr-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pr-accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.pr-preview {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,0,0,0.07);
  background: #F0F0F8;
  min-height: 220px;
}
.pr-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: absolute;
  inset: 0;
}
.pr-preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #9898A6;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

.pr-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.25s var(--ease-spring), color 0.2s;
}
.pr-cta:hover { gap: 10px; }
.product-cta-arrow { transition: transform 0.25s var(--ease-spring); }
.pr-cta:hover .product-cta-arrow { transform: translateX(3px); }

/* ══════════════════════════════════════════════════
   METHOD — blocks
   ══════════════════════════════════════════════════ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.method-block {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  position: relative;
}
.method-block:last-child { border-right: none; }

.method-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.method-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.method-block p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.method-block::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.method-block:hover::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════
   STACK
   ══════════════════════════════════════════════════ */
.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.stack-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.875rem;
}

.stack-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.85rem;
  cursor: default;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-spring);
}
.stack-tag:hover {
  background: var(--indigo-lt);
  color: var(--indigo);
  border-color: rgba(79,70,229,0.25);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   TESTIMONIAL — light
   ══════════════════════════════════════════════════ */
.testimonial-inner {
  max-width: 720px;
  position: relative;
}

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--indigo);
  opacity: 0.12;
  position: absolute;
  top: -0.5rem; left: -0.5rem;
  user-select: none;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-divider {
  width: 48px; height: 1px;
  background: var(--indigo);
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.testimonial-author { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.testimonial-role { font-size: 0.8rem; color: var(--ink-2); margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════
   TEMPLATES
   ══════════════════════════════════════════════════ */
.template-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-section);
}

.template-card-left {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.template-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-lt);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
}

.template-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.template-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 50ch;
}

.template-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.template-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.template-features li {
  font-size: 0.84rem;
  color: var(--ink-2);
  padding-left: 1.1rem;
  position: relative;
}
.template-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--indigo);
}

.template-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.template-cta-primary {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-full);
  transition: background 0.3s ease;
}
.template-cta-primary:hover { background: var(--indigo); }
.template-cta-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
}
.template-cta-secondary:hover { border-color: var(--ink); color: var(--ink); }

.template-card-right {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
}

.template-pricing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.template-plan {
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-section);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.template-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.template-plan--featured {
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo);
}

.template-plan-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}
.template-plan--featured .template-plan-name { color: var(--indigo); }

.template-plan-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.template-plan-desc {
  font-size: 0.8rem;
  color: var(--ink-2);
}

.template-coming-soon {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: var(--r-md);
  border: 1px dashed var(--border);
  text-align: center;
}
.template-coming-soon p {
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ══════════════════════════════════════════════════
   CONTACT — split 50/50
   ══════════════════════════════════════════════════ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.contact-left {
  background: var(--bg-page);
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
  color: var(--ink);
}
.contact-left .section-title { color: #0D0D0D; }
.contact-left .section-sub { color: #5A5A65; }
.contact-left .mini-heading { color: var(--indigo); }

.contact-right {
  background: var(--bg-page);
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-content: start;
  padding-top: clamp(5rem, 10vw, 8rem);
  color: var(--ink);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9898A6;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #0D0D0D;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 0.75rem 0;
  width: 100%;
  transition: border-color 0.3s ease;
  outline: none;
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9898A6; }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: #4F46E5; }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-submit {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #0D0D0D;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.3s ease, transform 0.2s var(--ease-spring);
  width: fit-content;
}
.form-submit:hover {
  background: #4F46E5;
  transform: translateY(-2px);
}
.form-submit-arrow { transition: transform 0.25s var(--ease-spring); }
.form-submit:hover .form-submit-arrow { transform: translateX(4px); }

.form-status {
  font-size: 0.84rem;
  font-weight: 500;
  min-height: 1.5em;
}
.form-status.success { color: #34D399; }
.form-status.error { color: #F87171; }

.contact-col h5 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.contact-col a {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  cursor: pointer;
}
.contact-col a:hover { color: var(--ink); }
.contact-col p {
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 2rem clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.75rem; color: var(--ink-inv-3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.75rem; color: var(--ink-inv-3);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink-inv); }

/* ══════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.animate-in.visible { opacity: 1; transform: translate3d(0, 0, 0); }

.animate-left {
  opacity: 0;
  transform: translate3d(-60px, 0, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.animate-left.visible { opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { grid-template-columns: 1fr 1fr; }
  .pr-left { border-right: 1px solid var(--border); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-block:nth-child(2n) { border-right: none; }
  .about-split { grid-template-columns: 1fr; }
  .about-left { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-split { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-right { min-height: auto; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .mobile-header { display: flex; }
  .mobile-menu { display: flex; }
  .page-content { margin-left: 0; }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10,10,18,0.6) 0%,
      rgba(10,10,18,0.85) 60%,
      rgba(10,10,18,0.95) 100%
    );
  }
  .hero-logo { top: 1rem; left: 1.5rem; }
  .hero-content { max-width: 100%; padding: 7rem 1.5rem 10rem; min-height: auto; }
  .hero-big-title { font-size: clamp(3.5rem, 14vw, 5rem); }
  .hero-services-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-svc:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,0.08); }

  .template-card { grid-template-columns: 1fr; }
  .template-card-right { border-left: none; border-top: 1px solid var(--border); }
  .template-features { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .pr-left { border-right: none; border-bottom: 1px solid var(--border); }
  .pr-preview { min-height: 180px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-block { border-right: none; border-bottom: 1px solid var(--border); }
  .method-block:last-child { border-bottom: none; }
  .stack-groups { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-right { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; gap: 1rem; }
}
