/* =============================================
   DIGITAL GROWTH — style.css
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --orange:        #ff7a00;
  --orange-light:  #ff9a3c;
  --bg-dark:       #05070a;
  --bg-card:       #0f1621;
  --bg-section:    #0b1018;
  --blue-deep:     #1e293b;
  --accent:        #3b82f6;
  --text-primary:  #f0f4ff;
  --text-muted:    #64748b;
  --border-dim:    rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0   rgba(255, 122, 0, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 122, 0, 0); }
  100% { box-shadow: 0 0 0 0   rgba(255, 122, 0, 0); }
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0); }
}

@keyframes gradMove {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes scanline {
  0%   { top: -5%; }
  100% { top: 105%; }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible        { opacity: 1; transform: translateY(0); }
.reveal-delay-1        { transition-delay: 0.12s; }
.reveal-delay-2        { transition-delay: 0.24s; }
.reveal-delay-3        { transition-delay: 0.36s; }
.reveal-delay-4        { transition-delay: 0.48s; }

/* =============================================
   SHARED UTILITIES
   ============================================= */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-title.white { color: #fff; }

.org-text {
  color: var(--orange);
  font-weight: 600;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(59,130,246,.08) 0%, transparent 70%),
    var(--bg-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,122,0,.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(59,130,246,.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

.hero-label .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulseRing 2s infinite;
  flex-shrink: 0;
}

/* Hero Title */
.hero-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title .hl {
  background: linear-gradient(120deg, #e2b091, var(--orange), #e2b091);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradMove 3s linear infinite;
}

.hero-desc {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.8;
}

/* Counter Cards */
.counters {
  display: flex;
  gap: 16px;
  margin-top: 44px;
}

.c-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: default;
  min-width: 0;
}
.c-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.22);
}

.c-num {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.c-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.c-label.org { color: var(--orange); }

/* Hero Visual */
.hero-visual { position: relative; }

.img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.img-wrapper img {
  width: 100%;
  display: block;
  height: 420px;
  object-fit: cover;
}

.img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(5,7,10,.75));
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.65), transparent);
  animation: scanline 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.float-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 3;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: livePulse 2s infinite;
  flex-shrink: 0;
}

.badge-text {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.float-card {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 3;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  animation: floatY 4s ease-in-out infinite;
}

.float-card .val {
  font-family: 'Kanit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
}

.float-card .lbl {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* =============================================
   CHALLENGE SECTION
   ============================================= */
.challenge {
  padding: 100px 24px;
  background: #fff;
  color: #111;
  position: relative;
  overflow: hidden;
}

.challenge::before {
  content: 'CHALLENGE';
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Kanit', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.03);
  letter-spacing: 4px;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.ch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.challenge-left .section-label { color: var(--orange); }

.challenge-left .section-title {
  color: #111;
}

.ch-body {
  color: #374151;
  line-height: 1.8;
  font-size: 0.95rem;
}
.ch-body p + p { margin-top: 16px; }

.ch-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ch-card {
  background: #0a0e14;
  color: #fff;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ch-card:hover {
  transform: translateX(6px);
  border-color: rgba(255, 122, 0, 0.2);
}

.ch-card i {
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}

.ch-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ch-card p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* =============================================
   TECH SECTION
   ============================================= */
.tech {
  padding: 100px 24px;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.tech-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.tech-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.1), transparent 60%);
  pointer-events: none;
}

.tech-body {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tech-item:hover {
  border-color: rgba(59, 130, 246, 0.28);
  transform: translateX(5px);
}

.tech-item i {
  font-size: 1rem;
  color: var(--accent);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tech-item h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.tech-item p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* =============================================
   IMPACT SECTION
   ============================================= */
.impact {
  padding: 100px 24px;
  background: var(--bg-dark);
}

.impact-title {
  text-align: center;
  font-family: 'Kanit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 60px;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.impact-box {
  padding: 48px 44px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.impact-box .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 16px;
  display: block;
}

.impact-box h3 {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.impact-box p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.65;
}

/* Box variants */
.ib-blue {
  background: var(--blue-deep);
  grid-row: 2 / 2;
}
.ib-blue::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  filter: blur(30px);
  pointer-events: none;
}

.ib-white {
  background: #fff;
  color: #111;
}
.ib-white .lbl { color: #374151; opacity: 1; }
.ib-white p    { color: #374151; }

.ib-orange {
  background: var(--orange);
}
.ib-orange::before {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  filter: blur(20px);
  pointer-events: none;
}

.ib-quote {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
}

blockquote {
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ff4500);
  flex-shrink: 0;
}

.author-strong {
  font-weight: 600;
  font-size: 0.9rem;
}
.author-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quote-icon {
  position: absolute;
  right: 24px; bottom: 24px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.04);
}

/* =============================================
   READY / CTA SECTION
   ============================================= */
.ready {
  padding: 120px 24px;
  background: var(--bg-dark);
}

.ready-card {
  background: var(--blue-deep);
  border-radius: 28px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ready-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255,122,0,.07) 0%, transparent 60%);
  pointer-events: none;
}

.ready-title {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ready-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.ready-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ready-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.ready-list li i {
  color: var(--orange);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ready-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ready-form input,
.ready-form select {
  padding: 15px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
  outline: none;
  width: 100%;
}
.ready-form input::placeholder { color: #64748b; }
.ready-form select option       { background: #1e293b; color: #fff; }

.ready-form input:focus,
.ready-form select:focus {
  border-color: rgba(255, 122, 0, 0.4);
}

.ready-form button {
  padding: 16px;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.ready-form button:hover  { background: var(--orange-light); transform: translateY(-2px); }
.ready-form button:active { transform: translateY(0); }

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .ch-grid,
  .tech-grid,
  .ready-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ib-blue   { grid-row: auto; }
  .ib-quote  { grid-column: auto; }

  .counters  { gap: 12px; }

  .challenge::before { display: none; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {

  /* Sections */
  .hero     { padding: 100px 20px 60px; }
  .challenge,
  .tech,
  .impact   { padding: 70px 20px; }
  .ready    { padding: 70px 20px; }

  /* Hero */
  .hero-title { font-size: 2.2rem; }
  .hero-desc  { font-size: 0.9rem; }

  .counters {
    flex-direction: column;
    align-items: stretch;
  }
  .c-card { width: 100%; }

  .img-wrapper img { height: 240px; }
  .float-badge,
  .float-card      { display: none; }

  /* Challenge */
  .section-title   { font-size: 1.9rem; }

  /* Tech */
  .tech-img-wrap img { height: 240px; }

  /* Impact */
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .impact-title  { font-size: 2rem; margin-bottom: 36px; }
  .impact-box    { padding: 32px 24px; }
  .impact-box h3 { font-size: 2.8rem; }

  /* Ready */
  .ready-card {
    padding: 36px 24px;
    border-radius: 20px;
    gap: 36px;
  }
  .ready-card::before { display: none; }
  .ready-title { font-size: 1.8rem; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .hero-title     { font-size: 1.9rem; }
  .section-title  { font-size: 1.7rem; }
  .impact-box     { padding: 24px 18px; }
  .impact-box h3  { font-size: 2.3rem; }
  .c-num          { font-size: 1.5rem; }

  .ready-form input,
  .ready-form select { padding: 13px 14px; }
}