:root {
  --primary: #00b900;
  --primary-dark: #009900;
  --primary-light: #22c55e;
  --primary-glow: rgba(0, 185, 0, 0.4);
  --secondary: #0f172a;
  --accent: #10b981;
  --bg-dark: #020617;
  --bg-light: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --radius-lg: 2.5rem;
  --radius-md: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 185, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  z-index: -1;
}

nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 1000px;
  max-width: 95%;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 2rem;
  border-radius: 100px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav.scrolled {
  top: 1rem;
  padding: 0.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: none;
  padding: 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0 0.5rem;
  border-radius: 8px;
}

.line-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 12px var(--primary-glow)) brightness(1.05);
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.line-icon:hover {
  transform: scale(1.15) rotate(8deg);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px -5px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px -5px var(--primary-glow);
}

.hero {
  padding: 12rem 0 6rem;
  text-align: center;
}

.hero-tag {
  background: white;
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--glass-border);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--primary), #10b981);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.line-icon-large {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 15px 30px var(--primary-glow)) brightness(1.1);
  object-fit: contain;
  animation: logo-float 4s infinite ease-in-out;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.hero-cta-main {
  background: var(--secondary);
  color: white;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-cta-main:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
}

.hero-cta-sub {
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 15px 30px var(--primary-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-cta-sub:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 40px var(--primary-glow);
}

.hero-image-preview {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 3rem;
  padding: 1.5rem;
  background: white;
  box-shadow: var(--shadow-premium);
  cursor: zoom-in;
  position: relative;
  transition: all 0.5s ease;
}

.hero-image-preview img {
  width: 100%;
  border-radius: 2rem;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 8rem 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.section-header h2 span {
  font-size: 1.5rem;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.step-card {
  background: white;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-premium);
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #f1f5f9;
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 0;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.step-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.step-image-container {
  margin-top: auto;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: zoom-in;
  transition: all 0.3s ease;
  background: #f8fafc;
  border: 4px solid #f8fafc;
}

.step-image-container:hover {
  transform: scale(1.02);
  border-color: var(--primary-light);
}

.step-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--primary-glow);
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.download-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.webhook-container {
  max-width: 800px;
  margin: 3rem auto;
  background: white;
  padding: 3rem;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.webhook-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.webhook-box code {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: var(--secondary);
  word-break: break-all;
}

.copy-btn {
  background: white;
  border: 1px solid #e2e8f0;
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.floating-chat {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background: #06c755;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(6, 199, 85, 0.4);
  z-index: 1000;
  animation: float-floating 3s infinite ease-in-out;
  transition: all 0.3s ease;
}

.floating-chat img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.floating-chat:hover {
  transform: scale(1.1) translateY(-5px);
  background: #05b34c;
  box-shadow: 0 20px 45px rgba(6, 199, 85, 0.5);
}

@keyframes float-floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(15px);
  z-index: 9999;
  padding: 2rem;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1.5rem;
}

footer {
  background: var(--secondary);
  color: white;
  padding: 6rem 0;
  text-align: center;
  margin-top: 8rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.footer-logo span { color: var(--primary); }

@media (max-width: 1100px) {
  nav { min-width: 90%; }
}

@media (max-width: 768px) {
  nav {
    width: 100%;
    min-width: 0;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  
  nav .container { 
    flex-direction: column;
    gap: 0.5rem; 
    align-items: center;
  }

  .logo { font-size: 1.2rem; }
  .line-icon { width: 28px; height: 28px; }

  .nav-links {
    position: static;
    transform: none;
    background: transparent;
    padding: 0.25rem 1rem;
    width: 100%;
    justify-content: flex-start;
    box-shadow: none;
    border: none;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 1.25rem;
    scrollbar-width: none;
  }
  
  .nav-links::-webkit-scrollbar { display: none; }
  
  .nav-links a:not(.nav-cta) { 
    font-size: 0.8rem; 
    font-weight: 500;
  }
  
  .nav-cta { display: none; }

  .hero { padding: 9rem 1rem 3rem; }
  .hero-tag { font-size: 0.75rem; margin-bottom: 1rem; }
  .hero h1 { font-size: 1.8rem; margin-bottom: 1.25rem; }
  .line-icon-large { width: 60px; height: 60px; margin-bottom: 1.5rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 2.5rem; padding: 0 1rem; }
  
  .hero-btns { 
    flex-direction: column; 
    padding: 0 1.5rem;
    gap: 0.75rem;
  }
  
  .hero-cta-main, .hero-cta-sub {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .floating-chat {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
  }
  
  .floating-chat img { width: 30px; height: 30px; }

  .section { padding: 3rem 0; }
  .section-header h2 { font-size: 1.7rem; gap: 0.75rem; }
  .section-header h2 span { width: 35px; height: 35px; font-size: 0.9rem; }
}