:root {
  --color-primary: #19B5F1;
  --color-primary-dark: #1688E8;
  --color-navy: #071B3A;
  --color-text: #0B1F3A;
  --color-light-blue: #8DD7FF;
  --color-violet: #B9A7FF;
  --color-violet-light: #EEE9FF;
  --color-background: #FFFFFF;
  --color-surface: #F5FAFF;
  --bg: var(--color-background);
  --bg-soft: var(--color-surface);
  --surface: #FFFFFF;
  --surface-2: #F5FAFF;
  --surface-3: #E1F2FF;
  --line: rgba(25, 181, 241, .14);
  --line-soft: rgba(25, 181, 241, .08);
  --line-strong: rgba(25, 181, 241, .24);
  --ink: var(--color-navy);
  --muted: #52657B;
  --muted-soft: #71839A;
  --accent: var(--color-primary);
  --accent-2: var(--color-primary-dark);
  --accent-3: var(--color-violet);
  --grad: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --grad-text: linear-gradient(90deg, var(--color-navy), var(--color-primary-dark), var(--color-primary), var(--color-navy));
  --mint: rgba(25, 181, 241, .14);
  --container: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--bg); font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.62; position: relative; }
body::before, body::after { content: ''; position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .32; animation: driftBlob 22s ease-in-out infinite; }
body::before { top: -220px; right: -160px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(25,181,241,.18), transparent 70%); }
body::after { bottom: -260px; left: -200px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(185,167,255,.32), transparent 70%); animation-delay: -9s; animation-direction: reverse; }
@keyframes driftBlob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,26px) scale(1.08); } }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 3px solid rgba(25, 181, 241, .45); outline-offset: 3px; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 3px solid var(--bg); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 128px 0; position: relative; }
.section-tight { padding: 72px 0; }
.surface { background-image: radial-gradient(circle at 1px 1px, rgba(25,181,241,.14) 1px, transparent 0), radial-gradient(circle at 100% 0%, rgba(185,167,255,.24), transparent 34%), linear-gradient(135deg, #F5FAFF 0%, #FFFFFF 62%, #EEE9FF 100%); background-size: 28px 28px, auto, auto; }
h1, h2, h3, .display, .h1, .h2, .h3, .brand { font-family: "Kanit", "Poppins", sans-serif; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--accent); font-size: .84rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(25,181,241,.9); animation: pulseGlow 2.2s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.display { margin: 0; max-width: 880px; font-size: clamp(2.6rem, 6.2vw, 5.8rem); line-height: 1.03; font-weight: 650; letter-spacing: -.015em; color: var(--ink); }
.h1 { margin: 0; max-width: 800px; font-size: clamp(2.4rem, 5vw, 4.75rem); line-height: 1.08; font-weight: 650; color: var(--ink); }
.h2 { margin: 0; max-width: 720px; font-size: clamp(1.9rem, 3.2vw, 3.15rem); line-height: 1.14; font-weight: 600; color: var(--ink); }
.h3 { margin: 0 0 12px; font-size: 1.2rem; line-height: 1.28; font-weight: 550; color: var(--ink); }
.lead { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.body-copy { color: var(--muted); }
.gradient-text { background: var(--grad-text); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientShift 6s linear infinite; }
@keyframes gradientShift { to { background-position: 300% center; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid rgba(25,181,241,.08); box-shadow: none; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 12px 30px rgba(22,136,232,.1); }
.nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); transition: opacity .2s ease; }
.brand:hover { opacity: .85; }
.brand .brand-logo { width: min(236px, 42vw); height: auto; max-height: 52px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav-links a:not(.button) { position: relative; padding: 4px 0; transition: color .2s ease; }
.nav-links a:not(.button)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: right .28s var(--ease); }
.nav-links a:not(.button):hover, .nav-links [aria-current="page"] { color: var(--ink); }
.nav-links a:not(.button):hover::after, .nav-links [aria-current="page"]::after { right: 0; }
.nav-links .button { border-color: transparent; background: var(--grad); color: #FFFFFF; box-shadow: 0 10px 24px rgba(22,136,232,.2); }
.nav-links .button:hover { border-color: transparent; color: #FFFFFF; background: linear-gradient(135deg, #1688E8, #19B5F1); box-shadow: 0 14px 30px rgba(22,136,232,.3); }
.button { display: inline-flex; position: relative; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .92rem; font-weight: 550; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); background-size: 220% 100%; background-position: 120% 0; transition: background-position .55s var(--ease); }
.button:hover::before { background-position: -20% 0; }
.button:hover { transform: translateY(-2px); border-color: rgba(25,181,241,.5); box-shadow: 0 10px 30px rgba(25,181,241,.15); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--surface); border-color: var(--accent); }
.button-accent { background: var(--grad); background-size: 200% 200%; border-color: transparent; color: #FFFFFF; font-weight: 650; box-shadow: 0 12px 30px rgba(22,136,232,.28); animation: gradientPan 6s ease infinite; }
@keyframes gradientPan { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.button-accent:hover { box-shadow: 0 18px 44px rgba(22, 136, 232, .55); }
.icon { width: 17px; height: 17px; stroke-width: 2; fill: none; stroke: currentColor; }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s ease; }
.menu-button:hover { border-color: var(--accent); }
.mobile-menu { border-top: 1px solid var(--line-soft); background: var(--bg-soft); }
.mobile-menu-inner { padding: 16px 0 20px; display: grid; gap: 4px; }
.mobile-menu a { padding: 11px 0; font-weight: 500; color: var(--muted); }
.mobile-menu .button { margin-top: 10px; justify-content: center; border-color: transparent; background: var(--grad); color: #FFFFFF; box-shadow: 0 10px 24px rgba(22,136,232,.22); }
.mobile-menu .button:hover { background: var(--grad); color: #FFFFFF; }

/* hero */
.hero { padding: 88px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); align-items: start; gap: 80px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 24px; color: var(--muted); font-size: .88rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--muted); font-size: .82rem; font-weight: 550; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.badge:hover { border-color: rgba(25,181,241,.45); color: var(--ink); transform: translateY(-2px); }
.badge svg { width: 15px; height: 15px; stroke: var(--accent); }
.trust-row { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; margin-top: 48px; }
.trust-stat strong { display: block; font-family: "Kanit", sans-serif; font-size: 2rem; font-weight: 650; background: var(--grad-text); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-stat span { color: var(--muted); font-size: .82rem; }
.hero-visual { position: relative; min-height: 460px; display: grid; place-items: start center; padding-top: 34px; animation: floatCard 7s ease-in-out infinite; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-visual::before { content: ''; position: absolute; inset: -60px; z-index: -1; background: conic-gradient(from 0deg, rgba(25,181,241,.24), rgba(185,167,255,.34), rgba(22,136,232,.2), rgba(25,181,241,.24)); filter: blur(60px); opacity: .7; border-radius: 50%; animation: spinSlow 16s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.orbit-ring { position: absolute; border: 1px solid var(--line-soft); border-radius: 50%; pointer-events: none; }
.orbit-ring.r1 { inset: 8px; animation: spinSlow 40s linear infinite; }
.orbit-ring.r2 { inset: 42px; animation: spinSlow 55s linear infinite reverse; }
.code-window { position: relative; width: 100%; border: 1px solid rgba(141,215,255,.24); border-radius: var(--radius-lg); background: linear-gradient(160deg, #0B2C58, var(--color-navy)); box-shadow: 0 32px 70px rgba(7,27,58,.22), inset 0 1px 0 rgba(255,255,255,.1); overflow: hidden; }
.code-tabs { display: flex; align-items: center; gap: 6px; padding: 16px 16px 0; border-bottom: 1px solid rgba(141,215,255,.18); }
.code-tabs .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); margin-right: 8px; }
.code-tab { padding: 9px 15px; border-radius: 8px 8px 0 0; background: transparent; color: var(--muted-soft); font-size: .74rem; font-weight: 550; letter-spacing: .01em; }
.code-tab.active { background: rgba(255,255,255,.12); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.code-body { padding: 22px 24px 28px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: .84rem; line-height: 2; }
.code-line { display: flex; gap: 18px; white-space: pre; }
.code-line .ln { width: 16px; flex: 0 0 auto; color: rgba(255,255,255,.2); text-align: right; user-select: none; }
.tok-kw { color: var(--color-light-blue); } .tok-fn { color: var(--color-primary); } .tok-str { color: #B9E7FF; } .tok-var { color: #FFFFFF; } .tok-com { color: #A9C3DB; font-style: italic; } .tok-punc { color: #DCEBFA; }
.code-cursor { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.visual-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid rgba(141,215,255,.28); border-radius: 12px; background: rgba(7,27,58,.94); backdrop-filter: blur(8px); color: #FFFFFF; font-size: .8rem; font-weight: 550; box-shadow: 0 18px 36px rgba(7,27,58,.28); animation: floatChip 5s ease-in-out infinite; }
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.visual-chip strong { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--grad); color: #04101a; font-size: .72rem; }
.chip-one { left: -18px; bottom: 40px; }
.chip-two { right: -14px; top: 36px; animation-delay: -2.4s; }
.chip-two strong { background: var(--grad); }

/* proof */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-inner { min-height: 98px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: center; gap: 24px; }
.proof-label { color: var(--muted); font-size: .88rem; font-weight: 500; }
.proof-item { color: var(--ink); font-size: .92rem; font-weight: 600; transition: color .2s ease; }
.proof-item:hover { color: var(--accent); }

/* section heading */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.section-heading .lead { margin-top: 14px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--accent); font-weight: 600; font-size: .92rem; transition: gap .2s ease, color .2s ease; }
.section-link:hover { color: var(--ink); gap: 10px; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { position: relative; min-height: 272px; padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), var(--bg-soft)); overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.service-link-card { color: inherit; cursor: pointer; }
.service-link-card:focus-visible { outline-offset: 4px; }
.service::before { content: ''; position: absolute; inset: 0; opacity: 0; background: radial-gradient(320px circle at var(--mx,50%) var(--my,0%), rgba(25,181,241,.16), transparent 65%); transition: opacity .3s ease; pointer-events: none; }
.service::after { content: attr(data-num); position: absolute; right: 8px; bottom: -30px; font-family: "Kanit", sans-serif; font-size: 6.5rem; font-weight: 650; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); pointer-events: none; transition: transform .4s var(--ease); }
.service:hover::after { transform: translateY(-8px); }
.service-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service:hover .service-bar { transform: scaleX(1); }
.service:hover { transform: translateY(-6px); border-color: rgba(25,181,241,.4); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.service:hover::before { opacity: 1; }
.service-index { position: absolute; top: 22px; right: 24px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: "Kanit", sans-serif; font-size: .7rem; font-weight: 600; color: var(--muted-soft); letter-spacing: .05em; }
.service-icon { position: relative; display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 26px; color: var(--accent); transition: transform .25s var(--ease), color .25s ease; }
.service:hover .service-icon { transform: translateY(-2px); color: #8DD7FF; }
.service-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.service h3 { position: relative; }
.service p { position: relative; margin: 0; color: var(--muted); font-size: .94rem; }
.service-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-detail { scroll-margin-top: 110px; position: relative; min-height: 390px; padding: 36px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), var(--bg-soft)); overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.service-detail::before { content: ''; position: absolute; inset: 0; opacity: 0; background: radial-gradient(280px circle at 18% 0%, rgba(25,181,241,.14), transparent 62%); transition: opacity .25s ease; pointer-events: none; }
.service-detail:hover { transform: translateY(-5px); border-color: rgba(25,181,241,.38); box-shadow: 0 22px 48px rgba(0,0,0,.34); }
.service-detail:hover::before { opacity: 1; }
.service-detail .h3, .service-detail p, .detail-list, .service-kicker { position: relative; }
.service-detail .h3 { margin-bottom: 16px; }
.service-detail p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.service-kicker { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 34px; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 999px; font-family: "Kanit", sans-serif; color: var(--accent); font-size: .82rem; font-weight: 650; }
.detail-list { display: grid; gap: 12px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: .92rem; }
.detail-list li { position: relative; padding-left: 18px; line-height: 1.55; }
.detail-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(25,181,241,.42); }

/* split / checklist */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 96px; align-items: start; }
.split .lead + .button { margin-top: 24px; }
.checklist { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
.checklist li { display: flex; gap: 14px; color: var(--muted); }
.check { display: grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--mint); border: 1px solid rgba(25,181,241,.3); color: var(--accent); font-size: .78rem; font-weight: 700; }

/* process */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 4px; }
.process::before { content: ''; position: absolute; top: 42px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent); z-index: 0; }
.process-item { position: relative; padding: 34px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), var(--bg-soft)); overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.process-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.process-item:hover::before { transform: scaleX(1); }
.process-item:hover { border-color: rgba(25,181,241,.4); transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.process-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 22px; color: var(--accent); transition: transform .25s var(--ease), color .25s ease; }
.process-item:hover .process-icon { transform: translateY(-2px); color: #8DD7FF; }
.process-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.process-number { display: block; margin-bottom: 10px; font-family: "Kanit", sans-serif; color: var(--accent); font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.process p { margin: 0; color: var(--muted); font-size: .92rem; }

/* portfolio */
.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.project-grid-compact { grid-template-columns: repeat(3,1fr); }
.project-grid-compact .project-image { aspect-ratio: 4 / 3; }
.project-grid-compact .project-content { padding: 22px; }
.project-grid-compact .project-content p:not(.project-meta):not(.project-tags) { min-height: 40px; font-size: .88rem; }
.project-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.project-card:hover { transform: translateY(-6px); border-color: rgba(25,181,241,.4); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.project-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,27,58,.88) 100%); opacity: 0; transition: opacity .3s ease; }
.project-card:hover .project-image::after { opacity: 1; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.project-card:hover .project-image img { transform: scale(1.06); }
.project-view { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #04101a; opacity: 0; transform: translateY(10px) scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 2; }
.project-card:hover .project-view { opacity: 1; transform: none; }
.project-view svg { width: 18px; height: 18px; stroke: #04101a; stroke-width: 2.4; }
.project-content { padding: 28px; }
.project-meta { margin: 0 0 10px; color: var(--accent); font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.project-content p:not(.project-meta):not(.project-tags) { min-height: 52px; margin: 0; color: var(--muted); font-size: .93rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.project-tags span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--muted); font-size: .74rem; font-weight: 550; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--ink); font-size: .9rem; font-weight: 600; transition: gap .2s ease, color .2s ease; }
.text-link:hover { color: var(--accent); gap: 10px; }

/* tech */
.tech-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tech { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 550; transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease; }
.tech:hover { border-color: rgba(25,181,241,.5); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(25,181,241,.14); }
.tech-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(25,181,241,.42); border-radius: 50%; color: var(--accent); font-family: "Kanit", sans-serif; font-size: .68rem; font-weight: 700; }

/* industries */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.industry { min-height: 126px; display: flex; align-items: end; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; color: var(--ink); transition: border-color .25s ease, transform .25s var(--ease); }
.industry:hover { border-color: rgba(25,181,241,.4); transform: translateY(-4px); }

/* quotes (unused currently but styled) */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quote blockquote { margin: 0 0 28px; color: var(--ink); font-size: 1rem; }
.quote cite { color: var(--muted); font-size: .88rem; font-style: normal; }

/* faq */
.faq { display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 4px 22px; transition: border-color .25s ease; }
.faq details[open] { border-color: rgba(25,181,241,.4); }
.faq summary { position: relative; padding: 21px 38px 21px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 21px; color: var(--accent); font-size: 1.35rem; font-weight: 400; transition: transform .25s ease; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { max-width: 720px; margin: -3px 0 21px; color: var(--muted); }

/* cta band */
.cta-band { position: relative; background: linear-gradient(135deg, #FFFFFF 0%, #F5FAFF 64%, #EEE9FF 100%); border-top: 1px solid rgba(25,181,241,.14); border-bottom: 1px solid rgba(25,181,241,.14); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 84% 18%, rgba(185,167,255,.26), transparent 30%), radial-gradient(circle at 100% 100%, rgba(25,181,241,.16), transparent 34%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 84px 0; }
.cta-inner .h2 { max-width: 630px; }
.cta-inner .h2 { color: var(--color-navy); }
.cta-inner .body-copy { color: var(--muted); }
.cta-band .button { background: var(--grad); border-color: transparent; color: #FFFFFF; white-space: nowrap; box-shadow: 0 12px 28px rgba(22,136,232,.24); }
.cta-band .button:hover { box-shadow: 0 18px 36px rgba(22,136,232,.32); }

/* page hero */
.page-hero { padding: 76px 0 74px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .lead { max-width: 650px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-visual { position: relative; min-height: 340px; display: grid; place-items: center; animation: floatCard 7s ease-in-out infinite; }
.connect-core { position: relative; width: 200px; height: 200px; padding: 3px; border-radius: 50%; background: var(--grad); box-shadow: 0 30px 70px rgba(22,136,232,.28); }
.connect-core-inner { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(155deg, #FFFFFF, #F5FAFF 65%); box-shadow: inset 0 0 50px rgba(25,181,241,.1); }
.connect-core-inner svg { width: 62px; height: 62px; stroke: var(--accent); stroke-width: 1.5; fill: none; }

/* services hero visual: floating icon mosaic */
.mini-tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mini-tile { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(25,181,241,.38); border-radius: 50%; background: rgba(25,181,241,.04); color: var(--accent); transform: rotate(var(--r, 0deg)); animation: floatChip 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.mini-tile svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.7; fill: none; }

/* portfolio hero visual: fanned card stack */
.fan-stack { position: relative; width: 220px; height: 240px; }
.fan-card { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 170px; height: 210px; margin: -105px 0 0 -85px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-soft)); box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .4s var(--ease); }
.fan-card.f1 { transform: rotate(-11deg) translate(-46px, 6px); z-index: 1; opacity: .75; }
.fan-card.f2 { transform: rotate(6deg) translate(30px, 2px); z-index: 2; opacity: .88; }
.fan-card.f3 { transform: rotate(-2deg); z-index: 3; animation: floatCard 6s ease-in-out infinite; }
.fan-card.f3 .fan-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(25,181,241,.42); border-radius: 50%; color: var(--accent); }
.fan-card.f3 .fan-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.7; fill: none; }

/* contact hero visual: chat mockup */
.chat-panel { width: 300px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-soft)); box-shadow: 0 30px 70px rgba(0,0,0,.45); animation: floatCard 7s ease-in-out infinite; }
.chat-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: var(--color-navy); font-family: "Kanit", sans-serif; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.chat-head strong { display: block; font-size: .86rem; color: var(--ink); }
.chat-head span { color: var(--muted); font-size: .72rem; }
.chat-bubble { position: relative; max-width: 82%; margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; font-size: .8rem; line-height: 1.5; opacity: 0; animation: bubbleIn .5s var(--ease) forwards; }
.chat-bubble.in { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--muted); animation-delay: .3s; }
.chat-bubble.out { margin-left: auto; background: var(--grad); color: var(--color-navy); font-weight: 600; border-bottom-right-radius: 4px; animation-delay: .7s; }
.chat-bubble.in ~ .chat-bubble.in { animation-delay: 1.1s; }
.chat-bubble:last-child { margin-bottom: 0; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typingDot 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; } .chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* about */
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.value { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .25s ease, transform .25s var(--ease); }
.value:hover { border-color: rgba(25,181,241,.4); transform: translateY(-4px); }
.value p { margin: 0; color: var(--muted); font-size: .94rem; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.stat { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .25s ease, transform .25s var(--ease); }
.stat:hover { border-color: rgba(25,181,241,.4); transform: translateY(-4px); }
.stat strong { display: block; margin-bottom: 6px; font-size: 1.65rem; font-family: "Kanit", sans-serif; background: var(--grad-text); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .88rem; }

/* portfolio intro */
.portfolio-intro { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 56px; }
.filter-note { color: var(--muted); font-size: .9rem; }

/* contact */
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 74px; }
.contact-options { display: grid; gap: 17px; margin-top: 32px; }
.contact-option { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.contact-option span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .83rem; }
.contact-option a { font-weight: 600; color: var(--ink); }
.contact-option a:hover { color: var(--accent); }
.form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--surface), var(--bg-soft)); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface-2); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 136px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(25,181,241,.15); }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { min-height: 22px; margin: 16px 0 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.form-status[data-state="success"] { color: #61d394; }
.form-status[data-state="error"] { color: #ff8f8f; }
.form-status[data-state="pending"] { color: var(--accent); }
.form .button:disabled { cursor: wait; opacity: .72; transform: none !important; }
.form .button { margin-top: 24px; }

/* footer */
.site-footer { position: relative; border-top: 1px solid rgba(25,181,241,.22); background: linear-gradient(135deg, #E4F5FF 0%, #EDF7FF 48%, #EDE7FF 100%); overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 760px; height: 340px; background: radial-gradient(ellipse, rgba(185,167,255,.34), transparent 70%); pointer-events: none; }
.site-footer::after { content: ''; position: absolute; right: -180px; bottom: -240px; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(25,181,241,.2), transparent 70%); pointer-events: none; }
.footer-main { position: relative; display: grid; grid-template-columns: 1.4fr repeat(2, .6fr); gap: 32px; padding: 64px 0 52px; }
.footer-brand p { max-width: 290px; margin: 15px 0 0; color: var(--muted); font-size: .9rem; }
.footer-title { margin: 0 0 14px; font-size: .82rem; font-weight: 650; color: var(--color-navy); text-transform: uppercase; letter-spacing: .04em; }
.footer-links { display: grid; gap: 10px; color: var(--color-primary-dark); font-size: .9rem; }
.footer-links a { transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { color: var(--color-primary); padding-left: 4px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(25,181,241,.14); color: var(--muted); font-size: .82rem; }

/* theme control */
.theme-toggle { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--color-navy); cursor: pointer; overflow: hidden; transition: transform .2s var(--ease), border-color .2s ease, color .2s ease, background .2s ease; }
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-primary-dark); }
.theme-toggle svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
.mobile-theme-toggle { width: 100%; height: 48px; margin-top: 8px; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* original dark theme */
[data-theme="dark"] {
  --bg: #060810;
  --bg-soft: #0A0D18;
  --surface: #10131F;
  --surface-2: #171B2B;
  --surface-3: #1E2337;
  --line: rgba(255,255,255,.1);
  --line-soft: rgba(255,255,255,.06);
  --line-strong: rgba(255,255,255,.16);
  --ink: #F5F6FB;
  --muted: #9498AC;
  --muted-soft: #6B6F85;
  --accent: #00BAFD;
  --accent-2: #0044F9;
  --accent-3: #4F46E5;
  --grad: linear-gradient(135deg, #4F46E5 0%, #0084FB 55%, #00D2FF 100%);
  --grad-text: linear-gradient(90deg, #7C8BFF, #00BAFD, #00E0C6, #7C8BFF);
  --mint: rgba(0,186,253,.14);
}
[data-theme="dark"] body::before { background: radial-gradient(circle, rgba(0,186,253,.55), transparent 70%); }
[data-theme="dark"] body::after { background: radial-gradient(circle, rgba(79,70,229,.5), transparent 70%); }
[data-theme="dark"] .site-header { background: rgba(6,8,16,.55); border-bottom-color: transparent; }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(6,8,16,.88); box-shadow: 0 12px 34px rgba(0,0,0,.35); }
[data-theme="dark"] .brand-logo { content: url("../images/brand/shurvatech-brand-lockup-dark-clean.png?v=20260809-4"); }
[data-theme="dark"] .mobile-menu { background: var(--bg-soft); }
[data-theme="dark"] .theme-toggle { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .surface { background: var(--bg-soft); background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 28px 28px; }
[data-theme="dark"] .nav-links .button { background: var(--surface-2); border-color: var(--line); color: var(--ink); box-shadow: none; }
[data-theme="dark"] .nav-links .button:hover { background: var(--surface-2); border-color: rgba(0,186,253,.5); color: var(--ink); box-shadow: 0 10px 30px rgba(0,186,253,.15); }
[data-theme="dark"] .button-accent, [data-theme="dark"] .mobile-menu .button { color: #04101A; }
[data-theme="dark"] .hero-visual::before { background: conic-gradient(from 0deg, rgba(0,186,253,.22), rgba(79,70,229,.22), rgba(0,210,255,.22), rgba(0,186,253,.22)); opacity: .55; }
[data-theme="dark"] .code-window { border-color: var(--line); background: linear-gradient(160deg, #0D101C, #080A12); box-shadow: 0 50px 110px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }
[data-theme="dark"] .code-tabs { border-bottom-color: var(--line); }
[data-theme="dark"] .code-tab.active { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
[data-theme="dark"] .tok-kw { color: #C586FF; } [data-theme="dark"] .tok-fn { color: #00D2FF; } [data-theme="dark"] .tok-str { color: #7EE7C7; } [data-theme="dark"] .tok-var { color: var(--ink); } [data-theme="dark"] .tok-com { color: var(--muted-soft); } [data-theme="dark"] .tok-punc { color: var(--muted); }
[data-theme="dark"] .visual-chip { border-color: var(--line); background: rgba(23,27,43,.92); color: var(--ink); box-shadow: 0 18px 36px rgba(0,0,0,.4); }
[data-theme="dark"] .visual-chip strong { color: #04101A; }
[data-theme="dark"] .connect-core-inner { background: linear-gradient(155deg, #131829, #0A0D18 65%); box-shadow: inset 0 0 50px rgba(0,186,253,.1); }
[data-theme="dark"] .cta-band { background: var(--bg); border-color: var(--line-soft); }
[data-theme="dark"] .cta-band::before { display: none; }
[data-theme="dark"] .cta-inner .h2 { color: var(--ink); }
[data-theme="dark"] .cta-inner .body-copy { color: var(--muted); }
[data-theme="dark"] .cta-band .button { background: var(--grad); border-color: transparent; color: #04101A; }
[data-theme="dark"] .site-footer { background: var(--bg-soft); border-top-color: var(--line); }
[data-theme="dark"] .site-footer::before { background: radial-gradient(ellipse, rgba(0,186,253,.14), transparent 70%); }
[data-theme="dark"] .footer-title { color: var(--ink); }
[data-theme="dark"] .footer-brand p, [data-theme="dark"] .footer-bottom { color: var(--muted); }
[data-theme="dark"] .footer-links { color: var(--muted); }

/* reveal system */
[data-reveal] { opacity: 1; transform: none; transition: border-color .25s ease, box-shadow .25s ease; }
.service:nth-child(1),.project-card:nth-child(1),.value:nth-child(1),.stat:nth-child(1),.industry:nth-child(1),.process-item:nth-child(1) { transition-delay: .04s; }
.service:nth-child(2),.project-card:nth-child(2),.value:nth-child(2),.stat:nth-child(2),.industry:nth-child(2),.process-item:nth-child(2) { transition-delay: .1s; }
.service:nth-child(3),.project-card:nth-child(3),.value:nth-child(3),.stat:nth-child(3),.industry:nth-child(3),.process-item:nth-child(3) { transition-delay: .16s; }
.service:nth-child(4),.project-card:nth-child(4),.value:nth-child(4),.industry:nth-child(4),.process-item:nth-child(4) { transition-delay: .22s; }
.service:nth-child(5),.project-card:nth-child(5),.industry:nth-child(5) { transition-delay: .28s; }
.service:nth-child(6),.project-card:nth-child(6) { transition-delay: .34s; }
.service:nth-child(7),.project-card:nth-child(7) { transition-delay: .4s; }
.service:nth-child(8) { transition-delay: .46s; }
.service:nth-child(9) { transition-delay: .52s; }

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

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-button { display: grid; place-items: center; }
  .hero { padding: 72px 0 60px; }
  .hero-grid,.split,.contact-layout,.page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { min-height: 220px; }
  .hero-visual { min-height: 380px; padding-top: 0; place-items: center; }
  .trust-row { grid-template-columns: repeat(3,1fr); gap: 24px; }
  .proof-inner { grid-template-columns: repeat(2,1fr); padding: 22px 0; }
  .proof-label { grid-column: 1 / -1; }
  .service-grid,.service-details { grid-template-columns: repeat(2,1fr); }
  .project-grid-compact { grid-template-columns: repeat(2,1fr); }
  .process { grid-template-columns: repeat(2,1fr); }
  .process::before { display: none; }
  .industries { grid-template-columns: repeat(3,1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 80px 0; }
  .section-tight { padding: 52px 0; }
  .display { font-size: 2.7rem; }
  .h1 { font-size: 2.5rem; }
  .h2 { font-size: 2rem; }
  .hero-actions,.button-row { display: grid; }
  .button { width: 100%; }
  .hero-visual { min-height: 300px; }
  .visual-window { top: 38px; left: 19px; right: 19px; height: 205px; }
  .chip-one { left: 9px; bottom: 18px; }
  .chip-two { display: none; }
  .trust-row { grid-template-columns: repeat(3,1fr); gap: 14px; }
  .proof-inner,.service-grid,.service-details,.project-grid,.quote-grid,.form-grid,.stat-row,.values { grid-template-columns: 1fr; }
  .section-heading,.portfolio-intro,.cta-inner,.footer-bottom { display: block; }
  .section-heading .section-link { display: inline-block; margin-top: 22px; }
  .service { min-height: auto; }
  .process { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2,1fr); }
  .cta-inner { padding: 56px 0; }
  .cta-inner .button { margin-top: 26px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom p + p { margin-top: 8px; }
  .page-hero { padding: 64px 0 56px; }
  .form { padding: 22px; }
}
