/* =====================================================
   INWSOCIAL — เทพโซเชียล
   Creator Growth Platform
   ===================================================== */

:root{
  --bg: #050505;
  --surface: #0d0d0f;
  --surface-hover: #151519;
  --surface-2: #0a0a0c;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dim: #1d4ed8;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --glow: rgba(59,130,246,.35);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.16,.8,.24,1);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Kanit", sans-serif;
  font-weight: 300;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a{ text-decoration: none; color: inherit; }
ul{ list-style: none; margin: 0; padding: 0; }
img{ max-width: 100%; display: block; }

::selection{ background: var(--primary); color: #fff; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =================== BUTTONS =================== */
.btn-primary{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  box-shadow: 0 0 0 rgba(59,130,246,0);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover{
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}
.btn-primary.btn-sm{ padding: .6rem 1.3rem; font-size: .92rem; }

.btn-ghost{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 400;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.btn-ghost:hover{
  border-color: var(--primary-light);
  background: rgba(59,130,246,.08);
  transform: translateY(-2px);
}
.btn-ghost i{ transition: transform .3s var(--ease); }
.btn-ghost:hover i{ transform: translateX(3px); }

/* =================== NAVBAR =================== */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled{
  padding: .7rem 0;
  background: rgba(5,5,5,.65);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand{ display: flex; flex-direction: column; line-height: 1; }
.brand-en{ font-weight: 700; font-size: 1.28rem; letter-spacing: .01em; }
.brand-th{ font-size: .68rem; color: var(--text-muted); letter-spacing: .04em; margin-top: 2px; }

.nav-links{ display: flex; align-items: center; gap: 2.1rem; }
.nav-links a{
  font-size: .93rem;
  color: var(--text-muted);
  font-weight: 400;
  position: relative;
  transition: color .25s var(--ease);
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--primary-light);
  transition: width .3s var(--ease);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a:hover::after{ width: 100%; }

.nav-actions{ display: flex; align-items: center; gap: 1.2rem; }
.nav-login{ font-size: .9rem; color: var(--text-muted); transition: color .25s var(--ease); }
.nav-login:hover{ color: var(--text); }

.nav-burger{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-burger span{ width: 22px; height: 1.5px; background: #fff; transition: all .3s var(--ease); }
.nav-burger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2){ opacity: 0; }
.nav-burger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(5,5,5,.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.5rem 2rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a{ font-size: 1.15rem; color: var(--text); }
.mobile-menu .nav-login{ color: var(--text-muted); }
.mobile-menu .btn-primary{ justify-content: center; margin-top: .5rem; }

/* =================== HERO =================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  overflow: hidden;
  text-align: center;
}
.hero-glow{
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 1100px;
  max-width: 180vw;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, rgba(59,130,246,.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero-signal{
  position: absolute;
  left: 0; right: 0;
  bottom: 12%;
  height: 300px;
  opacity: .55;
  pointer-events: none;
}
.hero-signal svg{ width: 100%; height: 100%; }
#signalPath{
  fill: none;
  stroke: url(#none);
  stroke: var(--primary);
  stroke-width: 1;
  opacity: .5;
  filter: drop-shadow(0 0 6px var(--glow));
}

.hero-inner{ position: relative; max-width: 780px; z-index: 2; }
.hero-eyebrow{
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.hero-title{
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  margin: 0 0 1.6rem;
}
.hero-title .line{ display: block; }
.hero-title .accent{ color: var(--primary-light); }

.hero-sub{
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.6rem;
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}

.hero-paths{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.path-chip{
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .55rem 1rem;
  border-radius: 999px;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.path-chip i{ color: var(--primary-light); font-size: .78rem; }
.path-chip b{ color: var(--text); font-weight: 500; }
.path-chip:hover{ border-color: var(--primary-light); background: rgba(59,130,246,.06); color: var(--text); }

/* =================== SECTION SHARED =================== */
.section{
  max-width: 1240px;
  margin: 0 auto;
  padding: 6.5rem 2rem;
}
.section-head{
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3.5rem;
}
.section-head h2{
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}
.section-head p{
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}
.section-cta{ text-align: center; margin-top: 3rem; }

/* =================== FEATURE CARDS =================== */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card{
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.1rem 2.6rem;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card::before{
  content: "";
  position: absolute;
  top: -60%; right: -30%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.feature-card:hover{
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.feature-card:hover::before{ opacity: 1; }

.feature-icon{
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  color: var(--primary-light);
  font-size: 1.2rem;
  margin-bottom: 1.6rem;
}
.feature-kicker{
  position: absolute;
  top: 2.4rem; right: 2.1rem;
  font-size: .78rem;
  color: var(--text-faint);
  letter-spacing: .1em;
}
.feature-card h3{
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .02em;
  margin: 0 0 .25rem;
}
.feature-sub{
  color: var(--primary-light);
  font-size: .88rem;
  font-weight: 400;
  margin: 0 0 1.1rem;
}
.feature-desc{
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.7;
  margin: 0 0 1.4rem;
  min-height: 4.6em;
}
.feature-list{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.feature-list li{
  font-size: .78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .35rem .75rem;
  border-radius: 999px;
}
.feature-link{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  z-index: 2;
}
.feature-link i{ font-size: .78rem; transition: transform .3s var(--ease); }
.feature-card:hover .feature-link i{ transform: translateX(4px); }

.feature-visual{
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  height: 70px;
  display: flex;
  align-items: center;
}
.gear-visual{ gap: 1.2rem; font-size: 1.5rem; color: var(--text-faint); }
.gear-visual i{ transition: color .35s var(--ease), transform .35s var(--ease); }
.feature-card:hover .gear-visual i{ color: var(--primary-light); }
.gear-visual i:nth-child(2){ transition-delay: .05s; }
.gear-visual i:nth-child(3){ transition-delay: .1s; }

.chart-visual svg{ width: 100%; height: 60px; overflow: visible; }
.chart-visual polyline{
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .4s var(--ease);
}
.feature-card:hover .chart-visual polyline{ stroke: var(--primary-light); filter: drop-shadow(0 0 8px var(--glow)); }

.app-visual{ gap: .8rem; }
.app-chip{
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-faint);
  transition: all .35s var(--ease);
}
.feature-card:hover .app-chip{ color: var(--primary-light); border-color: rgba(59,130,246,.3); transform: translateY(-3px); }
.app-visual .app-chip:nth-child(2){ transition-delay: .05s; }
.app-visual .app-chip:nth-child(3){ transition-delay: .1s; }

/* =================== PRODUCT GRID =================== */
.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.product-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  text-align: left;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); }
.product-thumb{
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: var(--primary-light);
  margin-bottom: 1.2rem;
  transition: background .35s var(--ease);
}
.product-card:hover .product-thumb{ background: rgba(59,130,246,.08); }
.product-cat{ font-size: .74rem; color: var(--text-faint); letter-spacing: .05em; text-transform: uppercase; }
.product-card h4{ font-size: 1.02rem; font-weight: 500; margin: .5rem 0 .7rem; }
.product-price{ color: var(--primary-light); font-weight: 500; font-size: .96rem; margin-bottom: 1rem; }
.product-link{ font-size: .85rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color .3s var(--ease), border-color .3s var(--ease); }
.product-card:hover .product-link{ color: var(--text); border-color: var(--primary-light); }

/* =================== LAB SECTION =================== */
.lab-section{
  background: var(--surface-2);
  border-radius: 32px;
  max-width: 1200px;
}
.lab-eyebrow{
  display: block;
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.lab-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.lab-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.lab-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); }
.lab-thumb{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.22);
  color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.lab-cat{ font-size: .72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.lab-card h4{ font-size: .98rem; font-weight: 500; line-height: 1.5; margin: .6rem 0 .6rem; }
.lab-card p{ font-size: .84rem; color: var(--text-muted); line-height: 1.65; margin: 0 0 1.1rem; }
.lab-link{ font-size: .84rem; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.lab-link i{ font-size: .7rem; transition: transform .3s var(--ease); }
.lab-card:hover .lab-link i{ transform: translateX(3px); }

/* =================== SOCIAL GROWTH =================== */
.growth-section{ padding-top: 2rem; padding-bottom: 2rem; }
.growth-inner{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}
.growth-copy h2{
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.25;
  margin: 0 0 1.1rem;
}
.growth-copy p{
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1.8rem;
  max-width: 440px;
}
.platform-row{ display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.platform-pill{
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .5rem 1rem;
  border-radius: 999px;
}
.platform-pill i{ color: var(--primary-light); }

.growth-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.stat-box{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
}
.stat-num{
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: -.01em;
}
.stat-suffix{ font-size: 1.3rem; font-weight: 700; color: var(--primary-light); }
.stat-label{ display: block; font-size: .82rem; color: var(--text-muted); margin-top: .4rem; }

/* =================== JOURNEY =================== */
.journey-flow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.journey-step{
  text-align: center;
  flex: 0 0 auto;
  width: 190px;
}
.journey-num{
  display: inline-block;
  font-size: .82rem;
  color: var(--primary-light);
  border: 1px solid rgba(59,130,246,.3);
  background: rgba(59,130,246,.08);
  width: 40px; height: 40px;
  line-height: 40px;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.journey-step h4{ font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; margin: 0 0 .4rem; }
.journey-step p{ color: var(--text-muted); font-size: .88rem; margin: 0; }
.journey-line{ flex: 1 1 auto; height: 1px; background: var(--border); position: relative; min-width: 40px; }
.journey-line span{
  position: absolute; top: -3px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 10px var(--glow);
  animation: travel 3.2s ease-in-out infinite;
}
@keyframes travel{
  0%{ left: 0; opacity: 0; }
  10%{ opacity: 1; }
  90%{ opacity: 1; }
  100%{ left: calc(100% - 7px); opacity: 0; }
}

/* =================== CTA =================== */
.cta-section{
  position: relative;
  margin: 2rem auto 0;
  max-width: 1240px;
  padding: 5.5rem 2rem;
  text-align: center;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.cta-glow{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,.22) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner{ position: relative; z-index: 2; }
.cta-inner h2{
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}
.cta-inner p{
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.4rem;
  line-height: 1.75;
}
.cta-actions{ display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* =================== FOOTER =================== */
.site-footer{ padding: 5rem 2rem 2rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner{
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p{ color: var(--text-muted); font-size: .85rem; margin-top: .6rem; letter-spacing: .05em; }
.footer-col h5{ font-size: .8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; font-weight: 500; }
.footer-col{ display: flex; flex-direction: column; gap: .75rem; }
.footer-col a{ font-size: .9rem; color: var(--text-muted); transition: color .25s var(--ease); }
.footer-col a:hover{ color: var(--text); }
.footer-bottom{
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .8rem;
  color: var(--text-faint);
}

/* =================== SCROLL REVEAL =================== */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* =================== RESPONSIVE =================== */
@media (max-width: 991px){
  .nav-links{ display: none; }
  .nav-burger{ display: flex; }
  .nav-actions .nav-login{ display: none; }

  .feature-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .lab-grid{ grid-template-columns: repeat(2, 1fr); }

  .growth-inner{ grid-template-columns: 1fr; padding: 2.5rem; }
  .growth-stats{ grid-template-columns: repeat(2, 1fr); }

  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .nav-inner{ padding: 0 1.25rem; }
  .hero{ padding: 7.5rem 1.25rem 4rem; }
  .hero-title{ font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-paths{ flex-direction: column; align-items: stretch; }
  .path-chip{ justify-content: center; }

  .section{ padding: 4rem 1.25rem; }
  .lab-section{ border-radius: 22px; padding: 3.5rem 1.25rem; }
  .product-grid{ grid-template-columns: 1fr 1fr; gap: .8rem; }
  .lab-grid{ grid-template-columns: 1fr; }

  .journey-flow{ flex-direction: column; gap: 1.5rem; }
  .journey-line{ width: 1px; height: 40px; min-width: 0; }
  .journey-line span{ top: 0; left: -3px; animation: travelY 3.2s ease-in-out infinite; }
  @keyframes travelY{
    0%{ top: 0; opacity: 0; }
    10%{ opacity: 1; }
    90%{ opacity: 1; }
    100%{ top: calc(100% - 7px); opacity: 0; }
  }

  .cta-section{ border-radius: 22px; padding: 4rem 1.25rem; }
  .cta-actions{ flex-direction: column; align-items: stretch; }
  .cta-actions a{ justify-content: center; }

  .footer-inner{ grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom{ flex-direction: column; text-align: center; }
}
