/* =============================================
   GREENBRAIN TECHNOLOGIES — HOMEPAGE
   Premium Corporate Theme
   ============================================= */

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

:root {
  --gb-green-deep:    #0b5c2e;
  --gb-green-mid:     #0d9744;
  --gb-green-bright:  #22c55e;
  --gb-green-mint:    #4ade80;
  --gb-green-tint:    #f0fdf4;
  --gb-dark:          #0d1117;
  --gb-dark-2:        #111827;
  --gb-dark-3:        #1f2937;
  --gb-text:          #111827;
  --gb-text-muted:    #6b7280;
  --gb-border:        #e5e7eb;
  --gb-white:         #ffffff;
  --gb-light:         #f8fafc;
  --gb-font-head:     'Montserrat', sans-serif;
  --gb-font-body:     'Montserrat', sans-serif;
  --gb-radius:        8px;
  --gb-radius-lg:     16px;
  --gb-shadow:        0 4px 24px rgba(0,0,0,.08);
  --gb-shadow-lg:     0 12px 48px rgba(0,0,0,.15);
  --gb-max:           1200px;
  --gb-transition:    .25s ease;
}

html { scroll-behavior: smooth; background: var(--gb-dark); }
body { font-family: var(--gb-font-body); color: var(--gb-text); background: var(--gb-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.gb-container { max-width: var(--gb-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }
.gb-section-label { font-family: var(--gb-font-body); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gb-green-mid); margin-bottom: 1rem; display: block; }
.gb-tag { display: inline-block; background: rgba(13,151,68,.12); color: var(--gb-green-mid); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 100px; }

/* BUTTONS */
.gb-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.8rem; border-radius: var(--gb-radius); font-family: var(--gb-font-body); font-size: .9rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; border: 2px solid transparent; transition: all var(--gb-transition); white-space: nowrap; }
.gb-btn--primary { background: var(--gb-green-mid); color: var(--gb-white); border-color: var(--gb-green-mid); }
.gb-btn--primary:hover { background: var(--gb-green-deep); border-color: var(--gb-green-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,151,68,.35); }
.gb-btn--outline { background: transparent; color: var(--gb-white); border-color: rgba(255,255,255,.4); }
.gb-btn--outline:hover { border-color: var(--gb-white); background: rgba(255,255,255,.08); transform: translateY(-1px); }
.gb-btn--outline-dark { background: transparent; color: var(--gb-green-deep); border-color: var(--gb-green-deep); }
.gb-btn--outline-dark:hover { background: var(--gb-green-deep); color: var(--gb-white); transform: translateY(-1px); }
.gb-btn--ghost { background: transparent; color: var(--gb-green-mid); border-color: transparent; padding-left: 0; padding-right: 0; }
.gb-btn--ghost:hover { color: var(--gb-green-deep); gap: .75rem; }
.gb-btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* =============================================
   NAVIGATION
   ============================================= */
.gb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 0;
  background: var(--gb-white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: all .3s ease;
}
.gb-nav.scrolled {
  background: var(--gb-white);
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
  padding: .9rem 0;
}
.gb-nav__inner { display: flex; align-items: center; gap: 2rem; }
.gb-nav__logo { flex-shrink: 0; }
.gb-nav__logo img { height: 36px; width: auto; }
.gb-nav__logo-fallback { font-family: var(--gb-font-head); font-size: 1.05rem; font-weight: 700; color: var(--gb-text); letter-spacing: .02em; line-height: 1.2; }
.gb-nav__logo-fallback span { color: var(--gb-green-mid); display: block; font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.gb-nav__menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; list-style: none; }
.gb-nav__menu > li { position: relative; }
.gb-nav__menu > li > a {
  font-size: .875rem; font-weight: 500; color: var(--gb-text);
  padding: .5rem .85rem; border-radius: 6px;
  transition: all var(--gb-transition);
  display: block;
}
.gb-nav__menu > li > a:hover { color: var(--gb-green-mid); background: rgba(13,151,68,.07); }
.gb-nav__dropdown { position: relative; }
.gb-nav__dropdown-trigger { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.gb-nav__dropdown-menu {
  position: absolute; top: calc(100% + .5rem); left: 0;
  background: var(--gb-white); border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius); padding: .5rem;
  min-width: 180px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all .2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.gb-nav__dropdown:hover .gb-nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gb-nav__dropdown-menu a { display: block; padding: .6rem 1rem; font-size: .85rem; color: var(--gb-text); border-radius: 6px; transition: all var(--gb-transition); }
.gb-nav__dropdown-menu a:hover { background: rgba(13,151,68,.08); color: var(--gb-green-mid); }
.gb-nav__ctas { display: flex; gap: .75rem; align-items: center; flex-shrink: 0; }
.gb-nav__ctas .gb-btn { padding: .6rem 1.2rem; font-size: .83rem; }
.gb-nav .gb-btn--outline { color: var(--gb-green-deep); border-color: var(--gb-green-deep); }
.gb-nav .gb-btn--outline:hover { background: var(--gb-green-deep); color: var(--gb-white); }
.gb-nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.gb-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--gb-text); transition: all .3s; border-radius: 2px; }

