/* ============================================================
   TG Data Apps — marketing site custom styles
   Layered on top of theme.scss; defines layout components.
   ============================================================ */

@keyframes tg-fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tg-glowPulse {
  0% {
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.40)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.30));
  }

  100% {
    filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.62)) drop-shadow(0 0 30px rgba(56, 189, 248, 0.50));
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 1.25rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  animation: tg-fadeUp 0.8s ease both;
}

.hero .hero-stamp,
.hero img.hero-stamp {
  display: block;
  margin: 0 auto 4rem;
  width: clamp(220px, 30vw, 340px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.45)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.35)) drop-shadow(0 8px 26px rgba(45, 212, 191, 0.22));
  transition: filter 0.25s ease;
  animation: tg-glowPulse 1.6s ease-in-out 1 both;
}

.hero .hero-stamp:hover,
.hero .hero-stamp:focus-visible,
.hero img.hero-stamp:hover,
.hero img.hero-stamp:focus-visible {
  animation: tg-glowPulse 2.2s ease-in-out infinite alternate;
}

/* ---------- Navbar logo handling ---------- */
.navbar .navbar-brand {
  max-width: 72vw;
}

.navbar .navbar-brand .navbar-title {
  display: none !important;
}

.navbar .navbar-brand img,
.navbar .navbar-brand .navbar-logo {
  height: 46px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.45)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
  transition: filter 0.25s ease;
  animation: tg-glowPulse 1.6s ease-in-out 1 both;
}

.navbar .navbar-brand:hover img,
.navbar .navbar-brand:focus-visible img,
.navbar .navbar-brand:hover .navbar-logo,
.navbar .navbar-brand:focus-visible .navbar-logo {
  animation: tg-glowPulse 2.2s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {

  .hero .hero-stamp,
  .hero img.hero-stamp,
  .navbar .navbar-brand img,
  .navbar .navbar-brand .navbar-logo {
    animation: none;
  }
}

@media (max-width: 640px) {
  .navbar .navbar-brand {
    max-width: 56vw;
  }

  .navbar .navbar-brand img,
  .navbar .navbar-brand .navbar-logo {
    height: 36px;
  }
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.6rem;
  background: rgba(45, 212, 191, 0.06);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero h1 .accent {
  color: #2dd4bf;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: #cdd6e8;
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Buttons (page-level, outside Bootstrap btn) ---------- */
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}

.tg-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.tg-btn-primary {
  background: #f97366;
  color: #0b1733;
  box-shadow: 0 6px 18px rgba(249, 115, 102, 0.35);
}

.tg-btn-primary:hover {
  background: #fb8a7e;
  color: #0b1733;
}

.tg-btn-ghost {
  background: transparent;
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.5);
}

.tg-btn-ghost:hover {
  background: rgba(94, 234, 212, 0.08);
  color: #5eead4;
}

/* ---------- Section wrapper ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  font-weight: 350;
  font-size: 0.85rem;
}

.section p,
.section li {
  font-size: 0.85rem;
  line-height: 1.6;
}

.section-title:is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #b6c2d9;
  max-width: 720px;
  margin: 0 auto 2.25rem;
  font-size: 0.85rem;
}

/* ---------- Card grid ---------- */
.tg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tg-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: tg-fadeUp 0.6s ease both;
}

.tg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.05);
}

.tg-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: #5eead4;
}

.tg-card p {
  margin: 0;
  color: #cdd6e8;
  font-size: 0.97rem;
  line-height: 1.55;
}

.tg-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  display: block;
  color: #7deee0;
  filter: drop-shadow(0 0 4px rgba(45, 212, 191, 0.28)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.20));
  transition: transform 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.tg-card:hover .icon,
.tg-card:focus-within .icon {
  color: #a5f3fc;
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.45)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
}

.tg-card .price {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: #f97366;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.tg-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.6rem;
}

/* ---------- Case study card ---------- */
.case-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
}

