/* ============================================================
   TAGS — Visual System V2
   إعادة تصميم كاملة مستوحاة من الهوية المرجعية
   ============================================================ */

:root {
  --ink: #171411;
  --paper: #fffdf9;
  --cream: #fff7ef;
  --wine: #6b0000;
  --wine-deep: #260502;
  --orange: #ff5100;
  --orange-2: #ff7a24;
  --line: #eadfd7;
  --soft-shadow: 0 18px 55px rgba(61, 25, 10, .09);
}

body { background: var(--paper); color: var(--text); }

/* Header */
.topbar {
  padding: 6px 0;
  background: #191513;
  font-size: .72rem;
}

.header {
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid rgba(107, 0, 0, .08);
}
[data-theme="dark"] .header { background: rgba(19, 7, 4, .96); }

.header-inner { height: 80px; }
.logo img {
  width: 132px;
  height: 54px;
  padding: 4px 8px;
  background: #fff;
  border-radius: 9px;
}

.nav { gap: 2px; }
.nav a {
  padding: 10px 13px;
  color: var(--text);
  background: transparent;
  font-size: .87rem;
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: translateX(50%);
  transition: width .25s ease;
}
.nav a:hover,
.nav a.active { color: var(--orange); background: transparent; }
.nav a:hover::after,
.nav a.active::after { width: 24px; }

.header .btn-primary { border-radius: 7px; box-shadow: none; }
.header .icon-btn { border-radius: 8px; }

/* Helpers */
.tg-section { padding: clamp(70px, 8vw, 112px) 0; }
.tg-section-title {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}
.tg-section-title > span,
.tg-why-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 9px;
}
.tg-section-title > span::before,
.tg-why-head > span::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}
.tg-section-title h2,
.tg-why-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  letter-spacing: -.04em;
}
.tg-section-title h2 em,
.tg-why-head h2 em,
.tg-smart-copy h2 em {
  color: var(--orange);
  font-style: normal;
}
.tg-section-title p {
  max-width: 630px;
  margin: auto;
  color: var(--text-soft);
}
.tg-title-inline {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: start;
  gap: 24px;
}
.tg-title-inline h2 { margin-bottom: 0; }

/* Hero */
.tg-hero {
  position: relative;
  padding: clamp(62px, 8vw, 118px) 0 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 81, 0, .08), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #fff 100%);
}
[data-theme="dark"] .tg-hero {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 81, 0, .14), transparent 30%),
    linear-gradient(180deg, #130704 0%, #1b0b07 100%);
}

.tg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .34;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 81, 0, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 0, 0, .075) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 77%);
  animation: tgGridDrift 18s linear infinite;
}
.tg-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 320px;
  inset: 5% auto auto -12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 81, 0, .22), transparent 46%),
    radial-gradient(circle at 70% 50%, rgba(107, 0, 0, .18), transparent 48%);
  filter: blur(34px);
  animation: tgGlowMove 11s ease-in-out infinite alternate;
  pointer-events: none;
}

.tg-network {
  position: absolute;
  z-index: 1;
  inset: -20px 50% auto auto;
  width: min(520px, 48vw);
  height: 390px;
  opacity: .45;
  pointer-events: none;
}
.tg-network span {
  position: absolute;
  inset-block-start: 0;
  width: 2px;
  height: 240px;
  border-radius: 10px;
  background: linear-gradient(to bottom, transparent, rgba(107, 0, 0, .28) 40%, var(--orange));
  transform-origin: top;
}
.tg-network span::after {
  content: '';
  position: absolute;
  inset-block-end: -75px;
  inset-inline-start: 0;
  width: 120px;
  height: 75px;
  border-block-end: 2px solid var(--orange);
  border-inline-start: 2px solid var(--orange);
  border-radius: 0 0 0 34px;
}
.tg-network span:nth-child(1) { inset-inline-start: 8%; transform: rotate(-18deg); }
.tg-network span:nth-child(2) { inset-inline-start: 28%; transform: rotate(-9deg); }
.tg-network span:nth-child(3) { inset-inline-start: 49%; }
.tg-network span:nth-child(4) { inset-inline-start: 70%; transform: rotate(9deg); }
.tg-network span:nth-child(5) { inset-inline-start: 90%; transform: rotate(18deg); }