/* =============================================
   HERO
   ============================================= */
.gb-hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  background: var(--gb-dark);
  position: relative; overflow: hidden;
  padding: 9rem 0 5rem;
}
.gb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(13,151,68,.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(11,92,46,.18) 0%, transparent 60%);
  pointer-events: none;
}
.gb-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(13,151,68,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(13,151,68,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.gb-hero .gb-container { width: 100%; max-width: 100%; box-sizing: border-box; }
.gb-hero__content { position: relative; z-index: 1; max-width: 780px; width: 100%; box-sizing: border-box; }
@media (min-width: 769px) {
  .gb-hero .gb-container { max-width: var(--gb-max); margin-left: 0; }
}
.gb-hero__pretag {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(13,151,68,.12); border: 1px solid rgba(13,151,68,.25);
  color: var(--gb-green-mint); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1rem .4rem .6rem; border-radius: 100px; margin-bottom: 1.75rem;
}
.gb-hero__pretag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gb-green-mint); animation: gb-pulse 2s ease-in-out infinite; }
.gb-hero h1 {
  font-family: var(--gb-font-head); font-size: clamp(1.75rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
  color: var(--gb-white); margin-bottom: 1.5rem;
}
.gb-hero h1 em { font-style: normal; color: var(--gb-green-mint); }
.gb-hero__sub {
  font-size: clamp(.95rem, 2vw, 1.2rem); font-weight: 400; line-height: 1.7;
  color: rgba(255,255,255,.65); max-width: min(620px, 100%); margin-bottom: 2.5rem;
}
.gb-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.gb-hero__social-proof {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08);
}
.gb-hero__sp-text { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.5; max-width: 200px; }
.gb-hero__sp-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.gb-hero__sp-badge { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 500; padding: .35rem .8rem; border-radius: 6px; }
.gb-hero__visual { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 42%; max-width: 520px; opacity: .08; pointer-events: none; }

#gb-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.gb-tw-cursor {
  display: inline-block;
  width: 3px;
  height: .85em;
  background: var(--gb-green-mint);
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: gb-blink .75s step-end infinite;
}

/* =============================================
   STATS BAR
   ============================================= */
.gb-stats { background: var(--gb-dark-2); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); padding: 3rem 0; position: relative; z-index: 2; }
.gb-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.gb-stat { text-align: center; padding: 1rem 2rem; position: relative; }
.gb-stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.08); }
.gb-stat__number { font-family: var(--gb-font-head); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--gb-white); line-height: 1; margin-bottom: .4rem; }
.gb-stat__number span { color: var(--gb-green-bright); }
.gb-stat__label { font-size: .83rem; font-weight: 500; color: rgba(255,255,255,.45); letter-spacing: .03em; }

/* =============================================
   SECTION HEADINGS
   ============================================= */