.case-card:hover {
  border-color: rgba(45, 212, 191, 0.5);
}

.case-card h3 {
  margin: 0 0 0.25rem;
  color: #5eead4;
}

.case-card .meta {
  font-size: 0.85rem;
  color: #b6c2d9;
  margin-bottom: 0.6rem;
}

.case-card .meta .pill {
  display: inline-block;
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-right: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-card .links {
  margin-top: 0.6rem;
}

.case-card .links a {
  margin-right: 1rem;
  font-weight: 600;
}

/* ---------- Screenshot grids inside case cards ---------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0.25rem;
}

.shot-grid figure {
  margin: 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.shot-grid figure:hover {
  border-color: rgba(45, 212, 191, 0.45);
  transform: translateY(-2px);
}

.shot-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  font-size: 0.78rem;
  color: #b6c2d9;
  padding: 0.45rem 0.65rem 0.6rem;
  line-height: 1.35;
}

.shot-wide img {
  aspect-ratio: auto;
  max-height: 480px;
  object-fit: contain;
  background: #0b1733;
}

/* ---------- Featured visualization (image + long caption) ---------- */
.viz-figure {
  margin: 1rem 0 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.viz-figure img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: contain;
  background: #0b1733;
}

.viz-figure p {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.88rem;
  color: #c4cee0;
  line-height: 1.5;
}

.viz-figure p strong {
  color: #e6edf7;
}

/* ---------- Founder photo row ---------- */
.founder-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.founder-row> :first-child {
  grid-column: 1;
}

.founder-row> :not(:first-child) {
  grid-column: 2;
  max-width: 74ch;
}

.founder-photo {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.founder-row p {
  font-weight: 400;
  margin: 0 0 0.9rem;
  overflow-wrap: anywhere;
}

.founder-row strong,
.founder-row b {
  font-weight: 500;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .founder-row {
    grid-template-columns: 1fr;
  }

  .founder-row> :first-child,
  .founder-row> :not(:first-child) {
    grid-column: 1;
    max-width: none;
  }

  .founder-photo {
    max-width: 200px;
  }
}

/* ---------- Process steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 16px;
  background: #f97366;
  color: #0b1733;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(249, 115, 102, 0.4);
}

.step h4 {
  margin: 0.5rem 0 0.4rem;
  color: #5eead4;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: #cdd6e8;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Stat row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.stat .num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #2dd4bf;
}

.stat .label {
  font-size: 0.85rem;
  color: #b6c2d9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Pricing table ---------- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-table th {
  background: rgba(45, 212, 191, 0.10);
  color: #e8eef8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table .price-cell {
  color: #f97366;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  margin: 3rem auto;
  padding: 2.5rem 1.5rem;
  max-width: 1000px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(249, 115, 102, 0.15));
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.cta-banner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta-banner p {
  color: #cdd6e8;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

/* ---------- Tag chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0 0;
}

.chip {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cdd6e8;
}

/* ---------- Niche list ---------- */
.niches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.niches li {
  padding: 0.85rem 1rem;
  border-left: 3px solid #2dd4bf;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px;
  color: #e8eef8;
}

/* ---------- FAQ ---------- */
.faq details {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #5eead4;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: #f97366;
  font-weight: 800;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.6rem 0 0;
  color: #cdd6e8;
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- Quick navigation links ---------- */
.quick-links,
.quick-links p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.5rem auto 0;
  padding: 0;
}

.quick-links p {
  margin: 0;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  color: #5eead4;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(45, 212, 191, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.quick-links a:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(94, 234, 212, 0.55);
  text-decoration: none;
}

/* ---------- Desert landscape banner divider ---------- */
.desert-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.desert-divider p {
  margin: 0;
  line-height: 0;
}

.desert-divider img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 185px;
  object-fit: cover;
  object-position: center;
}

.desert-divider figcaption {
  display: none;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .section {
    padding: 2rem 1rem;
  }
}