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

:root {
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  color: #eaf2ff;
  background: #071226;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 111, 235, .18), transparent 35%),
    linear-gradient(145deg, #071226 0%, #0a1730 48%, #071123 100%);
}

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: .25;
}

.glow-one { width: 380px; height: 380px; background: #2278ff; top: -170px; right: -120px; }
.glow-two { width: 300px; height: 300px; background: #28bdd2; bottom: -180px; left: -100px; }

.shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(163, 190, 231, .12);
}

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 52px; height: 45px; padding: 8px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 12px 30px rgba(39,119,255,.2); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 17px; letter-spacing: .1px; }
.brand small { display: block; margin-top: 2px; color: #7f9ac2; font-size: 9px; letter-spacing: 2px; }

.top-actions { display: flex; align-items: center; gap: 10px; }

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fb2cf;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(150, 181, 225, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #40d69a; box-shadow: 0 0 0 5px rgba(64,214,154,.09); }

.install-button { border: 0; border-radius: 12px; padding: 12px 18px; color: #fff; background: linear-gradient(135deg,#215bea,#247ff4); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px rgba(30,101,238,.24); }
.install-button:hover { filter: brightness(1.08); }
.install-button.compact { padding: 9px 13px; font-size: 11px; box-shadow: none; }
.install-button.installed { color: #8ca2c1; background: rgba(255,255,255,.06); cursor: default; box-shadow: none; }

.hero { padding: 76px 0 46px; }
.eyebrow { margin: 0 0 14px; color: #55b8f5; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.08; letter-spacing: -2.5px; }
.hero h1 span { color: #6cb7ff; }
.hero-copy { margin: 20px 0 0; color: #91a6c5; font-size: 16px; }

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

.app-card {
  --accent: #3e92ff;
  position: relative;
  min-height: 380px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(154, 187, 234, .15);
  background: linear-gradient(145deg, rgba(20, 43, 80, .92), rgba(11, 27, 55, .9));
  box-shadow: 0 25px 70px rgba(0, 5, 18, .22);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -95px;
  top: -100px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .12;
  filter: blur(8px);
}

.commission-card { --accent: #39c7dd; }
.calculator-card { --accent: #8c7cff; }
.website-card { --accent: #ff8a63; }
.app-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 80px rgba(0, 7, 25, .38); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 23%, transparent);
}
.app-icon svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-number { color: rgba(173, 197, 231, .28); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }

.card-content { margin-top: 56px; }
.category { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.card-content h2 { margin: 10px 0 11px; font-size: 28px; }
.card-content p { margin: 0; max-width: 420px; color: #8fa5c6; font-size: 14px; line-height: 1.8; }

.card-action {
  margin-top: auto;
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #dceaff;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid rgba(154, 187, 234, .12);
}
.arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #071226; background: var(--accent); font-size: 20px; transition: transform .2s ease; }
.app-card:hover .arrow { transform: translateX(4px); }

.install-panel { margin-top: 24px; padding: 30px; border: 1px solid rgba(154,187,234,.15); border-radius: 24px; background: rgba(11,27,55,.7); box-shadow: 0 25px 70px rgba(0,5,18,.18); }
.install-intro { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.install-logo { width: 76px; height: 76px; padding: 13px; display: grid; place-items: center; border-radius: 21px; background: #fff; box-shadow: 0 14px 34px rgba(26,90,225,.22); }
.install-logo img { width: 100%; height: 100%; object-fit: contain; }
.install-intro .eyebrow { margin-bottom: 7px; }
.install-intro h2 { margin: 0 0 5px; font-size: 24px; }
.install-intro p:not(.eyebrow) { margin: 0; color: #8fa5c6; font-size: 13px; }
.install-steps { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(154,187,234,.12); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.install-steps article { min-height: 126px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid rgba(154,187,234,.11); border-radius: 15px; background: rgba(255,255,255,.025); }
.device-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #74baff; background: rgba(62,146,255,.12); font-size: 12px; font-weight: 800; }
.install-steps h3 { margin: 1px 0 5px; font-size: 14px; }
.install-steps p { margin: 0; color: #859bbd; font-size: 11px; line-height: 1.65; }
.install-steps b { color: #cfe2ff; }
.install-status { min-height: 20px; margin: 15px 0 0; color: #64dba5; text-align: center; font-size: 12px; }

footer { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 46px 0 28px; color: #607a9f; font-size: 10px; letter-spacing: 1.2px; }
.footer-line { width: 34px; height: 1px; background: #294365; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 600px); }
  .topbar { padding: 20px 0; }
  .secure-badge { font-size: 0; padding: 10px; }
  .hero { padding: 52px 0 34px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.5px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 345px; padding: 24px; }
  .card-content { margin-top: 44px; }
  .install-panel { padding: 22px; }
  .install-intro { grid-template-columns: auto 1fr; }
  .install-intro .install-button { grid-column: 1/-1; width: 100%; }
  .install-logo { width: 60px; height: 60px; border-radius: 17px; }
  .install-intro h2 { font-size: 19px; }
  .install-steps { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8px; }
  .secure-badge { display: none; }
  .install-button.compact { padding: 8px 10px; }
}

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