:root {
  --bg: #0b0e14;
  --bg-alt: #10141c;
  --surface: #161b26;
  --border: #232a38;
  --text: #e8ebf1;
  --text-muted: #9aa4b6;
  --accent: #4f8cff;
  --accent-hover: #6fa1ff;
  --radius: 12px;
  --max-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 32px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3e9f1;
  font-family: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0b1b2e;
}
.site-header .container { max-width: 1320px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}
.logo img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.logo-text strong {
  font: 700 1.15rem "Chakra Petch", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  color: #061a33;
}
.logo-text small {
  font-size: 0.78rem;
  color: #5b6b80;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: #0b1b2e;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: #eef3f9; }
.nav-links a.active { color: #1d6fe0; }

.nav-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: #4b5b70;
}
.nav-contact a { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-contact a:hover { color: #1d6fe0; }
.nav-contact svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.site-header .btn-nav {
  background: #061a33;
  color: #fff;
  padding: 11px 20px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.site-header .btn-nav:hover { background: #0a2a52; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #0b1b2e;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  font-family: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(29, 111, 224, 0.35), transparent 70%),
    radial-gradient(600px 400px at 85% 70%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(600px 400px at 10% 80%, rgba(29, 111, 224, 0.18), transparent 70%),
    linear-gradient(180deg, #061a33 0%, #04142a 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
#heroNet { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding-top: 96px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.75rem "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #22d3ee;
  padding: 7px 14px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
}
.hero-tag i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse { 50% { opacity: 0.3; } }
.hero h1 {
  font: 700 clamp(2.4rem, 6.4vw, 5.2rem)/1.02 "Chakra Petch", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(6, 26, 51, 0.8);
}
.hero h1 .glow {
  display: block;
  background: linear-gradient(90deg, #5cc8ff, #22d3ee 50%, #7af0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.45));
}
.hero-sub {
  color: #c3d6ea;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 60ch;
}
.hero-sub b { color: #fff; font-weight: 600; }
.hero-where { font-size: 0.9rem; color: #8fa9c4; }
.hero-where b { color: #22d3ee; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 6px; }
.hero .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.hero .btn-primary {
  background: linear-gradient(180deg, #38dcf3, #14b8d6);
  color: #032033;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.6), 0 8px 30px -6px rgba(34, 211, 238, 0.6);
}
.hero .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.9), 0 10px 40px -4px rgba(34, 211, 238, 0.8); }
.hero .btn-outline { border-color: rgba(195, 214, 234, 0.3); color: #fff; background: rgba(255, 255, 255, 0.04); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.09); color: #fff; border-color: rgba(195, 214, 234, 0.5); }

/* Glowing product line-art */
.prod {
  position: absolute;
  z-index: 1;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 1.4;
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.7));
  animation: heroFloat 7s ease-in-out infinite;
}
.prod .fill { fill: rgba(34, 211, 238, 0.06); }
.p-laptop { left: 2%; top: 120px; width: 300px; }
.p-phone { right: 6%; top: 96px; width: 120px; animation-delay: -2s; }
.p-watch { right: 16%; top: 330px; width: 86px; animation-delay: -4s; opacity: 0.4; }
.p-router { left: 9%; top: 360px; width: 170px; animation-delay: -3s; opacity: 0.4; }
@keyframes heroFloat { 50% { transform: translateY(-12px); } }

/* Hero category cards */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: 34px;
}
.hero-card {
  background: linear-gradient(180deg, rgba(29, 111, 224, 0.16), rgba(10, 42, 82, 0.25));
  border: 1px solid rgba(92, 200, 255, 0.18);
  border-radius: 10px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 30px -8px rgba(34, 211, 238, 0.45); }
.hero-card svg { width: 44px; height: 44px; stroke: #22d3ee; fill: none; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6)); }
.hero-card h3 { margin: 4px 0 0; font: 600 1.1rem/1.25 "Chakra Petch", "Segoe UI", sans-serif; letter-spacing: 0.02em; color: #fff; }
.hero-card p { font-size: 0.88rem; color: #9fb6cf; }

/* Hero stats strip */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(92, 200, 255, 0.15);
  background: rgba(4, 20, 42, 0.65);
  backdrop-filter: blur(4px);
}
.hero-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats-in > div {
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid rgba(92, 200, 255, 0.12);
}
.hero-stats-in > div:last-child { border-right: 0; }
.hero-stats strong { font: 700 1.9rem "Chakra Petch", "Segoe UI", sans-serif; color: #fff; text-shadow: 0 0 18px rgba(34, 211, 238, 0.5); }
.hero-stats span { font: 500 0.7rem "IBM Plex Mono", Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #8fa9c4; text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text { color: var(--text-muted); font-size: 1.05rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.contact-info p { margin-bottom: 10px; color: var(--text-muted); }
.contact-info a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button { margin-top: 20px; }
.form-note { color: var(--accent); font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.form-note-error { color: #f87171; }

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.pdpa-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1240px) {
  .nav-contact { display: none; }
  .p-laptop { width: 220px; left: -30px; }
  .p-router { display: none; }
}

@media (max-width: 900px) {
  .prod { display: none; }
  .hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { padding-top: 64px; padding-bottom: 40px; }
  .hero-stats-in { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-in > div:nth-child(2) { border-right: 0; }
  .hero-stats-in > div:nth-child(-n+2) { border-bottom: 1px solid rgba(92, 200, 255, 0.12); }
}

@media (max-width: 800px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e3e9f1;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .site-header .btn-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .logo img { height: 44px; }
  .logo { gap: 8px; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .prod, .hero-tag i { animation: none; }
}
