/* ==========================================================================
   064 · TERRA GEO (أرض الخرائط) — 1:1 Bright GIS Vector Studio & 3D Earth Globe
   #FFFFFF background · #307DF3 primary blue · Dashed SVG bounding-box H1 · Interactive Map Previews
   ========================================================================== */

:root {
  --tg-bg: #FFFFFF;
  --tg-fg: #0F172A;
  --tg-primary: #307DF3;
  --tg-muted-bg: #F1F5F9;
  --tg-muted-fg: #64748B;
  --tg-border: #E2E8F0;
  --tg-sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --tg-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--tg-bg);
  color: var(--tg-fg);
  font-family: var(--tg-sans);
  letter-spacing: 0;
}

body {
  background: var(--tg-bg);
  color: var(--tg-fg);
  font-family: var(--tg-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

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

button, input, textarea {
  font-family: inherit;
  letter-spacing: 0;
}

/* ======================== STICKY TOP NAVBAR ======================== */
.tg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tg-border);
}

.tg-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tg-fg);
  white-space: nowrap;
}

.tg-globe-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #307DF3, #60A5FA);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tg-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: var(--tg-muted-fg);
  white-space: nowrap;
}

.tg-nav a:hover,
.tg-nav a.is-active {
  color: var(--tg-fg);
  font-weight: 500;
}

.tg-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.tg-btn-outline {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--tg-border);
  background: #FFFFFF;
  color: var(--tg-fg);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.tg-btn-primary {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: var(--tg-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(48, 125, 243, 0.24);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tg-btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

/* ======================== HERO (#home) ======================== */
.tg-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 84px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tg-ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid #FECACA;
  background: rgba(254, 242, 242, 0.65);
  margin-bottom: 26px;
}

.tg-ph-meta {
  text-align: start;
  line-height: 1.2;
}

.tg-ph-top {
  font-size: 10px;
  font-weight: 700;
  color: #F87171;
  display: block;
}

.tg-ph-bot {
  font-size: 13px;
  font-weight: 600;
  color: #EF4444;
}

.tg-h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.35rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--tg-primary);
  max-width: 860px;
  margin-bottom: 20px;
}

/* Vector Bounding Box Selection Frame around focal word */
.tg-builder-box {
  position: relative;
  display: inline-block;
  padding: 2px 14px 6px;
  margin-inline: 4px;
}

.tg-builder-text {
  background: linear-gradient(135deg, #68686E, #BCBCC4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tg-bbox-svg {
  position: absolute;
  inset: -4px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 8px);
  pointer-events: none;
  transform: rotate(-0.5deg);
}

.tg-hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: var(--tg-muted-fg);
  line-height: 1.75;
  margin-bottom: 28px;
}

.tg-hero-cta {
  padding: 15px 38px;
  border-radius: 999px;
  border: none;
  background: var(--tg-primary);
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(48, 125, 243, 0.25);
}

.tg-globe-stage {
  margin-top: 48px;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--tg-border);
  position: relative;
  background: #F8FAFC;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

.tg-globe-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tg-globe-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ======================== LOGO MARQUEE ======================== */
.tg-marquee-sec {
  border-top: 1px solid var(--tg-border);
  padding: 44px 0;
  overflow: hidden;
  text-align: center;
}

.tg-eyebrow {
  font-family: var(--tg-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tg-primary);
  margin-bottom: 10px;
  display: block;
}

.tg-marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  margin-top: 18px;
  animation: tgMarquee 28s linear infinite;
}

@keyframes tgMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.tg-marquee-item {
  font-size: 18px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.34);
  white-space: nowrap;
}

/* ======================== HIGHLIGHT BANNER ======================== */
.tg-highlight {
  background: rgba(48, 125, 243, 0.05);
  border-top: 1px solid var(--tg-border);
  border-bottom: 1px solid var(--tg-border);
  padding: 56px 28px;
}

.tg-highlight-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ======================== SPLIT SECTIONS (#product, #solutions) ======================== */
.tg-split-sec {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 56px;
}

.tg-h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 14px;
}

.tg-bullets {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--tg-fg);
}

.tg-bullets li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tg-primary);
  flex-shrink: 0;
}

.tg-preview-card {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid var(--tg-border);
  background: rgba(241, 245, 249, 0.55);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tg-map-toolbar {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--tg-border);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.tg-style-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--tg-border);
  background: #FFFFFF;
  font-size: 12px;
  cursor: pointer;
}

.tg-style-chip.is-active {
  background: var(--tg-primary);
  color: #FFFFFF;
  border-color: var(--tg-primary);
}

.tg-map-canvas {
  flex: 1;
  width: 100%;
  display: block;
}

/* ======================== PRICING & CONTACT ======================== */
.tg-pricing-sec {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 28px;
  border-top: 1px solid var(--tg-border);
}

.tg-pricing-grid {
  margin: 36px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tg-price-card {
  border-radius: 18px;
  border: 1px solid var(--tg-border);
  background: #FFFFFF;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-price-val {
  font-size: 32px;
  font-weight: 600;
  color: var(--tg-primary);
}

.tg-contact-sec {
  max-width: 580px;
  margin: 0 auto;
  padding: 84px 24px;
  text-align: center;
}

.tg-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--tg-border);
  font-size: 14px;
  outline: none;
}

.tg-input:focus {
  border-color: var(--tg-primary);
}

/* Hash Subroutes (#/resources, #/examples) */
.tg-subview {
  display: none;
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

body.is-subroute .tg-home-flow {
  display: none;
}

body.is-subroute .tg-subview {
  display: block;
}

/* Footer */
.tg-footer {
  border-top: 1px solid var(--tg-border);
  padding: 34px 28px 42px;
}

.tg-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--tg-muted-fg);
}

.tg-showcase-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--tg-muted-bg);
  color: var(--tg-fg);
  font-size: 13px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .tg-nav {
    display: none;
  }
  .tg-split-sec,
  .tg-pricing-grid {
    grid-template-columns: 1fr;
  }
}