.gb-section-head { margin-bottom: 3.5rem; }
.gb-section-head--center { text-align: center; }
.gb-section-head--center .gb-section-label { justify-content: center; display: flex; }
.gb-section-head h2 { font-family: var(--gb-font-head); font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--gb-text); margin-bottom: 1rem; }
.gb-section-head--dark h2 { color: var(--gb-white); }
.gb-section-head p { font-size: 1.05rem; color: var(--gb-text-muted); max-width: 560px; line-height: 1.7; }
.gb-section-head--center p { margin-left: auto; margin-right: auto; }
.gb-section-head--dark p { color: rgba(255,255,255,.55); }

/* =============================================
   SERVICES SECTION
   ============================================= */
.gb-services { padding: 6rem 0; background: var(--gb-white); border-radius: 2.5rem; margin-top: -2.5rem; position: relative; z-index: 3; }
.gb-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gb-service-card {
  background: var(--gb-light); border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg); padding: 2.5rem 2rem;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.gb-service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,151,68,.04) 0%, transparent 60%); opacity: 0; transition: opacity .3s; }
.gb-service-card:hover { transform: translateY(-4px); box-shadow: var(--gb-shadow-lg); border-color: rgba(13,151,68,.3); }
.gb-service-card:hover::before { opacity: 1; }
.gb-service-icon {
  width: 52px; height: 52px; background: rgba(13,151,68,.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.gb-service-icon svg { width: 26px; height: 26px; color: var(--gb-green-mid); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gb-service-card h3 { font-family: var(--gb-font-head); font-size: 1.2rem; font-weight: 700; color: var(--gb-text); margin-bottom: .75rem; }
.gb-service-card p { font-size: .93rem; color: var(--gb-text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.gb-service-card .gb-btn--ghost { font-size: .875rem; font-weight: 600; }

/* =============================================
   SOLUTIONS SECTION
   ============================================= */
.gb-solutions { padding: 6rem 0; background: var(--gb-dark); position: relative; overflow: hidden; border-radius: 2.5rem; margin-top: -2.5rem; z-index: 4; }
.gb-solutions::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(13,151,68,.09) 0%, transparent 60%); pointer-events: none; }
.gb-solutions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; position: relative; }
.gb-solution-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--gb-radius-lg); padding: 2.5rem; transition: all .3s ease; }
.gb-solution-card:hover { background: rgba(255,255,255,.06); border-color: rgba(13,151,68,.35); transform: translateY(-3px); }
.gb-solution-card__tag { margin-bottom: 1.25rem; }
.gb-solution-card h3 { font-family: var(--gb-font-head); font-size: 1.8rem; font-weight: 700; color: var(--gb-white); margin-bottom: 1rem; letter-spacing: -.02em; }
.gb-solution-card p { font-size: .95rem; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 2rem; }
.gb-solution-card__features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.gb-solution-feature { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: rgba(255,255,255,.7); }
.gb-solution-feature::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: rgba(13,151,68,.2); border: 1px solid rgba(13,151,68,.4); display: flex; flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2322c55e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2.5,6 5,8.5 9.5,3.5'/%3E%3C/svg%3E"); background-size: 60%; background-repeat: no-repeat; background-position: center; }
.gb-solution-card .gb-btn--outline { border-color: rgba(13,151,68,.5); color: var(--gb-green-bright); }
.gb-solution-card .gb-btn--outline:hover { background: rgba(13,151,68,.15); border-color: var(--gb-green-bright); color: var(--gb-white); }

/* =============================================
   WHY GREENBRAIN
   ============================================= */
