@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #12110f;
  --charcoal: #1d1b18;
  --muted: #69645d;
  --gold: #a57a2b;
  --gold-light: #d7b66a;
  --gold-pale: #f3ead5;
  --ivory: #f8f5ed;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #ded7c8;
  --success: #315d45;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(18, 17, 15, .10);
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans Thai', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: 'Playfair Display', 'Noto Sans Thai', serif;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.section { padding: 96px 0; }
.section-ivory { background: var(--ivory); }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #c9c1b3; }
.muted { color: var(--muted); }
.gold { color: var(--gold-light); }
.kicker-line { width: 48px; height: 2px; background: var(--gold); margin: 20px 0; }

.announcement {
  background: var(--ink);
  color: #e9dfca;
  text-align: center;
  padding: 8px 16px;
  font-size: .78rem;
  letter-spacing: .03em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(165, 122, 43, .16);
}
.navbar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold-light);
  border: 1px solid var(--gold);
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
}
.brand-copy { display: block; }
.brand strong { display: block; font-size: .94rem; letter-spacing: .08em; }
.brand-tagline { display: block; color: var(--muted); font-size: .65rem; letter-spacing: .14em; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .89rem; font-weight: 600; }
.nav-links a { position: relative; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--gold); transition: right 180ms var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; }
.mobile-menu { display: none; }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #302d28; }
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover { background: #e1c47f; }
.btn-outline { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.6); }
.btn-outline:hover { border-color: var(--gold); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.hero {
  min-height: 680px;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f0f0e;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,10,.98) 0%, rgba(11,11,10,.88) 40%, rgba(11,11,10,.18) 77%), url('/assets/hero-finance-ai.webp') center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(215,182,106,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(215,182,106,.18) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(90deg, black, transparent 65%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 94px 0 110px; }
.hero h1 { font-size: clamp(3.25rem, 7vw, 6.75rem); max-width: 700px; }
.hero h1 .thai-line { display: block; margin-top: 18px; font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; font-size: .42em; letter-spacing: -.025em; line-height: 1.35; }
.hero-copy { max-width: 610px; color: #d8d2c7; font-size: clamp(1rem, 2vw, 1.25rem); margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: #bdb5a8; font-size: .8rem; }
.hero-proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero-proof span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); }

.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path-card {
  position: relative;
  padding: 30px;
  min-height: 265px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c6ad76; }