.tg-float-orb {
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 81, 0, .22);
  border-radius: 16px;
  color: var(--orange);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 15px 40px rgba(74, 20, 3, .13), inset 0 0 18px rgba(255, 81, 0, .08);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: transform .18s ease-out;
  animation: tgOrbFloat 5s ease-in-out infinite;
}
[data-theme="dark"] .tg-float-orb {
  background: rgba(36, 16, 11, .75);
  box-shadow: 0 15px 45px rgba(0, 0, 0, .35), inset 0 0 20px rgba(255, 81, 0, .14);
}
.tg-orb-camera { inset: 22% auto auto 4%; }
.tg-orb-video { inset: auto 4% 22% auto; animation-delay: -1.2s; }
.tg-orb-code { inset: 16% 46% auto auto; animation-delay: -2.6s; }
.tg-orb-design { inset: auto auto 13% 43%; animation-delay: -3.5s; }

@keyframes tgGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}
@keyframes tgOrbFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}
@keyframes tgGlowMove {
  from { transform: translate3d(0, 0, 0) scale(.92); }
  to { transform: translate3d(130px, 45px, 0) scale(1.12); }
}

.tg-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
}

.tg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  background: rgba(255, 81, 0, .08);
  border: 1px solid rgba(255, 81, 0, .16);
  padding: 6px 13px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 18px;
}
[data-theme="dark"] .tg-kicker { color: #ff8d55; }

.tg-hero-copy h1 {
  max-width: 600px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(2.25rem, 5.2vw, 4.65rem);
  line-height: 1.14;
  letter-spacing: -.06em;
}
[data-theme="dark"] .tg-hero-copy h1 { color: #fff; }
.tg-hero-copy h1 span {
  display: block;
  color: var(--orange);
}
.tg-hero-copy > p {
  max-width: 610px;
  font-size: 1.04rem;
  line-height: 2;
}
.tg-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.tg-hero-actions .btn { border-radius: 7px; padding: 12px 23px; }

.tg-mini-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.tg-avatars { display: flex; direction: ltr; }
.tg-avatars i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-inline-start: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-style: normal;
  font-size: .66rem;
  font-weight: 900;
}
.tg-avatars i:nth-child(even) { background: var(--orange); }
.tg-mini-proof > span:last-child { display: grid; line-height: 1.4; }
.tg-mini-proof b { font-size: .78rem; }
.tg-mini-proof small { color: var(--text-muted); font-size: .68rem; }

.tg-hero-media {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}
.tg-hero-media::before {
  content: '';
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 81, 0, .22);
  box-shadow: inset 0 0 0 42px rgba(255, 81, 0, .025);
}
.tg-hero-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 26px 36px rgba(55, 17, 4, .13));
}
.tg-float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 81, 0, .15);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--wine);
  box-shadow: 0 12px 32px rgba(57, 20, 6, .12);
  backdrop-filter: blur(10px);
  font-size: .74rem;
  font-weight: 800;
}
[data-theme="dark"] .tg-float-chip { background: rgba(36, 16, 11, .9); color: #ff8d55; }
.tg-chip-top { inset-block-start: 12%; inset-inline-start: -3%; }
.tg-chip-bottom { inset-block-end: 15%; inset-inline-end: -2%; }

.tg-orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 81, 0, .13);
  border-radius: 50%;
}
.tg-orbit-a { width: 390px; height: 130px; inset: 12% -8% auto auto; transform: rotate(-18deg); }
.tg-orbit-b { width: 330px; height: 90px; inset: auto 5% 9% auto; transform: rotate(12deg); }