.gb-why { padding: 6rem 0; background: var(--gb-green-tint); border-radius: 2.5rem; margin-top: -2.5rem; position: relative; z-index: 5; }
.gb-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.gb-why__content .gb-section-label { color: var(--gb-green-deep); }
.gb-why__content h2 { font-family: var(--gb-font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--gb-text); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 1rem; }
.gb-why__content > p { font-size: 1rem; color: var(--gb-text-muted); line-height: 1.75; margin-bottom: 2rem; }
.gb-why__points { display: flex; flex-direction: column; gap: 1.25rem; }
.gb-why-point { display: flex; gap: 1rem; align-items: flex-start; }
.gb-why-point__icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(13,151,68,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem; }
.gb-why-point__icon svg { width: 20px; height: 20px; color: var(--gb-green-mid); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gb-why-point__text h4 { font-family: var(--gb-font-head); font-size: 1rem; font-weight: 700; color: var(--gb-text); margin-bottom: .25rem; }
.gb-why-point__text p { font-size: .88rem; color: var(--gb-text-muted); line-height: 1.65; }
.gb-why__visual { background: var(--gb-white); border-radius: var(--gb-radius-lg); padding: 2.5rem; box-shadow: var(--gb-shadow); }
.gb-why__visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gb-metric-card { background: var(--gb-light); border-radius: var(--gb-radius); padding: 1.5rem; text-align: center; }
.gb-metric-card__value { font-family: var(--gb-font-head); font-size: 2rem; font-weight: 700; color: var(--gb-green-deep); line-height: 1; margin-bottom: .35rem; }
.gb-metric-card__label { font-size: .78rem; font-weight: 500; color: var(--gb-text-muted); letter-spacing: .03em; }
.gb-why__visual-footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gb-border); text-align: center; }
.gb-why__visual-footer p { font-size: .88rem; color: var(--gb-text-muted); }
.gb-why__visual-footer strong { color: var(--gb-green-deep); }

/* =============================================
   INDUSTRIES
   ============================================= */
.gb-industries { padding: 6rem 0; background: var(--gb-white); border-radius: 2.5rem; margin-top: -2.5rem; position: relative; z-index: 6; }
.gb-industries__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gb-industry-card {
  background: var(--gb-light); border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg); padding: 1.75rem 1.5rem;
  transition: all .3s ease; cursor: default;
}
.gb-industry-card:hover { border-color: var(--gb-green-mid); background: var(--gb-white); transform: translateY(-3px); box-shadow: var(--gb-shadow); }
.gb-industry-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(13,151,68,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.gb-industry-icon svg { width: 24px; height: 24px; color: var(--gb-green-mid); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gb-industry-card h4 { font-family: var(--gb-font-head); font-size: .95rem; font-weight: 700; color: var(--gb-text); margin-bottom: .5rem; }
.gb-industry-card p { font-size: .82rem; color: var(--gb-text-muted); line-height: 1.6; }

/* =============================================
   CTA BANNER
   ============================================= */
.gb-cta { padding: 6rem 0; background: linear-gradient(135deg, var(--gb-green-deep) 0%, #0d4a25 100%); position: relative; overflow: hidden; border-radius: 2.5rem; margin-top: -2.5rem; z-index: 7; box-shadow: 0 32px 80px rgba(0,0,0,.45); }
.gb-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74,222,128,.12) 0%, transparent 60%); pointer-events: none; }
.gb-cta__inner { text-align: center; position: relative; max-width: 680px; margin: 0 auto; }
.gb-cta__inner .gb-section-label { color: rgba(255,255,255,.6); justify-content: center; display: flex; }
.gb-cta h2 { font-family: var(--gb-font-head); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; color: var(--gb-white); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 1.25rem; }
.gb-cta p { font-size: 1.05rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 2.5rem; }
.gb-cta .gb-btn--primary { background: var(--gb-white); color: var(--gb-green-deep); border-color: var(--gb-white); }
.gb-cta .gb-btn--primary:hover { background: var(--gb-green-mint); border-color: var(--gb-green-mint); color: var(--gb-green-deep); }
.gb-cta .gb-btn--outline { border-color: rgba(255,255,255,.5); color: var(--gb-white); }
.gb-cta .gb-btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--gb-white); }

/* =============================================
   FOOTER
   ============================================= */