.path-card .num { font-family: 'Playfair Display', serif; color: #c9b789; font-size: 1.2rem; }
.path-card h3 { margin: 34px 0 10px; font-size: 1.35rem; line-height: 1.45; }
.path-card p { margin: 0; color: var(--muted); }
.path-card .arrow { position: absolute; right: 28px; bottom: 26px; font-size: 1.5rem; transition: transform 180ms var(--ease); }
.path-card:hover .arrow { transform: translateX(5px); }

.feature-course { display: grid; grid-template-columns: 1.08fr .92fr; border-radius: 26px; overflow: hidden; background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.feature-media { min-height: 510px; position: relative; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(18,17,15,.85)); }
.feature-copy { padding: 56px 54px; display: flex; flex-direction: column; justify-content: center; }
.tag { display: inline-flex; align-self: flex-start; padding: 7px 12px; border: 1px solid rgba(215,182,106,.5); color: var(--gold-light); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.feature-copy h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 20px 0 8px; }
.feature-copy blockquote { border-left: 2px solid var(--gold); margin: 14px 0 18px; padding-left: 18px; color: #e7dfd2; font-size: 1.18rem; }
.feature-copy p { color: #bdb5a8; }
.price { margin: 24px 0; font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold-light); }
.price small { font-family: 'Noto Sans Thai'; font-size: .85rem; color: #bbb1a3; }

.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course-card, .book-card { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.course-card:hover, .book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-copy { padding: 26px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-copy h3 { margin: 13px 0 8px; font-size: 1.5rem; }
.card-copy p { color: var(--muted); margin: 0 0 20px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1px solid var(--gold); }

.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.book-card { display: grid; grid-template-columns: 42% 58%; min-height: 400px; }
.book-art { background: #e9e1d1; padding: 30px; display: grid; place-items: center; }
.book-cover { position: relative; width: min(220px, 100%); aspect-ratio: 2 / 3; box-shadow: 0 25px 35px rgba(18,17,15,.22), -10px 8px 0 #c9bfa9; overflow: hidden; background: var(--ivory); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-overlay { position: absolute; inset: 0; padding: 12% 11%; display: flex; flex-direction: column; justify-content: flex-start; background: linear-gradient(180deg, rgba(248,245,237,.1), rgba(248,245,237,.05)); }
.book-cover-overlay span { font-size: .65rem; color: var(--gold); letter-spacing: .12em; }
.book-cover-overlay strong { margin-top: 16%; line-height: 1.35; font-size: clamp(.95rem, 2vw, 1.35rem); }
.book-copy { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.book-copy h3 { font-size: 1.65rem; line-height: 1.4; margin: 8px 0 14px; }
.book-copy .price { color: var(--gold); font-size: 1.8rem; margin: 14px 0 24px; }

.ladder { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 18px; }
.ladder-item { min-height: 150px; padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; display: flex; flex-direction: column; justify-content: center; }
.ladder-item strong { font-size: 1.2rem; margin: 6px 0; }
.ladder-item span { color: var(--gold-light); font-family: 'Playfair Display', serif; }
.ladder-arrow { color: var(--gold-light); font-size: 1.6rem; }

.about-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.portrait-placeholder { position: relative; aspect-ratio: 4 / 5; border-radius: 180px 180px 22px 22px; overflow: hidden; background: var(--ink); display: grid; place-items: center; color: var(--gold-light); }
.portrait-placeholder::before { content: 'SS'; font-family: 'Playfair Display', serif; font-size: 9rem; opacity: .22; }
.portrait-placeholder::after { content: 'ภาพถ่ายผู้สอนจะเพิ่มในฉบับจริง'; position: absolute; bottom: 26px; left: 20px; right: 20px; padding: 12px; text-align: center; font-size: .78rem; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.about-copy h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.about-copy .lead { font-size: 1.25rem; line-height: 1.8; }
.credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.credential { border-top: 1px solid var(--line); padding: 18px 0; }
.credential strong { display: block; }
.credential span { color: var(--muted); font-size: .87rem; }

.cta-band { padding: 72px 0; background: var(--gold-pale); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

.page-hero { padding: 92px 0 72px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-hero .wrap { max-width: 850px; }
.page-hero h1 { font-size: clamp(2.9rem, 7vw, 6rem); }
.page-hero p { color: var(--muted); max-width: 700px; font-size: 1.15rem; }
.breadcrumb { color: var(--muted); font-size: .82rem; margin-bottom: 28px; }
.breadcrumb a { color: var(--gold); }

.product-hero { padding: 72px 0; }
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.product-image { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.product-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product-info h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
.product-info .lead { color: var(--muted); font-size: 1.16rem; }
.feature-list { list-style: none; padding: 0; margin: 26px 0; }
.feature-list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.purchase-box { margin-top: 30px; padding: 24px; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; }
.purchase-box .price { margin: 0 0 16px; }
.prototype-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: .78rem; }
.prototype-note::before { content: 'i'; flex: 0 0 20px; height: 20px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: serif; font-weight: 700; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.content-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.content-card h3 { margin-top: 0; }

.my-courses-box { max-width: 760px; margin-inline: auto; text-align: center; }
.course-access { margin-top: 36px; display: grid; gap: 14px; text-align: left; }
.access-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.access-row strong { display: block; }
.access-row span { color: var(--muted); font-size: .84rem; }

footer { background: #0d0d0c; color: #d8d1c4; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.footer-brand p { color: #9f988d; max-width: 420px; }
.footer-col h4 { color: var(--white); margin-top: 0; }
.footer-col a { display: block; color: #aaa296; margin: 8px 0; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 24px; color: #817b72; font-size: .76rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { position: fixed; display: flex; inset: 107px 0 auto 0; padding: 24px 20px 30px; flex-direction: column; gap: 4px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0; visibility: hidden; transition: transform 220ms var(--ease), opacity 180ms var(--ease); box-shadow: var(--shadow); }
  .mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-menu a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
  .mobile-menu .btn { margin-top: 12px; }
  .path-grid { grid-template-columns: 1fr; }
  .feature-course { grid-template-columns: 1fr; }
  .feature-media { min-height: 360px; }
  .feature-media::after { background: linear-gradient(0deg, rgba(18,17,15,.65), transparent 45%); }
  .course-grid, .book-grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .ladder-arrow { transform: rotate(90deg); text-align: center; }
  .about-split { grid-template-columns: .75fr 1.25fr; gap: 38px; }
  .product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 70px 0; }
  .announcement { font-size: .7rem; }
  .navbar { height: 66px; }
  .brand-tagline { display: none; }
  .nav-actions > .btn { display: none; }
  .mobile-menu { top: 98px; }
  .hero { min-height: 680px; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(11,11,10,.18) 0%, rgba(11,11,10,.94) 52%, #0b0b0a 100%), url('/assets/hero-finance-ai.webp') 66% center/cover no-repeat; }
  .hero-content { padding: 250px 0 68px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .hero h1 .thai-line { font-size: .38em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { gap: 8px 16px; }
  .feature-copy { padding: 36px 24px; }
  .feature-media { min-height: 250px; }
  .course-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .book-art { padding: 38px 72px; }
  .about-split, .content-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { width: min(320px, 100%); margin-inline: auto; }
  .credential-grid { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .access-row { align-items: flex-start; flex-direction: column; }
  .access-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
