@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("./assets/fonts/LINESeedSansTH_W_Th.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("./assets/fonts/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("./assets/fonts/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("./assets/fonts/LINESeedSansTH_W_He.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("./assets/fonts/LINESeedSansTH_W_XBd.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff9f0a;
  --deep: #ef6a21;
  --gold: #ffd76a;
  --page: #fffaf2;
  --paper: #ffffff;
  --ink: #17120d;
  --muted: #6c665f;
  --line: #eadfce;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(61, 36, 6, 0.12);
}

* {
  box-sizing: border-box;
  font-family: "LINE Seed Sans TH", Arial, sans-serif;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 244, 223, 0.74) 0 1px, transparent 1px 100%) 0 0 / 28px 28px,
    linear-gradient(180deg, #fff, var(--page) 44%, #fff);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 900;
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.3;
}

p {
  margin-bottom: 0;
  color: var(--muted);
}

.scroll-line {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--deep), var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  animation: scrollLine linear both;
  animation-timeline: scroll();
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  margin: 12px auto 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(61, 36, 6, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #625d56;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, filter 180ms ease;
}

.nav a:hover {
  background: #fff3dc;
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 22px rgba(239, 106, 33, 0.16));
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell,
.models,
.process {
  margin-top: 22px;
}

.section-shell {
  border: 1px solid rgba(234, 223, 206, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.95fr);
  gap: 36px;
  align-items: center;
  min-height: 650px;
  padding: 46px 32px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 159, 10, 0.12), transparent 52%),
    url("./assets/screens/pro-home.png") center top / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-copy p {
  max-width: 650px;
  color: #3a3128;
  font-size: 1.08rem;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid #f3d5ad;
  border-radius: var(--radius);
  background: #fff8ee;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.center-actions {
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #e3c69c;
  border-radius: var(--radius);
  font-weight: 900;
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -70%;
  width: 58%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: sheen 3.2s ease-in-out infinite;
}

.btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 16px 24px rgba(239, 106, 33, 0.18));
}

.btn.primary {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--deep), var(--orange));
  color: #fff;
  animation: pulse 2.8s ease-in-out infinite;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.92);
}

.browser-frame {
  position: relative;
  padding: 34px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 90px rgba(61, 36, 6, 0.18);
  overflow: hidden;
  animation: panelFloat 5.4s ease-in-out infinite alternate;
}

.browser-top {
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff8ee);
}

.browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--deep);
}

.browser-top span:nth-child(2) {
  background: var(--orange);
}

.browser-top span:nth-child(3) {
  background: var(--gold);
}

.browser-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(234, 223, 206, 0.78);
  border-radius: 6px;
}

.stat-card {
  position: absolute;
  width: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: cardFloat 4.4s ease-in-out infinite alternate;
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  color: var(--deep);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-left {
  left: -22px;
  bottom: 30px;
}

.stat-right {
  right: -14px;
  top: 40px;
  animation-delay: 400ms;
}

.intro,
.features,
.final {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px;
}

.text-card,
.feature-card,
.process-card,
.model-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.text-card {
  padding: 24px;
}

.section-title {
  min-width: 0;
}

.section-title.center {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-title p:not(.eyebrow) {
  max-width: 680px;
  margin-inline: auto;
}

.models,
.process {
  padding: 56px 0;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.model-card {
  transition: transform 260ms ease, filter 260ms ease;
}

.model-card:hover,
.feature-card:hover,
.process-card:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 18px 28px rgba(239, 106, 33, 0.18));
}

.model-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

.model-card div {
  padding: 20px;
}

.model-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border: 1px solid #f3d5ad;
  border-radius: var(--radius);
  background: #fff8ee;
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.process-card {
  padding: 22px;
  transition: transform 260ms ease, filter 260ms ease;
  animation: mobileSoftFloat 5.2s ease-in-out infinite alternate;
}

.feature-card b,
.process-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--deep), var(--orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(239, 106, 33, 0.18);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.final {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 80px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@keyframes scrollLine {
  to {
    transform: scaleX(1);
  }
}

@keyframes sheen {
  0%,
  45% {
    left: -70%;
  }
  72%,
  100% {
    left: 130%;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(239, 106, 33, 0.14);
  }
  50% {
    box-shadow: 0 18px 40px rgba(239, 106, 33, 0.26);
  }
}

@keyframes panelFloat {
  from {
    transform: translateY(0) rotate(-0.5deg);
    filter: drop-shadow(0 18px 24px rgba(239, 106, 33, 0.08));
  }
  to {
    transform: translateY(-10px) rotate(0.5deg);
    filter: drop-shadow(0 28px 34px rgba(239, 106, 33, 0.18)) blur(0.12px);
  }
}

@keyframes cardFloat {
  to {
    transform: translateY(-12px);
    filter: drop-shadow(0 14px 24px rgba(239, 106, 33, 0.14)) blur(0.15px);
  }
}

@keyframes mobileSoftFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 940px) {
  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    min-height: 58px;
    margin-top: 8px;
    padding: 0 10px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav {
    max-width: calc(100vw - 72px);
    gap: 4px;
  }

  .nav a {
    padding: 7px 9px;
    font-size: 0.92rem;
  }

  main {
    width: calc(100% - 20px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
    padding: 24px 16px 28px;
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 0.98rem;
    font-weight: 800;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .browser-frame {
    animation: panelFloat 4.8s ease-in-out infinite alternate;
  }

  .stat-card {
    position: static;
    width: auto;
    margin-top: 10px;
  }

  .intro,
  .features,
  .final {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .model-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    padding: 0;
  }

  .model-card {
    width: 100%;
    max-width: 100%;
    animation: mobileSoftFloat 5.2s ease-in-out infinite alternate;
  }

  .feature-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .models,
  .process {
    padding: 48px 0;
  }

  .section-title.center {
    margin-bottom: 22px;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
    line-height: 1.08;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.72rem, 8vw, 2.15rem);
    line-height: 1.14;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  h3 {
    font-size: 1.12rem;
  }

  .section-title p:not(.eyebrow),
  .hero-copy p,
  .text-card p,
  .model-card p,
  .feature-card p,
  .process-card p,
  .final p {
    max-width: 330px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .actions {
    gap: 10px;
  }

  .btn {
    min-height: 44px;
    padding: 9px 13px;
  }

  .model-card img {
    height: 220px;
  }
}