.gb-footer { background: var(--gb-dark); border-top: none; padding: 4rem 0 2rem; border-radius: 2.5rem 2.5rem 0 0; margin-top: 3rem; position: relative; z-index: 8; }
.gb-footer__top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.gb-footer__brand img { height: 36px; margin-bottom: 1.25rem; }
.gb-footer__brand-name { font-family: var(--gb-font-head); font-size: 1rem; font-weight: 700; color: var(--gb-white); margin-bottom: .75rem; }
.gb-footer__brand p { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 280px; }
.gb-footer__col h5 { font-family: var(--gb-font-head); font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.gb-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.gb-footer__col ul li a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--gb-transition); }
.gb-footer__col ul li a:hover { color: var(--gb-green-mint); }
.gb-footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gb-footer__bottom p { font-size: .82rem; color: rgba(255,255,255,.3); }
.gb-footer__social { display: flex; gap: .75rem; }
.gb-footer__social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: all var(--gb-transition); color: rgba(255,255,255,.5); }
.gb-footer__social a:hover { background: rgba(13,151,68,.2); border-color: rgba(13,151,68,.4); color: var(--gb-green-mint); }
.gb-footer__social svg { width: 15px; height: 15px; fill: currentColor; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes gb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes gb-blink  { 50% { opacity: 0; } }

.gb-line-outer { display: block; overflow: hidden; line-height: 1.18; }
.gb-line-inner  { display: block; will-change: transform; }

@keyframes gb-reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes gb-reveal-left {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: translateX(0);      }
}
@keyframes gb-reveal-right {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes gb-reveal-scale {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

@supports (animation-timeline: view()) {

  .gb-section-head {
    animation: gb-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }

  .gb-stats__grid { view-timeline-name: --stats-vt; }
  .gb-stat {
    animation: gb-reveal-up linear both;
    animation-timeline: --stats-vt;
    animation-range: entry  0% entry 52%;
  }
  .gb-stat:nth-child(2) { animation-range: entry  9% entry 61%; }
  .gb-stat:nth-child(3) { animation-range: entry 18% entry 70%; }
  .gb-stat:nth-child(4) { animation-range: entry 27% entry 79%; }

  .gb-services__grid { view-timeline-name: --services-vt; }
  .gb-service-card {
    animation: gb-reveal-up linear both;
    animation-timeline: --services-vt;
    animation-range: entry  0% entry 55%;
  }
  .gb-service-card:nth-child(2) { animation-range: entry 13% entry 68%; }
  .gb-service-card:nth-child(3) { animation-range: entry 26% entry 81%; }

  .gb-solutions__grid { view-timeline-name: --solutions-vt; }
  .gb-solution-card {
    animation: gb-reveal-up linear both;
    animation-timeline: --solutions-vt;
    animation-range: entry  0% entry 55%;
  }
  .gb-solution-card:nth-child(2) { animation-range: entry 16% entry 71%; }

  .gb-why__content {
    animation: gb-reveal-left linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  .gb-why__visual {
    animation: gb-reveal-right linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 40%;
  }
  @media (max-width: 1024px) {
    .gb-why__content,
    .gb-why__visual { animation-name: gb-reveal-up; }
  }

  .gb-industries__grid { view-timeline-name: --industries-vt; }
  .gb-industry-card {
    animation: gb-reveal-up linear both;
    animation-timeline: --industries-vt;
    animation-range: entry  0% entry 48%;
  }
  .gb-industry-card:nth-child(2) { animation-range: entry  5% entry 53%; }
  .gb-industry-card:nth-child(3) { animation-range: entry 10% entry 58%; }
  .gb-industry-card:nth-child(4) { animation-range: entry 15% entry 63%; }
  .gb-industry-card:nth-child(5) { animation-range: entry 20% entry 68%; }
  .gb-industry-card:nth-child(6) { animation-range: entry 25% entry 73%; }
  .gb-industry-card:nth-child(7) { animation-range: entry 30% entry 78%; }
  .gb-industry-card:nth-child(8) { animation-range: entry 35% entry 83%; }

  .gb-cta__inner {
    animation: gb-reveal-scale linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }

  .gb-footer__top { view-timeline-name: --footer-vt; }
  .gb-footer__brand {
    animation: gb-reveal-up linear both;
    animation-timeline: --footer-vt;
    animation-range: entry  0% entry 55%;
  }
  .gb-footer__col:nth-child(2) {
    animation: gb-reveal-up linear both;
    animation-timeline: --footer-vt;
    animation-range: entry  9% entry 64%;
  }
  .gb-footer__col:nth-child(3) {
    animation: gb-reveal-up linear both;
    animation-timeline: --footer-vt;
    animation-range: entry 18% entry 73%;
  }
  .gb-footer__col:nth-child(4) {
    animation: gb-reveal-up linear both;
    animation-timeline: --footer-vt;
    animation-range: entry 27% entry 82%;
  }

}

/* =============================================
   CLIENT LOGOS CAROUSEL
   ============================================= */
.gb-clients {
  overflow: hidden;
  padding: 2.5rem 0 0;
  position: relative;
  width: 100%;
  max-width: 780px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.gb-clients__track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: gb-scroll-logos 28s linear infinite;
}
.gb-clients__track:hover { animation-play-state: paused; }
.gb-clients__item {
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: .75rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}
.gb-clients__item:hover { background: rgba(255,255,255,.15); }
.gb-clients__logo {
  height: 40px;
  width: auto;
  display: block;
  opacity: .85;
  filter: grayscale(.3);
  transition: opacity .25s ease, filter .25s ease;
}
.gb-clients__item:hover .gb-clients__logo { opacity: 1; filter: none; }

@keyframes gb-scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .gb-services__grid { grid-template-columns: 1fr 1fr; }
  .gb-why__grid { grid-template-columns: 1fr; gap: 3rem; }
  .gb-industries__grid { grid-template-columns: repeat(2, 1fr); }
  .gb-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .gb-services, .gb-solutions, .gb-why,
  .gb-industries, .gb-cta {
    border-radius: 1.25rem;
    margin-top: -1.25rem;
  }
  .gb-footer { border-radius: 1.25rem 1.25rem 0 0; margin-top: 2rem; }
  .gb-nav__menu, .gb-nav__ctas { display: none; }
  .gb-nav__toggle { display: flex; margin-left: auto; }
  .gb-hero { padding: 7rem 0 4rem; overflow-x: hidden; }
  .gb-hero__pretag { font-size: .7rem; white-space: normal; }
  .gb-hero__ctas { flex-direction: column; }
  .gb-hero__ctas .gb-btn { width: 100%; justify-content: center; box-sizing: border-box; }
  .gb-hero__social-proof { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .gb-clients { max-width: 100%; }

  .gb-nav.is-open .gb-nav__inner { flex-wrap: wrap; }
  .gb-nav.is-open .gb-nav__menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    order: 10;
    margin-left: 0;
    gap: .1rem;
    padding: .75rem 0 .5rem;
    border-top: 1px solid var(--gb-border);
    margin-top: .75rem;
  }
  .gb-nav.is-open .gb-nav__menu > li > a { font-size: .95rem; padding: .7rem .5rem; color: var(--gb-text); }
  .gb-nav.is-open .gb-nav__ctas {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    order: 11;
    gap: .65rem;
    padding-bottom: 1rem;
  }
  .gb-nav.is-open .gb-nav__ctas .gb-btn { width: 100%; justify-content: center; }
  .gb-nav.is-open .gb-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gb-nav.is-open .gb-nav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .gb-nav.is-open .gb-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gb-stats__grid { grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.06); }
  .gb-stat { background: var(--gb-dark-2); }
  .gb-stat::after { display: none !important; }
  .gb-services__grid { grid-template-columns: 1fr; }
  .gb-solutions__grid { grid-template-columns: 1fr; }
  .gb-industries__grid { grid-template-columns: 1fr 1fr; }
  .gb-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .gb-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gb-industries__grid { grid-template-columns: 1fr; }
  .gb-hero__ctas { flex-direction: column; }
  .gb-hero__ctas .gb-btn { width: 100%; justify-content: center; }
  .gb-btn-group { flex-direction: column; }
  .gb-btn-group .gb-btn { width: 100%; justify-content: center; }
}

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