:root {
  --ph-red: #f20d27;
  --ph-red-hot: #ff243c;
  --ph-ink: #070b0e;
  --ph-panel: #0c1115;
  --ph-panel-2: #10161b;
  --ph-line: #252c32;
  --ph-muted: #8f979f;
  --ph-max: 1440px;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body.public-site { margin: 0; overflow-x: hidden; background: var(--ph-ink); color: #f7f8f9; }
body.public-site::selection { background: var(--ph-red); color: #fff; }
body.public-site .app-container,
body.public-site .main-content.full-width { display: block; width: 100%; min-height: 0; margin: 0; padding: 0; overflow: visible; }
body.public-site #backToTop { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.ph-shell { min-height: 100vh; background: #070b0e; color: #f7f8f9; font-family: "IBM Plex Sans Thai", system-ui, sans-serif; }
.ph-shell *, .ph-shell *::before, .ph-shell *::after { box-sizing: border-box; }
.ph-shell a { color: inherit; text-decoration: none; }
.ph-shell button, .ph-shell input { font: inherit; }
.ph-shell a:focus-visible, .ph-shell button:focus-visible, .ph-shell input:focus-visible, .ph-shell summary:focus-visible { outline: 3px solid var(--ph-red-hot); outline-offset: 3px; }

.ph-header { position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; min-height: 62px; padding: 0 max(28px, calc((100vw - var(--ph-max)) / 2)); border-bottom: 1px solid #252b31; background: rgba(7, 11, 14, .96); backdrop-filter: blur(14px); }
.ph-brand { display: inline-flex; align-items: center; width: max-content; }
.ph-brand img { display: block; width: 150px; height: 46px; object-fit: cover; object-position: center; }
.ph-nav { display: flex; align-self: stretch; justify-content: center; gap: 38px; }
.ph-nav a, .ph-signin { position: relative; display: inline-flex; align-items: center; color: #d4d7da; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ph-nav a::after { content: ""; position: absolute; right: 100%; bottom: 0; left: 0; height: 3px; background: var(--ph-red); transition: right .18s ease; }
.ph-nav a:hover, .ph-nav a:focus-visible, .ph-nav a.active, .ph-signin:hover, .ph-signin:focus-visible { color: #fff; }
.ph-nav a:hover::after, .ph-nav a:focus-visible::after, .ph-nav a.active::after { right: 0; }
.ph-header-actions { display: flex; align-items: center; gap: 13px; }
.ph-languages { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
.ph-languages::before { content: "\f0ac"; margin-right: 6px; color: #fff; font-family: "Font Awesome 6 Free"; font-size: 12px; font-weight: 900; }
.ph-languages a { padding: 4px 3px; color: #747d85; font-size: 11px; font-weight: 750; }
.ph-languages a + a::before { content: "/"; margin-right: 6px; color: #596068; }
.ph-languages a.active { color: #fff; }
.ph-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 12px; padding: 0 23px; border: 1px solid transparent; border-radius: 7px; color: #fff; font-size: 13px; font-weight: 750; line-height: 1; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.ph-button:hover { transform: translateY(-1px); }
.ph-button-primary { background: var(--ph-red); box-shadow: 0 8px 24px rgba(242,13,39,.24); }
.ph-button-primary:hover { background: var(--ph-red-hot); box-shadow: 0 10px 30px rgba(242,13,39,.34); }
.ph-button-secondary { border-color: #71777d; background: rgba(11,15,18,.6); }
.ph-button-secondary:hover { border-color: #fff; background: #11171c; }
.ph-header-cta, .ph-signin { min-height: 38px; padding: 0 18px; border-radius: 7px; }
.ph-signin { border: 1px solid #676e76; }
.ph-menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid #30373e; border-radius: 7px; background: #11171c; cursor: pointer; }
.ph-menu-button span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: #fff; }
.ph-mobile-auth { display: none !important; }
.ph-announcement { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 24px; border-bottom: 1px solid rgba(242,13,39,.3); background: #251014; color: #ffc8cf; font-size: 12px; }
.ph-announcement i { color: var(--ph-red-hot); }

.ph-hero { position: relative; display: grid; grid-template-columns: minmax(430px,.82fr) minmax(590px,1.18fr); align-items: center; gap: 18px; min-height: 350px; padding: 42px max(28px, calc((100vw - var(--ph-max)) / 2)) 30px; overflow: hidden; border-bottom: 1px solid #252b31; background: radial-gradient(circle at 70% 58%, rgba(242,13,39,.18), transparent 36%), linear-gradient(104deg, #080c0f 0%, #0b0c0f 43%, #130b0e 100%); }
.ph-hero::before { content: ""; position: absolute; top: 44%; right: -4vw; width: 58vw; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,25,49,.75), transparent); box-shadow: 0 0 20px rgba(242,13,39,.72); transform: rotate(-8deg); pointer-events: none; }
.ph-hero::after { content: ""; position: absolute; right: 2%; bottom: -56%; width: 56%; aspect-ratio: 2/1; border-radius: 50%; background: radial-gradient(ellipse, #181d21 0%, #07090b 55%, transparent 70%); filter: drop-shadow(0 -2px 14px rgba(242,13,39,.35)); pointer-events: none; }
.ph-hero-copy, .ph-product-demo { position: relative; z-index: 2; }
.ph-eyebrow { display: block; margin-bottom: 10px; color: var(--ph-red-hot); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.ph-hero h1 { max-width: 690px; margin: 0; color: #fff; font-size: clamp(45px,4.4vw,68px); font-weight: 840; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.ph-hero h1 span { color: var(--ph-red); }
.ph-hero-copy > p { max-width: 620px; margin: 16px 0 0; color: #b2b8be; font-size: 15px; line-height: 1.55; }
.ph-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 24px; }
.ph-hero-actions .ph-button-primary { min-width: 230px; }
.ph-hero-actions .ph-button-secondary { min-width: 156px; }
.ph-hero-checks { display: none; }
.ph-product-demo { align-self: end; min-width: 0; margin-right: -72px; margin-bottom: -36px; }
.ph-hero-device { display: block; width: 100%; height: auto; max-height: 410px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 28px 42px rgba(0,0,0,.5)); }

.ph-trust { display: grid; grid-template-columns: repeat(4,1fr); max-width: none; padding: 0 max(28px, calc((100vw - var(--ph-max)) / 2)); border-bottom: 1px solid #252b31; background: #090e12; }
.ph-trust > span { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-content: center; min-height: 62px; padding: 10px 24px; border-right: 1px solid #252b31; }
.ph-trust > span:first-child { border-left: 1px solid #252b31; }
.ph-trust i { grid-row: 1/3; align-self: center; color: #fff; font-size: 18px; }
.ph-trust b { color: #f5f6f7; font-size: 11px; font-weight: 700; line-height: 1.3; }
.ph-trust small { margin-top: 2px; color: #737c84; font-size: 9px; line-height: 1.3; }

.ph-section { max-width: var(--ph-max); margin: 0 auto; padding: 42px 28px; }
.ph-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 14px; }
.ph-section-head h2 { margin: 0; color: #fff; font-size: clamp(27px,2.7vw,38px); font-weight: 790; line-height: 1.12; letter-spacing: -.025em; }
.ph-section-head p { max-width: 700px; margin: 5px 0 0; color: #89929a; font-size: 12px; line-height: 1.5; }
.ph-service-count { color: #778089; font-size: 10px; white-space: nowrap; }
.ph-service-count strong { color: #fff; font-size: 15px; }
.ph-catalog-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: -54px 0 14px 42%; }
.ph-search { position: relative; display: block; width: min(270px,100%); flex: 0 1 270px; }
.ph-search i { position: absolute; top: 50%; left: 14px; color: #8a939b; font-size: 12px; transform: translateY(-50%); }
.ph-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border: 1px solid #4a525a; border-radius: 7px; outline: 0; background: #0c1217; color: #fff; font-size: 11px; }
.ph-search input::placeholder { color: #777f87; }
.ph-search input:focus { border-color: var(--ph-red); box-shadow: 0 0 0 3px rgba(242,13,39,.12); }
.ph-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.ph-filters button { min-height: 34px; padding: 0 17px; border: 1px solid #303840; border-radius: 8px; background: #0c1217; color: #b4bbc1; font-size: 10px; white-space: nowrap; cursor: pointer; }
.ph-filters button:hover, .ph-filters button.active { border-color: var(--ph-red); background: rgba(242,13,39,.12); color: #fff; }
.ph-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.ph-service-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; grid-template-rows: 1fr auto; gap: 7px 15px; min-height: 116px; padding: 14px; border: 1px solid #252d34; border-radius: 8px; background: linear-gradient(145deg,#0c1216,#090e12); transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.ph-service-card:hover { border-color: #46515b; background: #10171c; transform: translateY(-1px); }
.ph-service-card[hidden] { display: none; }
.ph-service-card.is-featured { border-color: rgba(242,13,39,.42); }
.ph-service-icon { display: grid; grid-row: 1/3; place-items: center; align-self: start; width: 50px; height: 50px; border: 1px solid #283139; border-radius: 9px; background: #10171c; color: #fff; font-size: 20px; }
.ph-service-main { min-width: 0; }
.ph-service-meta { display: flex; align-items: center; gap: 6px; color: #6f7880; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ph-service-meta b { padding: 2px 5px; border: 1px solid rgba(242,13,39,.5); border-radius: 4px; color: #ff5a6c; }
.ph-service-main h3 { margin: 4px 0 0; overflow: hidden; color: #f8f9fa; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ph-service-main p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #929aa2; font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ph-service-time { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: #a3aab1; font-size: 9px; }
.ph-service-action { grid-column: 2/4; display: flex; align-items: center; justify-content: flex-end; gap: 7px; border-top: 1px solid #1f272d; padding-top: 8px; text-align: right; }
.ph-service-action > span { margin-right: -2px; color: #717a82; font-size: 8px; text-transform: uppercase; }
.ph-service-action > strong { margin-right: auto; color: var(--ph-red-hot); font-size: 14px; font-variant-numeric: tabular-nums; }
.ph-service-action > a { display: inline-flex; min-height: 28px; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid #5c646c; border-radius: 6px; color: #eef0f2; font-size: 9px; font-weight: 700; white-space: nowrap; }
.ph-service-action > a:hover { border-color: var(--ph-red); background: var(--ph-red); color: #fff; }
.ph-price-login { color: #c2c7cc !important; font-size: 9px !important; }
.ph-empty { padding: 50px 24px; border: 1px dashed #343d44; border-radius: 9px; color: #79828a; text-align: center; }
.ph-empty i { color: var(--ph-red); font-size: 24px; }
.ph-empty h3 { margin: 12px 0 0; color: #fff; font-size: 17px; }
.ph-empty p { margin: 5px 0 0; font-size: 11px; }

.ph-reseller { display: grid; grid-template-columns: minmax(240px,1.2fr) minmax(500px,2.6fr) auto; align-items: center; gap: 24px; max-width: calc(var(--ph-max) - 56px); margin-bottom: 6px; padding: 13px 18px; border: 1px solid rgba(242,13,39,.8); border-radius: 8px; background: radial-gradient(circle at 15% 50%,rgba(242,13,39,.14),transparent 30%), #0b1014; box-shadow: inset 0 0 32px rgba(242,13,39,.05); }
.ph-reseller-intro { display: flex; align-items: center; gap: 13px; }
.ph-reseller-intro > i { color: var(--ph-red-hot); font-size: 30px; }
.ph-reseller-intro h2 { margin: 0; font-size: 16px; line-height: 1.25; }
.ph-reseller-intro p { margin: 3px 0 0; color: #9ca3aa; font-size: 9px; line-height: 1.4; }
.ph-tier-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.ph-tier { display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; border: 1px solid #3a3032; border-radius: 6px; background: #141416; }
.ph-tier > i { flex: 0 0 auto; color: #d5aa6d; font-size: 13px; }
.ph-tier > span { min-width: 0; }
.ph-tier b, .ph-tier small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-tier b { color: #fff; font-size: 9px; }
.ph-tier small { margin-top: 2px; color: #7f858b; font-size: 7px; }
.ph-tier-vip { border-color: rgba(242,13,39,.55); background: #1a1013; }
.ph-tier-vip > i, .ph-tier-vip b { color: var(--ph-red-hot); }
.ph-reseller-cta { min-height: 38px; padding: 0 20px; white-space: nowrap; }

.ph-how { padding-top: 30px; padding-bottom: 60px; }
.ph-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 18px 0 0; padding: 0; border-top: 1px solid #293138; list-style: none; }
.ph-steps li { display: grid; grid-template-columns: 31px 1fr; gap: 13px; padding: 25px 24px 12px 0; border-right: 1px solid #293138; }
.ph-steps li + li { padding-left: 24px; }
.ph-steps li:last-child { border-right: 0; }
.ph-steps > li > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 6px; background: var(--ph-red); font-size: 10px; font-weight: 800; }
.ph-steps i { color: var(--ph-red-hot); font-size: 18px; }
.ph-steps h3 { margin: 12px 0 0; font-size: 14px; }
.ph-steps p { margin: 5px 0 0; color: #858e96; font-size: 10px; line-height: 1.5; }
.ph-faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; padding-top: 58px; padding-bottom: 64px; border-top: 1px solid #293138; }
.ph-faq-copy h2 { margin: 0; font-size: clamp(28px,3vw,42px); line-height: 1.1; letter-spacing: -.03em; }
.ph-faq-copy p { margin: 12px 0 20px; color: #89929a; font-size: 12px; line-height: 1.6; }
.ph-faq-list details { border-bottom: 1px solid #293138; }
.ph-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.ph-faq-list summary::-webkit-details-marker { display: none; }
.ph-faq-list summary i { color: var(--ph-red-hot); font-size: 9px; }
.ph-faq-list details[open] summary i { transform: rotate(45deg); }
.ph-faq-list details p { max-width: 75ch; margin: -3px 0 18px; color: #8e979f; font-size: 11px; line-height: 1.65; }
.ph-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: calc(var(--ph-max) - 56px); margin: 0 auto 58px; padding: 28px 32px; border: 1px solid #2d363e; border-radius: 9px; background: #0c1216; }
.ph-final-cta h2 { margin: 0; font-size: 22px; }
.ph-final-cta p { margin: 6px 0 0; color: #89929a; font-size: 11px; }
.ph-footer { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 26px; padding: 20px max(28px, calc((100vw - var(--ph-max)) / 2)); border-top: 1px solid #252c32; color: #747d85; font-size: 10px; }
.ph-footer .ph-brand img { width: 115px; }
.ph-footer p { margin: 0; }
.ph-footer > div { display: flex; gap: 20px; }
.ph-footer a:hover { color: #fff; }

@media (max-width: 1180px) {
  .ph-header { grid-template-columns: 160px 1fr auto; }
  .ph-nav { gap: 21px; }
  .ph-brand img { width: 132px; }
  .ph-hero { grid-template-columns: .82fr 1.18fr; }
  .ph-product-demo { margin-right: -30px; }
  .ph-catalog-tools { margin-top: 0; margin-left: 0; justify-content: flex-start; }
  .ph-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph-reseller { grid-template-columns: 1fr 2fr; }
  .ph-reseller-cta { grid-column: 1/-1; justify-self: end; margin-top: -4px; }
}

@media (max-width: 900px) {
  .ph-header { grid-template-columns: minmax(0,1fr) auto; min-height: 62px; }
  .ph-header-actions { display: none; }
  .ph-menu-button { display: block; }
  .ph-nav { position: absolute; top: 62px; right: 0; left: 0; display: none; align-self: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; border-bottom: 1px solid #303840; background: #090e12; }
  .ph-nav.open { display: flex; }
  .ph-nav a { min-height: 44px; border-bottom: 1px solid #20272d; }
  .ph-nav a::after { display: none; }
  .ph-mobile-auth { display: inline-flex !important; justify-content: center; margin-top: 10px; border: 1px solid #58616a; border-radius: 7px; }
  .ph-mobile-register { border-color: var(--ph-red) !important; background: var(--ph-red); }
  .ph-hero { grid-template-columns: minmax(0,1fr); padding-top: 58px; text-align: center; }
  .ph-hero-copy { z-index: 3; min-width: 0; }
  .ph-eyebrow { font-size: 9px; }
  .ph-hero h1 { margin-inline: auto; }
  .ph-hero-copy > p { margin-inline: auto; }
  .ph-hero-actions { justify-content: center; }
  .ph-product-demo { width: min(720px,100%); margin: 0 auto -30px; }
  .ph-trust { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph-trust > span { min-width: 0; }
  .ph-trust > span:nth-child(2) { border-right: 0; }
  .ph-trust > span:nth-child(-n+2) { border-bottom: 1px solid #252b31; }
  .ph-reseller { grid-template-columns: 1fr; }
  .ph-tier-grid { grid-template-columns: repeat(5,minmax(100px,1fr)); overflow-x: auto; }
  .ph-reseller-cta { grid-column: auto; justify-self: stretch; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 62px; }
  .ph-header { padding-inline: 18px; }
  .ph-brand img { width: 122px; }
  .ph-hero { min-height: 0; padding: 42px 18px 20px; }
  .ph-hero h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(36px,11vw,50px); }
  .ph-hero-copy > p { font-size: 13px; }
  .ph-hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ph-hero-actions .ph-button { min-width: 0; padding-inline: 12px; }
  .ph-product-demo { width: 118%; margin-left: -9%; margin-bottom: -20px; }
  .ph-hero-device { max-height: 280px; }
  .ph-trust { padding-inline: 0; }
  .ph-trust > span { min-height: 70px; padding: 9px 13px; }
  .ph-trust > span:first-child { border-left: 0; }
  .ph-trust i { font-size: 15px; }
  .ph-trust b { font-size: 9px; }
  .ph-trust small { font-size: 7px; }
  .ph-section { padding: 36px 18px; }
  .ph-section-head { display: block; }
  .ph-service-count { display: inline-block; margin-top: 8px; }
  .ph-catalog-tools { display: block; }
  .ph-search { width: 100%; }
  .ph-filters { margin-top: 9px; padding-bottom: 4px; }
  .ph-service-grid { grid-template-columns: 1fr; }
  .ph-service-card { min-height: 112px; }
  .ph-reseller { margin: 0 18px 5px; padding: 16px; }
  .ph-tier-grid { grid-template-columns: repeat(5,110px); }
  .ph-steps { grid-template-columns: 1fr; }
  .ph-steps li, .ph-steps li + li { padding: 19px 0; border-right: 0; border-bottom: 1px solid #293138; }
  .ph-steps li:last-child { border-bottom: 0; }
  .ph-faq { grid-template-columns: 1fr; gap: 24px; }
  .ph-final-cta { display: block; margin: 0 18px 40px; padding: 23px; }
  .ph-final-cta .ph-button { width: 100%; margin-top: 18px; }
  .ph-footer { flex-direction: column; padding: 28px 18px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-shell *, .ph-shell *::before, .ph-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