/* Metrics and trust */
.tg-metrics {
  position: relative;
  z-index: 4;
  padding: 0 0 38px;
}
.tg-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}
[data-theme="dark"] .tg-metrics-grid { border-color: var(--border); }
.tg-metric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 94px;
  padding: 18px;
  border-inline-end: 1px solid var(--line);
}
.tg-metric:last-child { border-inline-end: 0; }
[data-theme="dark"] .tg-metric { border-color: var(--border); }
.tg-metric-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--orange);
}
.tg-metric > span:last-child { display: grid; }
.tg-metric b { color: var(--wine); font-size: 1.35rem; direction: ltr; line-height: 1.2; }
[data-theme="dark"] .tg-metric b { color: #ff8d55; }
.tg-metric small { color: var(--text-muted); font-size: .72rem; }

.tg-trust { padding: 15px 0 55px; }
.tg-trust p {
  margin: 0 0 17px;
  text-align: center;
  color: var(--text-muted);
  font-size: .73rem;
  font-weight: 700;
}
.tg-logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
[data-theme="dark"] .tg-logo-row { border-color: var(--border); }
.tg-client-logo {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 11px;
  border-inline-end: 1px solid var(--line);
  filter: grayscale(1);
  opacity: .7;
  transition: .25s;
}
.tg-client-logo:last-child { border: 0; }
.tg-client-logo:hover { filter: none; opacity: 1; }
.tg-client-logo img { max-width: 105px; max-height: 38px; object-fit: contain; }
.tg-client-logo strong { font-size: .86rem; color: var(--text-soft); }

/* Services */
.tg-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.tg-service-card {
  position: relative;
  min-height: 275px;
  padding: 30px;
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: .35s ease;
  animation: tgServiceBreathe 7s ease-in-out infinite;
}
.tg-service-card:nth-child(2) { animation-delay: -1.1s; }
.tg-service-card:nth-child(3) { animation-delay: -2.2s; }
.tg-service-card:nth-child(4) { animation-delay: -3.3s; }
.tg-service-card:nth-child(5) { animation-delay: -4.4s; }
.tg-service-card:nth-child(6) { animation-delay: -5.5s; }
[data-theme="dark"] .tg-service-grid,
[data-theme="dark"] .tg-service-card { border-color: var(--border); }
.tg-service-card::before {
  content: '';
  position: absolute;
  inset: auto -55px -80px auto;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(255, 81, 0, .04);
  border-radius: 50%;
  transition: .35s ease;
}
.tg-service-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(255, 81, 0, .45);
  box-shadow: var(--soft-shadow);
  animation-play-state: paused;
}
.tg-service-card:hover::before { transform: scale(1.35); }
.tg-service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--orange);
  font-size: 1.2rem;
  margin-bottom: 22px;
}
.tg-service-no {
  position: absolute;
  inset: 25px auto auto 28px;
  color: rgba(107, 0, 0, .14);
  font-weight: 900;
  font-size: 1.45rem;
  direction: ltr;
}
[data-theme="dark"] .tg-service-no { color: rgba(255, 255, 255, .12); }
.tg-service-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.tg-service-card p { font-size: .82rem; line-height: 1.85; margin: 0; }
.tg-arrow {
  position: absolute;
  inset-block-end: 24px;
  inset-inline-end: 30px;
  color: var(--orange);
  transition: .25s;
}
.tg-service-card:hover .tg-arrow { transform: translateX(var(--tg-arrow-nudge, -6px)); }
html[dir="ltr"] { --tg-arrow-nudge: 6px; }
html[dir="rtl"] { --tg-arrow-nudge: -6px; }
.tg-service-featured { background: var(--orange); }
.tg-service-featured h3,
.tg-service-featured p,
.tg-service-featured .tg-arrow { color: #fff; }
.tg-service-featured .tg-service-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.tg-service-featured .tg-service-no { color: rgba(255, 255, 255, .2); }

@keyframes tgServiceBreathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* Work */
.tg-work-section { background: var(--bg-alt); }
.tg-work-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 245px 245px;
  gap: 14px;
}
.tg-work-card {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  min-height: 220px;
}
.tg-work-1 { grid-row: span 2; }
.tg-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.tg-work-card:hover img { transform: scale(1.06); }
.tg-work-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 5, 0, .85), transparent 60%);
}
.tg-work-content {
  position: absolute;
  inset: auto 20px 18px 20px;
  display: grid;
  color: #fff;
}
.tg-work-content small { color: #ff9e72; font-size: .7rem; }
.tg-work-content b { font-size: 1rem; }
.tg-work-content i { position: absolute; inset: auto auto 4px 0; font-size: 1.15rem; }

/* Why */
.tg-why {
  position: relative;
  padding: clamp(72px, 8vw, 108px) 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 5% 100%, rgba(255, 81, 0, .5), transparent 30%),
    linear-gradient(125deg, #270401, #6b0000 58%, #320501);
}
.tg-why::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: linear-gradient(30deg, #fff 1px, transparent 1px), linear-gradient(120deg, #fff 1px, transparent 1px);
  background-size: 42px 42px;
}
.tg-why .container { position: relative; z-index: 2; }
.tg-why-head { text-align: center; margin-bottom: 50px; }
.tg-why-head > span { color: #ff9d70; }
.tg-why-head h2 { color: #fff; }
.tg-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
}
.tg-why-item {
  min-height: 190px;
  padding: 26px 22px;
  border-inline-end: 1px solid rgba(255, 255, 255, .13);
}
.tg-why-item:last-child { border: 0; }
.tg-why-item > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #ff8d55;
  margin-bottom: 18px;
}
.tg-why-item h3 { color: #fff; font-size: .95rem; }
.tg-why-item p { color: rgba(255, 255, 255, .68); font-size: .76rem; line-height: 1.8; margin: 0; }
.tg-why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  text-align: center;
}
.tg-why-stats div { border-inline-end: 1px solid rgba(255, 255, 255, .15); }
.tg-why-stats div:last-child { border: 0; }
.tg-why-stats b { display: block; color: #ff8d55; font-size: 1.85rem; line-height: 1.2; direction: ltr; }
.tg-why-stats span { color: rgba(255, 255, 255, .66); font-size: .74rem; }

/* Process — overrides moved to tags-v3 (colored hover + rail) */
.tg-process { background: #fff; }
[data-theme="dark"] .tg-process { background: var(--bg); }

/* Smart card */
.tg-smart { padding: 20px 0 95px; }
.tg-smart-box {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #2b0502;
  box-shadow: 0 24px 60px rgba(64, 8, 1, .23);
}
.tg-smart-box > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-smart-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(36, 3, 1, .98) 0%, rgba(60, 7, 1, .72) 45%, transparent 75%);
}
.tg-smart-copy {
  position: relative;
  z-index: 2;
  width: 48%;
  padding: clamp(34px, 6vw, 70px);
}
.tg-smart-copy > span { color: #ff9a6a; font-size: .75rem; font-weight: 800; }
.tg-smart-copy h2 { color: #fff; margin: 8px 0 13px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.tg-smart-copy p { color: rgba(255, 255, 255, .74); font-size: .87rem; line-height: 1.9; }
.tg-smart-copy .btn { border-radius: 7px; margin-top: 10px; }

/* Testimonials */
.tg-testimonials { background: var(--bg-alt); }
.tg-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tg-quote {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: .3s ease;
}
.tg-quote:hover { transform: translateY(-5px); border-color: rgba(255, 81, 0, .4); box-shadow: var(--soft-shadow); }
.tg-stars { color: var(--orange); letter-spacing: 3px; font-size: .75rem; }
.tg-quote > p { min-height: 80px; margin: 14px 0 20px; font-size: .84rem; line-height: 1.9; }
.tg-quote footer { display: flex; align-items: center; gap: 11px; }
.tg-quote-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-weight: 900;
}
.tg-quote footer > span:last-child { display: grid; }
.tg-quote footer b { font-size: .8rem; }
.tg-quote footer small { color: var(--text-muted); font-size: .67rem; }

/* CTA */
.tg-final-cta { padding: 0 0 78px; background: var(--bg-alt); }
.tg-cta-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 35px 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(110deg, #6b0000, #b32600 58%, #ff5100);
}
.tg-cta-box::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  inset: -130px auto auto 8%;
  border: 38px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.tg-cta-box > div { position: relative; z-index: 2; }
.tg-cta-box span { color: #ffba99; font-size: .75rem; font-weight: 800; }
.tg-cta-box h2 { color: #fff; margin: 4px 0; font-size: 1.55rem; }
.tg-cta-box p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .8rem; }
.tg-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-cta-actions .btn { border-radius: 7px; }
.btn-outline-white { border: 1px solid rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--wine); }
.btn-outline-white.btn-cta-wa:hover,
.btn-outline-white.btn-cta-wa:hover span,
.btn-outline-white.btn-cta-wa:hover i { background: #25D366; border-color: #25D366; color: #fff !important; }

/* Footer */
.footer {
  background: #171311;
  border-top: 4px solid var(--orange);
}
[data-theme="dark"] .footer { background: #0e0503; }
.footer-top { padding-top: 62px; }
.footer h4 { font-size: .93rem; }
.footer p,
.footer-links a,
.footer-contact li { color: #9f9691; font-size: .78rem; }
.footer-bottom { background: #0e0b0a; border-top: 1px solid rgba(255, 255, 255, .07); }

/* Internal pages — same visual language */
.page-banner {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 81, 0, .38), transparent 28%),
    linear-gradient(125deg, #260401, #6b0000);
}
.card,
.service-card,
.form-card,
.contact-info-card,
.job-card,
.plan-card { border-radius: 12px; }
.service-card:hover,
.card:hover { border-color: var(--orange); }

/* Responsive */
@media (max-width: 1050px) {
  .tg-hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .tg-hero-media { min-height: 400px; }
  .tg-service-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-why-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-why-item:nth-child(2) { border-inline-end: 0; }
  .tg-why-item:nth-child(-n+2) { border-block-end: 1px solid rgba(255, 255, 255, .13); }
}

@media (max-width: 900px) {
  .tg-hero-grid { grid-template-columns: 1fr; }
  .tg-hero-copy { text-align: center; }
  .tg-hero-copy h1,
  .tg-hero-copy > p { margin-inline: auto; }
  .tg-hero-actions,
  .tg-mini-proof { justify-content: center; }
  .tg-hero-media { min-height: auto; }
  .tg-hero-media img { max-height: 520px; }
  .tg-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-metric:nth-child(2) { border-inline-end: 0; }
  .tg-metric:nth-child(-n+2) { border-block-end: 1px solid var(--line); }
  .tg-logo-row { grid-template-columns: repeat(3, 1fr); }
  .tg-client-logo:nth-child(3) { border-inline-end: 0; }
  .tg-work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 270px 220px 220px; }
  .tg-work-1 { grid-row: span 2; }
  .tg-process-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 25px; }
  .tg-process-rail,
  .tg-process-arrow,
  .tg-process-celebrate,
  .tg-step:not(:last-child)::after { display: none !important; }
  .tg-smart-copy { width: 58%; }
}

@media (max-width: 680px) {
  .topbar { display: none; }
  .header-inner { height: 68px; }
  .header-actions > .btn { display: none; }
  .tg-hero { padding-top: 45px; }
  .tg-hero-copy h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .tg-float-chip { display: none; }
  .tg-network { width: 86vw; inset-inline-end: 8%; opacity: .24; }
  .tg-orb-code,
  .tg-orb-design { display: none; }
  .tg-float-orb { width: 42px; height: 42px; border-radius: 13px; }
  .tg-metrics { padding-inline: 12px; }
  .tg-metric { min-height: 82px; padding: 12px 8px; gap: 8px; }
  .tg-metric-icon { width: 34px; height: 34px; }
  .tg-metric b { font-size: 1.05rem; }
  .tg-service-grid { grid-template-columns: 1fr; }
  .tg-service-card { min-height: 245px; }
  .tg-title-inline { align-items: start; flex-direction: column; }
  .tg-work-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .tg-work-card,
  .tg-work-1 { grid-row: auto; min-height: 270px; }
  .tg-why-grid { grid-template-columns: 1fr; }
  .tg-why-item,
  .tg-why-item:nth-child(2) { border: 0; border-block-end: 1px solid rgba(255, 255, 255, .13); }
  .tg-why-stats { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .tg-why-stats div:nth-child(2) { border: 0; }
  .tg-process-line { grid-template-columns: 1fr 1fr; }
  .tg-smart-box { min-height: 520px; align-items: end; }
  .tg-smart-box::after { background: linear-gradient(to top, rgba(36, 3, 1, .98) 5%, rgba(60, 7, 1, .78) 62%, transparent); }
  .tg-smart-box > img { object-position: 30% center; }
  .tg-smart-copy { width: 100%; padding: 32px 25px; }
  .tg-testimonial-grid { grid-template-columns: 1fr; }
  .tg-cta-box { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
  .tg-cta-actions { width: 100%; }
  .tg-cta-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
  .tg-hero-copy h1 { font-size: 2.08rem; }
  .tg-logo-row { grid-template-columns: repeat(2, 1fr); }
  .tg-client-logo:nth-child(3) { border-inline-end: 1px solid var(--line); }
  .tg-client-logo:nth-child(even) { border-inline-end: 0; }
  .tg-process-line { grid-template-columns: 1fr; }
  .tg-hero-actions .btn { width: 100%; }
}
