/* SIMNOVA — company profile */
:root {
  --bg: #070D24;
  --bg-2: #0B1638;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(160, 185, 255, 0.14);
  --blue: #2F6BFF;
  --blue-2: #5B8CFF;
  --gold: #F2C14E;
  --gold-2: #E0A93B;
  --gold-soft: #FFE29A;
  --text: #E8ECF8;
  --muted: #9AA6C8;
  --radius: 18px;
  --font: "IBM Plex Sans Thai", system-ui, sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans Thai", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.gold {
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); font-weight: 500; }
.kicker {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; color: var(--gold); margin-bottom: 10px;
}
.lead { font-size: 18px; color: #C7D0EA; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  color: #1A1405;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 45%, var(--gold-2));
  box-shadow: 0 8px 30px rgba(242, 193, 78, .25);
}
.btn-gold:hover { box-shadow: 0 10px 40px rgba(242, 193, 78, .4); }
.btn-ghost { border: 1px solid var(--line); background: rgba(47, 107, 255, .08); }
.btn-ghost:hover { border-color: var(--blue-2); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 13, 36, .92); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(7, 13, 36, .97); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: #C7D0EA; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 6px auto; background: var(--text); transition: transform .3s; }

/* hero */
.hero {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center; padding: 120px 0 80px;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(47, 107, 255, .28), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(242, 193, 78, .12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(47, 107, 255, .1); font-family: var(--display); font-size: 13px; letter-spacing: .08em; color: #C7D0EA;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* hero mock card */
.hero-card {
  position: relative; padding: 22px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(29, 58, 143, .55), rgba(11, 22, 56, .85));
  border: 1px solid rgba(160, 185, 255, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--blue-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.hc-head { display: flex; gap: 12px; align-items: center; }
.hc-head img { border-radius: 10px; }
.hc-head small { display: block; color: var(--muted); font-size: 12px; }
.ok { color: #5CE1A0; }
.hc-temp { font-family: var(--display); font-size: 64px; font-weight: 500; margin: 8px 0 4px; }
.hc-temp small { font-family: var(--font); font-size: 14px; color: var(--muted); margin-left: 10px; }
.hc-chip { display: inline-block; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid; }
.hc-chip.warn { color: #FFB04D; border-color: rgba(255, 176, 77, .45); background: rgba(255, 176, 77, .1); }
.hc-ai { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.hc-ai-title { font-weight: 600; color: var(--gold); font-size: 14px; margin-bottom: 6px; }
.hc-ai p { font-size: 14px; color: #D5DCF0; margin-bottom: 10px; }
.spark { display: inline-block; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bars i {
  display: block; height: 8px; border-radius: 4px; margin-top: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,226,154,.25), rgba(255,255,255,.06));
  background-size: 200% 100%; animation: shimmer 1.8s linear infinite;
}
.bars i:nth-child(2) { width: 85%; animation-delay: .15s; }
.bars i:nth-child(3) { width: 60%; animation-delay: .3s; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -40px; position: relative; z-index: 2; }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.pillar .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  color: var(--gold); background: rgba(242, 193, 78, .1); border: 1px solid rgba(242, 193, 78, .3); margin-bottom: 16px;
}
.pillar h3 { font-family: var(--display); }
.pillar p { color: var(--muted); font-size: 15px; margin: 0; }

/* sections */
.section { padding: 110px 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.split p { color: #C7D0EA; font-size: 17px; }

.product { background: linear-gradient(180deg, transparent, rgba(47, 107, 255, .07), transparent); }
.product-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 48px; }
.product-head img { border-radius: 22px; box-shadow: 0 12px 40px rgba(242, 193, 78, .2); flex-shrink: 0; }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.platforms span { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: #C7D0EA; }
.platforms .soon { border-color: rgba(242, 193, 78, .45); color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature, .service {
  padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, background .25s;
}
.feature:hover, .service:hover { transform: translateY(-4px); border-color: rgba(242, 193, 78, .4); background: rgba(47, 107, 255, .07); }
.feature p, .service p { color: var(--muted); font-size: 15px; margin: 0; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.service .num { font-family: var(--display); font-size: 14px; color: var(--gold); letter-spacing: .1em; display: block; margin-bottom: 10px; }

/* flow */
.tech { background: var(--bg-2); }
.flow { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.flow li {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(47, 107, 255, .14), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); counter-increment: s;
}
.flow li::before { content: "0" counter(s); font-family: var(--display); font-size: 13px; color: var(--muted); display: block; }
.flow b { font-family: var(--display); font-size: 24px; display: block; margin: 6px 0; color: var(--gold); }
.flow span { color: #C7D0EA; font-size: 15px; }
.flow li:not(:last-child)::after {
  content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 18px; z-index: 1;
}

/* contact */
.contact-box {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(242, 193, 78, .16), transparent 60%),
    linear-gradient(160deg, #13286E, #0B1638);
  border: 1px solid rgba(160, 185, 255, .22);
}
.contact-box p { color: #C7D0EA; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px;
  background: rgba(7, 13, 36, .45); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.contact-item:hover { border-color: var(--gold); transform: translateX(4px); }
.ci-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #1A1405;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2));
}
.contact-item small { display: block; color: var(--muted); font-size: 13px; }
.contact-item b { font-family: var(--display); font-size: 20px; letter-spacing: .02em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer .brand { font-size: 16px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero-card.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 960px) {
  .hero-in, .split, .contact-box { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:nth-child(2)::after { display: none; }
}
/* เมนูแบบพับ (hamburger) เมื่อจอแคบกว่า 1100px — เมนูมี 7 รายการ วางแถวเดียวไม่พอ */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: rgba(7, 13, 36, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease, visibility .35s; z-index: -1; visibility: hidden;
  }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  .nav.open .nav-links { transform: none; visibility: visible; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 110px; min-height: auto; }
  .pillars, .features, .services, .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .pillars { margin-top: 0; padding-top: 20px; }
  .section { padding: 72px 0; }
  .product-head { flex-direction: column; gap: 18px; }
  .contact-box { padding: 28px 22px; }
}
.nowrap { white-space: nowrap; }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin-top: 28px; max-width: 860px; }
.faq details { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(242, 193, 78, .4); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }
.faq details a, .footer p a { color: var(--gold); }

/* Blog */
.post { padding: 110px 0 90px; min-height: 70vh; }
.post h1 { font-size: clamp(28px, 4vw, 40px); }
.post-wrap { max-width: 820px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: #C7D0EA; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--muted); }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.post-tags span { font-size: 12px; padding: 3px 10px; border-radius: 999px; color: var(--gold); border: 1px solid rgba(242, 193, 78, .35); background: rgba(242, 193, 78, .08); }
.post-meta { color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.toc { margin: 26px 0; padding: 18px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.toc b { color: var(--gold); }
.toc ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.toc li::marker { color: var(--gold); }
.toc a { color: #C7D0EA; }
.toc a:hover { color: var(--gold); }
.prose { font-size: 17px; color: #D5DCF0; }
.prose h2 { font-size: 26px; margin: 42px 0 14px; color: var(--text); }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 34px 0 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: rgba(242, 193, 78, .06); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 15px; }
.prose blockquote p { margin: 0; }
.cta-box { display: flex; align-items: center; gap: 18px; margin: 48px 0; padding: 22px; border-radius: 20px;
  background: linear-gradient(160deg, #13286E, #0B1638); border: 1px solid rgba(160, 185, 255, .22); }
.cta-box img { border-radius: 14px; flex-shrink: 0; }
.cta-box div { flex: 1; }
.cta-box p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.related h2 { font-size: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.post-card { display: block; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, background .25s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(242, 193, 78, .4); background: rgba(47, 107, 255, .07); }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.post-card small { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .post { padding-top: 96px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

/* Weather station */
.ws { background: linear-gradient(180deg, transparent, rgba(242, 193, 78, .05), transparent); }
.ws-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ws-grid li { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.ws-grid span { font-size: 24px; display: block; margin-bottom: 6px; }
.ws-grid b { display: block; font-size: 16px; }
.ws-grid small { color: var(--muted); font-size: 13px; }
.ws .split { align-items: center; }
.ws-figure { margin: 0; }
.ws-figure img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.ws-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.ws > .wrap > .ws-grid { margin-top: 36px; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .ws > .wrap > .ws-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ws > .wrap > .ws-grid { grid-template-columns: repeat(2, 1fr); } }
.prose img { width: 100%; height: auto; border-radius: 22px; margin: 8px 0 18px; }
