/* Dot Web Design System — Exact Specification (v5 + tokens) */

/* Peyda Font Family - Complete 9 Weights */
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/Peyda-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/peyda-extralight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/peyda-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/Peyda-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/Peyda-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/Peyda-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/Peyda-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/Peyda-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('../fonts/peyda/Peyda-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1A2B;
  --ink-2: #24324A;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --line: #D9E0EA;
  --line-2: #E8EDF3;
  --mute: #4F5D73;
  --soft: #C9D3E3;
  --tint: #EAF1FF;
  --blue: #1F5BFF;
  --blue-d: #1645C7;
  --blue-l: #E8EFFF;
  --dot: #5AB0FF; /* Light blue accent - strictly NO yellow */
  --ok: #12805C;
  --ok-l: #E3F4EC;
  --err: #C42B2B;
  --err-l: #FDE8E8;
  --warn: #24324A;
  --warn-l: #EAF1FF;
  color-scheme: light;

  /* Typography scale */
  --t-xs: 12px;
  --t-sm: 14px;
  --t-base: 16px;
  --t-md: 18px;
  --t-lg: 22px;
  --t-xl: 28px;
  --t-2xl: clamp(28px, 3.8vw, 44px);
  --t-3xl: clamp(38px, 5.4vw, 70px);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-card: 26px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 10px 40px rgba(31, 91, 255, 0.14);
  --sh-2: 0 20px 50px rgba(14, 26, 43, 0.18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html[data-theme="dark"] {
  --ink: #E8EEFB;
  --ink-2: #C9D3E3;
  --paper: #0A1224;
  --white: #0F1A33;
  --line: #22314F;
  --line-2: #162442;
  --mute: #9DB0D0;
  --soft: #4F5D73;
  --tint: #0D1A3A;
  --blue-l: #16295A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif !important;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0 !important;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select, optgroup, option, label {
  font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif !important;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, figure {
  margin: 0;
  letter-spacing: 0 !important;
  font-family: 'Peyda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif !important;
}
h1, h2, h3 { line-height: 1.4; font-weight: 900; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
section { padding: 88px 0; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: .2s var(--ease);
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.dot:hover { background: #fff; border-color: #fff; color: var(--blue); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 14px; }

/* Titles */
.title { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 42px; flex-wrap: wrap; }
.title h2 { font-size: var(--t-2xl); line-height: 1.5; font-weight: 900; }
.title p { color: var(--mute); max-width: 440px; }

/* Header Glassmorphism Floating */
header#top {
  position: sticky;
  top: 0;
  padding-top: 12px;
  margin-bottom: -76px;
  z-index: 50;
  background: none;
  border: 0;
}
.bar {
  position: relative;
  height: 64px;
  padding: 0 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.40));
  border: 1px solid rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 10px 40px rgba(31, 91, 255, 0.14), inset 0 1px 0 #fff;
  transition: background .3s, box-shadow .3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header#top.sc .bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62));
  box-shadow: 0 14px 44px rgba(14, 26, 43, 0.18), inset 0 1px 0 #fff;
}
.bar:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 14px;
  height: 3px;
  border-radius: 3px;
  width: calc(var(--p, 0%) * .9);
  max-width: calc(100% - 28px);
  background: linear-gradient(90deg, #5AB0FF, #1F5BFF);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--ink); }
.brand svg { width: 24px; height: 32px; color: var(--blue); }
.links { display: flex; gap: 4px; font-size: 15px; font-weight: 500; }
.links a { padding: 6px 14px; border: 0; border-radius: var(--r-pill); transition: background .2s, color .2s; }
.links a:hover, .links a.on { background: rgba(31, 91, 255, 0.12); color: var(--blue); font-weight: 700; }

.bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-portal-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid var(--line);
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-portal-header:hover {
  background: #FFFFFF;
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 91, 255, 0.12);
}
[data-theme="dark"] .btn-portal-header {
  background: rgba(30, 41, 59, 0.65);
  border-color: #334155;
  color: #F1F5F9;
}
[data-theme="dark"] .btn-portal-header:hover {
  background: #1E293B;
  color: var(--dot);
  border-color: var(--blue);
}

.bar .btn.dot, .bar .btn {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(31, 91, 255, 0.28);
}
.bar .btn.dot:hover, .bar .btn:hover {
  background: #3B82F6;
  border-color: #3B82F6;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 91, 255, 0.38);
}
.bar .btn:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: sh 4.5s ease-in-out infinite;
}
@keyframes sh { 60%, 100% { left: 130%; } }

/* Theme toggle */
.tgl {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: transform .3s, background .2s, border-color .2s;
  display: grid;
  place-items: center;
}
.tgl:hover { transform: rotate(25deg); background: #FFFFFF; border-color: var(--blue); }
.tgl:before { content: "☾"; }
html[data-theme="dark"] .tgl {
  background: rgba(30, 41, 59, 0.6);
  border-color: #334155;
  color: #F1F5F9;
}
html[data-theme="dark"] .tgl:before { content: "☀"; }

.mobile-only-link { display: none; }
@media (max-width: 760px) {
  .mobile-only-link { display: block; }
  .btn-portal-header { display: none; }
}

.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}

/* 1 Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
  background: var(--paper);
}
.hero .wrap { position: relative; z-index: 1; }
.hero:before, .hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero:before {
  width: 520px;
  height: 520px;
  top: -170px;
  left: -110px;
  background: radial-gradient(circle, rgba(90, 176, 255, 0.45), transparent 70%);
}
.hero:after {
  width: 460px;
  height: 460px;
  top: 40px;
  right: -130px;
  background: radial-gradient(circle, rgba(31, 91, 255, 0.25), transparent 70%);
}
.hg { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: var(--t-3xl); line-height: 1.4; font-weight: 900; }
.hero p { margin-top: 24px; max-width: 520px; font-size: 18px; color: var(--mute); line-height: 2; }
.act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.tilt {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}
.tk {
  position: absolute;
  font: 700 16px ui-monospace, Menlo, Consolas, monospace;
  color: var(--blue);
  direction: ltr;
  transform: translateZ(var(--z, 40px));
  animation: fy 6s ease-in-out infinite;
  transition: scale .3s;
  z-index: 2;
}
.tilt.hot .tk { scale: 1.3; }
#art { width: 100%; max-width: 340px; margin-inline: auto; display: block; color: var(--ink); }
.in { opacity: 0; transform: translateY(18px); animation: in .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.in:nth-child(2) { animation-delay: .12s; }
.in:nth-child(3) { animation-delay: .24s; }
@keyframes in { to { opacity: 1; transform: none; } }
@keyframes fy { 50% { translate: 0 -10px; } }

/* 2 Marquee Brand Ribbon (Clean Branded Light Style - NOT Black) */
.logos {
  background: #F1F5F9 !important;
  padding: 30px 0 28px;
  border-block: 1px solid #DCE3ED;
  position: relative;
  overflow: hidden;
}
.logos small {
  display: block;
  text-align: center;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.mw {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.mt {
  display: flex;
  align-items: center;
  width: max-content;
  animation: mq 36s linear infinite;
}
.mw:hover .mt { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 48px;
  max-height: 54px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.78;
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}
.brand-item:hover .brand-logo-img {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}
.brand-logo-text {
  font-family: 'Peyda', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0E1A2B;
  letter-spacing: -0.5px;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
}
.brand-item:hover .brand-logo-text {
  opacity: 1;
  color: #1F5BFF;
  transform: scale(1.06);
}
.brand-sep {
  color: #1F5BFF;
  font-size: 18px;
  margin: 0 20px;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.55;
}

[data-theme="dark"] .logos {
  background: #0B1528 !important;
  border-block-color: #1E293B;
}
[data-theme="dark"] .logos small {
  color: #94A3B8;
}
[data-theme="dark"] .brand-logo-text {
  color: #F1F5F9;
}
[data-theme="dark"] .brand-logo-img {
  filter: brightness(0) invert(1);
}
[data-theme="dark"] .brand-sep {
  color: #5AB0FF;
}

/* 3 Services Slider */
.services { background: var(--white); }
.ctl { display: flex; gap: 8px; }
.ctl button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.ctl button:hover { background: var(--ink); color: #fff; }
.track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.sv {
  flex: 0 0 min(290px, 80%);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  background: var(--paper);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s, color .25s;
}
.sv:hover { background: var(--blue); color: #fff; }
.sv i {
  width: 44px;
  height: 44px;
  border: 9px solid var(--blue);
  border-radius: 50%;
  position: relative;
  margin-bottom: 16px;
  flex: none;
}
.sv i:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot);
  right: -22px;
  bottom: -14px;
}
.sv h3 { font-size: 22px; font-weight: 900; }
.sv p { color: var(--mute); font-size: 15px; }
.sv:hover p { color: #E8EFFF; }
.sv small { margin-top: auto; font-size: 14px; color: var(--blue); font-weight: 700; }
.sv:hover small { color: #fff; }

/* 4 Portfolio 3D Browser Stack Carousel (Reference media_1794753943568.png) */
.pj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.pj-more-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue) !important;
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(31, 91, 255, 0.28);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.pj-more-pill:hover {
  background: #3B82F6 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 91, 255, 0.42);
}
.pj-main-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  text-align: center;
  margin: 0;
  flex: 1;
}
.pj-header-spacer {
  width: 90px;
}

.pj-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0 30px;
}
.pj-stage {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr; /* ensure symmetrical math for left/right offsets */
  user-select: none;
}

.browser-card {
  position: absolute;
  width: 380px;
  max-width: 86vw;
  border-radius: 20px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, box-shadow 0.45s ease;
  cursor: pointer;
  overflow: hidden;
  direction: rtl; /* Persian content inside card */
}

/* Browser top window bar */
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  direction: ltr;
}
.mac-dots {
  display: inline-flex;
  gap: 6px;
  order: 2;
}
.mac-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.mac-dots .dot-green { background: #28C840; }
.mac-dots .dot-yellow { background: #FEBC2E; }
.mac-dots .dot-red { background: #FF5F56; }

.browser-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  order: 1;
}

/* Card body content */
.browser-body {
  padding: 24px 22px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.project-title {
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.35;
}
.project-desc {
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 24px;
  min-height: 46px;
}
.project-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
}

/* ACTIVE CENTER CARD (Royal Blue Tech Theme) */
.browser-card.is-active {
  background: linear-gradient(155deg, #0A1C44 0%, #081738 100%) !important;
  border: 1px solid rgba(90, 176, 255, 0.35);
  box-shadow: 0 28px 60px -12px rgba(10, 28, 68, 0.55), 0 0 0 1px rgba(90, 176, 255, 0.2);
  cursor: default;
}
.browser-card.is-active .browser-bar {
  background: rgba(5, 14, 36, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-card.is-active .browser-domain {
  color: #93C5FD;
}
.browser-card.is-active .project-badge {
  background: rgba(90, 176, 255, 0.18);
  color: #93C5FD;
  border: 1px solid rgba(90, 176, 255, 0.35);
}
.browser-card.is-active .project-title {
  color: #FFFFFF;
}
.browser-card.is-active .project-desc {
  color: rgba(255, 255, 255, 0.85);
}
.browser-card.is-active .project-view-btn {
  background: #1F5BFF;
  color: #FFFFFF;
  border: 1px solid #3B82F6;
  box-shadow: 0 4px 14px rgba(31, 91, 255, 0.35);
}
.browser-card.is-active .project-view-btn:hover {
  background: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 91, 255, 0.45);
}

/* INACTIVE FLANKING CARDS */
.browser-card:not(.is-active) {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.browser-card:not(.is-active) .browser-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #EDF2F7;
}
.browser-card:not(.is-active) .browser-domain {
  color: #94A3B8;
}
.browser-card:not(.is-active) .project-badge {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
}
.browser-card:not(.is-active) .project-title {
  color: #1E293B;
}
.browser-card:not(.is-active) .project-desc {
  color: #64748B;
}
.browser-card:not(.is-active) .project-view-btn {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #CBD5E1;
}
.browser-card:not(.is-active) .project-view-btn:hover {
  background: #EFF6FF;
  color: #1F5BFF;
  border-color: #93C5FD;
}

/* Dark mode overrides for inactive cards */
[data-theme="dark"] .browser-card:not(.is-active) {
  background: #0F172A;
  border-color: #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .browser-card:not(.is-active) .browser-bar {
  background: #1E293B;
  border-bottom-color: #334155;
}
[data-theme="dark"] .browser-card:not(.is-active) .browser-domain {
  color: #64748B;
}
[data-theme="dark"] .browser-card:not(.is-active) .project-title {
  color: #F8FAFC;
}
[data-theme="dark"] .browser-card:not(.is-active) .project-desc {
  color: #94A3B8;
}
[data-theme="dark"] .browser-card:not(.is-active) .project-view-btn {
  background: #1E293B;
  color: #E2E8F0;
  border-color: #475569;
}

/* Bottom circular navigation controls */
.pj-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.pj-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pj-arrow:hover {
  border-color: #1F5BFF;
  color: #1F5BFF;
  transform: scale(1.08);
}
[data-theme="dark"] .pj-arrow {
  background: #1E293B;
  border-color: #475569;
  color: #E2E8F0;
}
[data-theme="dark"] .pj-arrow:hover {
  border-color: #5AB0FF;
  color: #5AB0FF;
}

/* Legacy/Fallback 3-Column Portfolio Grid */
.pg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pj { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.shot { aspect-ratio: 16/10; background: linear-gradient(135deg, #DCE6FF, #F0F4FF); padding: 36px 0 0; position: relative; overflow: hidden; }
.shot:before { content: ""; position: absolute; top: 12px; right: 16px; width: 44px; height: 10px; background: radial-gradient(circle, #B8C4DA 4px, transparent 5px) 0 0/15px 10px; }
.shot img { width: 88%; display: block; margin-inline: auto; border-radius: 12px 12px 0 0; box-shadow: 0 14px 40px rgba(14, 26, 43, 0.2); }
.wf { width: 88%; height: 100%; margin-inline: auto; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 14px 40px rgba(14, 26, 43, 0.13); padding: 14px; display: grid; grid-template-columns: 22% 1fr; gap: 10px; }
.wf i { background: #E6EDF8; border-radius: 8px; }
.wf i+i { background: linear-gradient(135deg, #BFD3FF, #EAF1FF); }
.pj div.in2 { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.pj small { color: var(--blue); font-weight: 700; font-size: 14px; }
.pj h3 { font-size: 22px; font-weight: 900; }
.pj p { color: var(--mute); font-size: 15px; }
.pj a { font-weight: 700; color: var(--blue); display: inline-block; margin-top: auto; padding-top: 6px; }
.pj:last-child:nth-child(3n+1) { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }
.pj:last-child:nth-child(3n+1) .shot { aspect-ratio: auto; min-height: 230px; }
.pj:last-child:nth-child(3n+1) .in2 { align-self: center; padding: 30px; }

/* 5 Testimonials (2x2 grid, #trust is tint) */
#trust { background: var(--tint); }
.tg { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.q { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; }
.q:before { content: "“"; display: block; font-size: 84px; line-height: .7; color: var(--blue); font-weight: 900; }
.q p { font-size: 17px; line-height: 2; margin-top: 8px; }
.q b { display: block; margin-top: 18px; font-size: 15px; }
.q small { color: var(--mute); font-size: 13px; }

/* 6 Products with 3D Laptop */
.products {
  background: var(--white);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.products:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(31, 91, 255, 0.06) 1px, transparent 1px) 0 0/48px 48px,
              linear-gradient(90deg, rgba(31, 91, 255, 0.06) 1px, transparent 1px) 0 0/48px 48px;
  pointer-events: none;
}
.products .wrap { position: relative; }
.pv { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.pv h2 { font-size: var(--t-2xl); line-height: 1.5; font-weight: 900; }
.pv p { color: var(--mute); margin-top: 14px; max-width: 440px; }

.lap { position: relative; width: min(470px, 100%); margin-inline: auto; padding: 30px 0; }
.scr {
  background: #091233;
  border: 7px solid #1B2A55;
  border-bottom-width: 9px;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 16/10;
  padding: 18px;
  direction: ltr;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(31, 91, 255, 0.2);
}
.scr code { display: block; white-space: pre; font: 12px/1.75 ui-monospace, Menlo, Consolas, monospace; color: #B7C9F5; }
.scr .l { display: block; opacity: 0; }
.scr .l.on { opacity: 1; }
.scr .l.now:after { content: ""; display: inline-block; width: 7px; height: 14px; background: #fff; margin-left: 4px; vertical-align: -2px; animation: bl 1s steps(1) infinite; }
@keyframes bl { 50% { opacity: 0; } }
.k { color: #6FB7FF; }
.f { color: #fff; font-weight: 700; }
.s { color: #8FF0D0; }
.cm { color: #7F93BF; }

.base {
  height: 14px;
  width: 112%;
  margin-inline: -6%;
  background: linear-gradient(#D5E0F6, #A9BCE8);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 30px rgba(31, 91, 255, 0.18);
}
.term {
  position: absolute;
  right: -6%;
  bottom: -10px;
  width: 54%;
  background: #0B1530;
  border: 1px solid #2A4A9A;
  border-radius: 12px;
  padding: 10px 12px;
  direction: ltr;
  font: 11px/1.7 ui-monospace, Menlo, monospace;
  color: #B7C9F5;
  box-shadow: 0 18px 40px rgba(31, 91, 255, 0.25);
  z-index: 3;
}
.term i { display: block; font-style: normal; }
.term .ok { color: #8FF0D0; }
.fl {
  position: absolute;
  padding: 6px 14px;
  border-radius: 12px;
  background: #EAF1FF;
  border: 1px solid #C9D9FF;
  color: var(--blue);
  font: 700 13px ui-monospace, Menlo, monospace;
  direction: ltr;
  animation: fy 5s ease-in-out infinite;
  z-index: 2;
}
.fl.a { top: 2px; right: 2%; }
.fl.b { top: 42%; left: -6%; animation-delay: -1.5s; }
.fl.c { bottom: 4px; left: 6%; animation-delay: -3s; }
.fl.d { top: -4px; left: 4%; animation-delay: -2s; }
.fl.e { top: 46%; right: -7%; animation-delay: -4s; }

.prg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pr {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
}
.pr h3 { font-size: 26px; font-weight: 900; }
.pr p { color: var(--mute); font-size: 15px; }
.pr a { margin-top: auto; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }

/* 7 Collaboration Process (Timeline 7-step) */
.timeline-sec { background: var(--paper); }
.flow-line {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-top: 40px;
  position: relative;
}
.flow-line:before {
  content: "";
  position: absolute;
  top: 24px;
  right: 40px;
  left: 40px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.flow-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(31, 91, 255, 0.12);
}
.flow-node h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.flow-node p { font-size: 13px; color: var(--mute); line-height: 1.7; }

/* 8 Why DotWeb (#why is tint) */
#why { background: var(--tint); }
.wg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.c { padding: 24px 0; border-top: 1px solid var(--line); }
.c h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; color: var(--ink); }
.c p { color: var(--mute); font-size: 15px; line-height: 1.9; }
.why-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(31, 91, 255, 0.1);
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: 'Peyda', sans-serif !important;
}

.hero-cap-tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(31, 91, 255, 0.08);
  color: var(--blue);
  border: 1px solid rgba(31, 91, 255, 0.18);
  font-family: 'Peyda', sans-serif !important;
  transition: background 0.2s, transform 0.2s;
}
.hero-cap-tag:hover {
  background: rgba(31, 91, 255, 0.15);
  transform: translateY(-1px);
}

/* 9 Real Stats Row */
.stats-sec { background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-box { padding: 20px; border-inline-start: 1px solid var(--line); }
.stat-box:first-child { border-inline-start: none; }
.stat-num { font-size: clamp(36px, 4vw, 54px); font-weight: 900; color: var(--blue); font-family: 'Peyda', sans-serif !important; line-height: 1.2; }
.stat-lbl { font-size: 15px; color: var(--mute); margin-top: 8px; font-weight: 700; }

/* 10 Blog Grid */
#blog { background: var(--paper); }
.bg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.post small { color: var(--blue); font-weight: 700; font-size: 14px; }
.post h3 { font-size: 19px; line-height: 1.8; }
.post p { color: var(--mute); font-size: 15px; }
.post em { margin-top: auto; font-style: normal; font-size: 13px; color: var(--mute); padding-top: 10px; }

/* 11 Contact / Consultation (#contact is white) */
.contact { background: var(--white); color: var(--ink); }
.cw { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.5; font-weight: 900; }
.lead { color: var(--mute); margin-top: 16px; max-width: 440px; }
.ways { margin-top: 24px; display: grid; gap: 8px; }
.ways a { font-weight: 700; width: max-content; border-bottom: 2px solid var(--dot); color: var(--ink); }
.contact form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 16px; }
.contact label { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.contact input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  width: 100%;
}
.contact input[type=tel] { direction: ltr; text-align: right; }
.contact input:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
#msg { min-height: 26px; font-size: 15px; color: var(--blue); margin: 0; }

/* 12 Footer (Always dark #08111F) */
footer { background: #08111F !important; color: #fff; padding: 56px 0 24px; }
.fg { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 32px; }
footer p { color: #A3B2C8; font-size: 15px; max-width: 300px; margin-top: 10px; }
footer h4 { margin: 0 0 12px; font-size: 16px; color: #fff; }
footer nav a { display: block; color: #A3B2C8; font-size: 15px; padding: 4px 0; }
footer nav a:hover { color: var(--dot); }
.cp { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; font-size: 14px; color: #8496AF; }

/* Dark mode specific overrides */
html[data-theme="dark"] .bar {
  background: linear-gradient(135deg, rgba(28, 46, 94, 0.75), rgba(14, 26, 63, 0.50));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] header#top.sc .bar {
  background: linear-gradient(135deg, rgba(28, 46, 94, 0.90), rgba(14, 26, 63, 0.70));
}
html[data-theme="dark"] .tgl { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .btn.ghost:hover, html[data-theme="dark"] .ctl button:hover { color: #0A1224; background: var(--blue); }
html[data-theme="dark"] .sv:hover { background: var(--blue); }
html[data-theme="dark"] .sv:hover small { color: #fff; }
html[data-theme="dark"] .shot { background: linear-gradient(135deg, #12234F, #0B1735); }
html[data-theme="dark"] .wf { background: #14234A; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .wf i { background: #1D305F; }
html[data-theme="dark"] .wf i+i { background: linear-gradient(135deg, #2A4A9A, #1D305F); }
html[data-theme="dark"] .q { background: #13203F; }
html[data-theme="dark"] .fl { background: #16295A; border-color: #2A4A9A; color: #8CC4FF; }
html[data-theme="dark"] .scr { border-color: #2A3B6E; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .base { background: linear-gradient(#3A4C78, #222F52); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] :is(.pj small, .pj a, .post small, .sv small, .pr a, #msg, .links a:hover, .links a.on, .tk) { color: #79BCFF; }
html[data-theme="dark"] .chip { background: var(--paper); border-color: var(--line); }

/* Comprehensive Dark Mode Typography & Contrast */
html[data-theme="dark"] .art-body,
html[data-theme="dark"] .art-body p,
html[data-theme="dark"] .art-body li,
html[data-theme="dark"] .art-body ul,
html[data-theme="dark"] .art-body ol {
  color: var(--ink) !important;
}
html[data-theme="dark"] .art-body strong,
html[data-theme="dark"] .art-body b {
  color: #FFFFFF !important;
}
html[data-theme="dark"] .art-body a.link {
  color: #79BCFF;
}
html[data-theme="dark"] .art-body blockquote {
  background: rgba(31, 91, 255, 0.12);
  border-inline-start-color: #5AB0FF;
  color: var(--ink);
}
html[data-theme="dark"] .art-body blockquote p {
  color: var(--ink) !important;
}
html[data-theme="dark"] .art-body code.en,
html[data-theme="dark"] .art-body code:not(pre code) {
  background: rgba(31, 91, 255, 0.18);
  color: #79BCFF;
  border-color: rgba(31, 91, 255, 0.35);
}
html[data-theme="dark"] .toc-box {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .toc-box h4 {
  color: var(--ink);
  border-bottom-color: var(--line-2);
}
html[data-theme="dark"] .toc-list a {
  color: var(--ink-2);
}
html[data-theme="dark"] .toc-list a:hover {
  color: #79BCFF;
}
html[data-theme="dark"] .pro-card {
  background: var(--white);
  border-color: var(--line);
}
html[data-theme="dark"] .pro-card h2,
html[data-theme="dark"] .pro-card h3,
html[data-theme="dark"] .pro-card h4 {
  color: var(--ink);
}
html[data-theme="dark"] .pro-card p {
  color: var(--mute);
}
html[data-theme="dark"] details {
  background: var(--white);
  border-color: var(--line);
}
html[data-theme="dark"] details summary {
  color: var(--ink);
}
html[data-theme="dark"] details p {
  color: var(--mute);
}
html[data-theme="dark"] .step-item {
  background: var(--white);
  border-color: var(--line);
}
html[data-theme="dark"] .step-num {
  color: #5AB0FF;
  opacity: 0.55;
}
html[data-theme="dark"] .metrics-strip {
  background: var(--white);
  border-color: var(--line);
}
html[data-theme="dark"] .metric-val {
  color: #5AB0FF;
}
html[data-theme="dark"] .metric-lbl {
  color: var(--mute);
}
html[data-theme="dark"] .why-badge {
  background: rgba(31, 91, 255, 0.2);
  color: #79BCFF;
}
html[data-theme="dark"] .c h3 {
  color: var(--ink);
}
html[data-theme="dark"] .c p {
  color: var(--mute);
}
html[data-theme="dark"] .stat-num {
  color: #5AB0FF;
}
html[data-theme="dark"] .stat-lbl {
  color: var(--mute);
}
html[data-theme="dark"] .flow-dot {
  background: var(--white);
  border-color: #5AB0FF;
  color: #5AB0FF;
}
html[data-theme="dark"] .flow-node h4 {
  color: var(--ink);
}
html[data-theme="dark"] .flow-node p {
  color: var(--mute);
}
html[data-theme="dark"] .hero-cap-tag {
  background: rgba(31, 91, 255, 0.18);
  color: #79BCFF;
  border-color: rgba(121, 188, 255, 0.3);
}
html[data-theme="dark"] .b-info {
  background: rgba(31, 91, 255, 0.18);
  color: #79BCFF;
}
html[data-theme="dark"] .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .btn-ghost:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
html[data-theme="dark"] .cmp-table {
  background: var(--white);
  border-color: var(--line);
}
html[data-theme="dark"] .cmp-table th {
  background: var(--paper);
  color: var(--ink);
}
html[data-theme="dark"] .cmp-table td {
  border-bottom-color: var(--line-2);
  color: var(--ink);
}
html[data-theme="dark"] .cmp-table td.highlight {
  background: rgba(31, 91, 255, 0.12);
  color: #79BCFF;
}
html[data-theme="dark"] .feat-item {
  color: var(--ink);
}
html[data-theme="dark"] .tech-pill {
  background: var(--white);
  border-color: var(--line);
  color: #93C5FD;
}
html[data-theme="dark"] .table,
html[data-theme="dark"] table {
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .table th,
html[data-theme="dark"] table th {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1.5px solid var(--line);
}
html[data-theme="dark"] .table td,
html[data-theme="dark"] table td {
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
}
html[data-theme="dark"] .table tr:hover td {
  background: rgba(31, 91, 255, 0.05);
}
html[data-theme="dark"] .b-ok {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
}
html[data-theme="dark"] .b-info {
  background: rgba(31, 91, 255, 0.18);
  color: #79BCFF;
}
html[data-theme="dark"] .b-err {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
}
html[data-theme="dark"] .tabs button {
  color: var(--mute);
}
html[data-theme="dark"] .tabs button[aria-selected="true"] {
  color: #5AB0FF;
  border-bottom-color: #5AB0FF;
}
html[data-theme="dark"] .choice,
html[data-theme="dark"] .feature-item {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .choice:hover,
html[data-theme="dark"] .choice:has(input:checked),
html[data-theme="dark"] .feature-item:hover,
html[data-theme="dark"] .feature-item:has(input:checked) {
  border-color: #5AB0FF;
  background: rgba(31, 91, 255, 0.12);
}
html[data-theme="dark"] .empty {
  background: var(--white);
  border-color: var(--line);
  color: var(--mute);
}
html[data-theme="dark"] .empty h2,
html[data-theme="dark"] .empty h3 {
  color: var(--ink);
}

/* Common UI Elements for Inner Pages & Panels */
.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mute);
  cursor: pointer;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}
.tabs button:hover { color: var(--blue); }
.tabs button[aria-selected="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { background: var(--paper); font-weight: 700; color: var(--mute); }
.table td { color: var(--ink); }
.empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--mute);
}
.empty h2, .empty h3 { color: var(--ink); margin-bottom: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 700; color: var(--mute); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-sm); font-size: var(--t-xs); font-weight: 700; }
.b-ok { background: var(--ok-l); color: var(--ok); }
.b-info { background: var(--tint); color: var(--blue); }
.b-err { background: var(--err-l); color: var(--err); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 700; color: var(--mute); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-sm); color: var(--mute); list-style: none; margin: 0; padding: 0; }
.crumbs li+li::before { content: "/"; margin-inline-end: 8px; color: var(--soft); }
.crumbs a:hover { color: var(--blue); }

/* Section Kicker / Micro-badge */
.idx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.idx-badge, .idx b {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(31, 91, 255, 0.08);
  color: var(--blue);
  border: 1px solid rgba(31, 91, 255, 0.22);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.idx span {
  font-size: 13.5px;
  color: var(--mute);
  font-weight: 600;
}
[data-theme="dark"] .idx-badge, [data-theme="dark"] .idx b {
  background: rgba(90, 176, 255, 0.12);
  color: #93C5FD;
  border-color: rgba(90, 176, 255, 0.28);
}
.product-sku-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(31, 91, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* Pro Inner Page Components & Elevate System */
.inner-hero {
  position: relative;
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.inner-hero h1 {
  font-size: var(--t-2xl);
  margin-top: 14px;
  line-height: 1.45;
  font-weight: 900;
}
.inner-hero p {
  color: var(--mute);
  margin-top: 10px;
  max-width: 760px;
  font-size: 16px;
  line-height: 2;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 22px 28px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(14, 26, 43, 0.04);
}
.metric-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-col:not(:last-child) {
  border-inline-end: 1px solid var(--line-2);
  padding-inline-end: 18px;
}
.metric-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.2;
}
.metric-lbl {
  font-size: 13.5px;
  color: var(--mute);
  font-weight: 600;
}

/* Pro Card & Grid */
.pro-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(14, 26, 43, 0.04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.pro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-1);
  border-color: var(--blue);
}

/* Mockup Browser Window Header */
.mockup-window {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0B132B;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(11, 19, 43, 0.28);
}
.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #14203D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot.red { background: #FF5F56; }
.mockup-dot.yellow { background: #FEBC2E; }
.mockup-dot.green { background: #28C840; }
.mockup-url {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #94A3B8;
  direction: ltr;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 14px;
  border-radius: 6px;
}

/* Feature Checklist */
.feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.feat-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--ok);
  margin-top: 2px;
}

/* Tech Badges / Pills */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-pill {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--mute);
}

/* Stepper / Workflow Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.step-item {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
}
.step-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  opacity: .35;
  margin-bottom: 8px;
}

/* Comparison Table */
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  margin: 28px 0;
}
.cmp-table th, .cmp-table td {
  padding: 16px 20px;
  text-align: right;
  border-bottom: 1px solid var(--line-2);
}
.cmp-table th {
  background: var(--paper);
  font-weight: 800;
  font-size: 14.5px;
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td.highlight {
  background: rgba(31, 91, 255, 0.04);
  font-weight: 700;
  color: var(--blue);
}

/* Reading Progress Bar for Blog */
#reading-bar {
  position: fixed;
  top: 0;
  right: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--dot), var(--blue));
  z-index: 1000;
  transition: width .1s ease-out;
}

/* Article Styling */
.art-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .art-container { grid-template-columns: 1fr !important; }
}
.art-body {
  font-size: 16.5px;
  line-height: 2.15;
  color: var(--ink);
}
.art-body h1, .art-body h2, .art-body h3, .art-body h4, .art-body h5, .art-body h6 {
  color: var(--ink);
}
.art-body h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  border-bottom: 1.5px solid var(--line-2);
  padding-bottom: 10px;
  scroll-margin-top: 100px;
}
.art-body h3 {
  font-size: 19px;
  margin: 30px 0 14px;
  scroll-margin-top: 100px;
}
.art-body p { margin-bottom: 22px; color: var(--ink); }
.art-body ul, .art-body ol {
  padding-inline-start: 24px;
  margin-bottom: 22px;
  color: var(--ink);
}
.art-body li { margin-bottom: 8px; color: var(--ink); }
.art-body strong, .art-body b { color: var(--ink); font-weight: 800; }
.art-body em, .art-body i { color: var(--ink-2); }
.art-body blockquote {
  background: var(--blue-l);
  border-inline-start: 4px solid var(--blue);
  padding: 16px 22px;
  border-radius: var(--r-sm);
  margin: 28px 0;
  font-size: 15px;
  color: var(--ink);
}
.art-body blockquote p {
  color: var(--ink);
  margin-bottom: 0;
}
.art-body a.link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.art-body a.link:hover {
  color: var(--dot);
}
.art-body code.en, .art-body code:not(pre code) {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--blue);
  border: 1px solid var(--line);
  direction: ltr;
  display: inline-block;
}
.art-body .code-blk {
  background: #0B132B;
  color: #E2E8F0;
  padding: 22px;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  direction: ltr;
  text-align: left;
  margin: 26px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sticky TOC Box */
.toc-box {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  position: sticky;
  top: 96px;
  box-shadow: 0 4px 20px rgba(14, 26, 43, 0.04);
}
.toc-box h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}
.toc-list a {
  color: var(--mute);
  display: block;
  transition: color .2s, padding-inline-start .2s;
}
.toc-list a:hover {
  color: var(--blue);
  padding-inline-start: 6px;
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pager a {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  transition: all .2s;
}
.pager a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.pager a[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hg, .cw, .pg, .wg, .bg, .prg, .pv, .tg, .stats-grid { grid-template-columns: 1fr !important; }
  .fg { grid-template-columns: 1fr 1fr; }
  .stat-box { border-inline-start: none; border-top: 1px solid var(--line); }
  .stat-box:first-child { border-top: none; }
  .flow-line { grid-template-columns: 1fr; gap: 24px; }
  .flow-line:before { display: none; }
  .pj:last-child:nth-child(3n+1) { display: block; }
}

@media (max-width: 760px) {
  .menu { display: grid; place-items: center; }
  .bar .btn { display: none; }
  .links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--sh-2);
  }
  header#top[data-open] .links { display: flex; }
  html[data-theme="dark"] .links { background: #0E1A3A; border-color: rgba(255, 255, 255, 0.14); }
  .links a { padding: 12px 14px; border-bottom: 1px solid var(--line-2); border-radius: 12px; }
  .links a:last-child { border-bottom: none; }
  section { padding: 62px 0; }
  .hero { padding-top: 110px; }
  .fg { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .in { opacity: 1; transform: none; }
  .mw { overflow-x: auto; }
  .scr .l { opacity: 1; }
}

/* ==========================================================================
   Article Images & Media Formatting
   ========================================================================== */
.art-featured-wrap {
  margin-bottom: 32px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: 0 10px 30px rgba(14, 26, 43, 0.08);
  background: var(--paper);
}
.art-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.blog-card-img {
  transition: transform .3s ease;
}
.pro-card:hover .blog-card-img {
  transform: scale(1.04);
}
.art-img-wrap {
  margin: 32px 0;
  text-align: center;
}
.art-img-wrap img, .art-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  box-shadow: 0 12px 32px rgba(14, 26, 43, 0.08);
  display: block;
  margin: 0 auto;
}
.art-img-wrap figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--mute);
  font-weight: 600;
}

/* ==========================================================================
   Custom 404 Astronaut Experience
   ========================================================================== */
/* ==========================================================================
   Custom 404 Astronaut Experience (Target Mockup Faithful Design)
   ========================================================================== */
.page-404 {
  padding: 30px 0 90px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, rgba(99, 102, 241, 0.12) 0%, rgba(219, 234, 254, 0.22) 40%, transparent 70%);
}
[data-theme="dark"] .page-404 {
  background: radial-gradient(circle at 50% 25%, rgba(99, 102, 241, 0.2) 0%, rgba(30, 58, 138, 0.18) 45%, transparent 75%);
}

.hero-404, .astro-stage {
  position: relative;
  max-width: 760px;
  width: 100%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.astro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.25) 0%, rgba(59, 130, 246, 0.18) 45%, transparent 70%);
  filter: blur(45px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.astronaut-img {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: astro-float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 35px rgba(79, 70, 229, 0.22));
}

@keyframes astro-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float-astro {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.title-404 {
  font-family: 'Peyda', sans-serif;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 900;
  margin: 18px auto 14px;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.35;
  text-align: center;
}

.err-accent {
  display: inline;
}
html[data-theme="dark"] .err-accent, [data-theme="dark"] .err-accent {
  background: linear-gradient(135deg, #818CF8 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.err-accent-purple {
  color: #5B32E8;
}
[data-theme="dark"] .err-accent-purple {
  color: #A5B4FC;
}

.err-accent-blue {
  color: #2258F6;
}
[data-theme="dark"] .err-accent-blue {
  color: #60A5FA;
}

.desc-404 {
  font-family: 'Peyda', sans-serif;
  font-size: 16.5px;
  color: var(--mute);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.95;
  text-align: center;
}

.actions-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 50px;
  max-width: 680px;
}

.btn-404-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #5B32E8 0%, #2563EB 100%);
  color: #FFFFFF !important;
  font-family: 'Peyda', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 30px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  transition: all .25s var(--ease);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-404-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(91, 50, 232, 0.45);
  background: linear-gradient(135deg, #4F46E5 0%, #1D4ED8 100%);
}

.search-404-form {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 18px;
  width: 290px;
  height: 52px;
  box-shadow: 0 4px 16px rgba(14, 26, 43, 0.04);
  transition: all .2s;
  box-sizing: border-box;
}
.search-404-form:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.search-404-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Peyda', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.search-404-btn {
  border: none;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color .2s;
}
.search-404-btn:hover {
  color: #2563EB;
}

.capsule-404 {
  background: rgba(237, 242, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.9);
  border-radius: var(--r-pill);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.06);
  margin: 0 auto;
  max-width: 1040px;
  box-sizing: border-box;
}
html[data-theme="dark"] .capsule-404, [data-theme="dark"] .capsule-404 {
  background: rgba(22, 33, 62, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.capsule-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.capsule-bulb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(91, 50, 232, 0.1);
  color: #5B32E8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .capsule-bulb {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}
.capsule-label {
  font-family: 'Peyda', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.capsule-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-404 {
  padding: 7px 20px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-family: 'Peyda', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 2px 6px rgba(14, 26, 43, 0.04);
}
.pill-404:hover {
  border-color: #2563EB;
  color: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.capsule-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}
.capsule-slogan {
  font-family: 'Peyda', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #5B32E8;
  white-space: nowrap;
}
[data-theme="dark"] .capsule-slogan {
  color: #A5B4FC;
}
.slogan-swirl {
  width: 150px;
  height: 16px;
  color: #5B32E8;
  opacity: 0.75;
  margin-top: -2px;
}
[data-theme="dark"] .slogan-swirl {
  color: #A5B4FC;
}

@media (max-width: 960px) {
  .capsule-404 {
    border-radius: 20px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .capsule-right {
    justify-content: center;
  }
  .capsule-left {
    align-items: center;
    margin-top: 10px;
  }
}
@media (max-width: 600px) {
  .actions-404 {
    flex-direction: column;
    width: 100%;
  }
  .btn-404-home, .search-404-form {
    width: 100%;
    max-width: 320px;
  }
}
