:root {
  --bg: #f8f6f2;
  --card: #ffffff;
  --line: #e8e4db;
  --line-hover: #f97316;
  
  --orange: #f2600c;
  --orange-hover: #d95305;
  --orange-soft: #fdeee2;
  --orange-subtle: #fff7ed;
  --orange-glow: rgba(242, 96, 12, 0.12);
  
  --text: #1f1b16;
  --text-muted: #6e675d;
  --text-dim: #9c9588;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle IoT Engineering Grid */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(242, 96, 12, 0.05) 0%, transparent 65%),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  opacity: 0.45;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

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

/* ---------- NAVIGATION ---------- */
nav {
  padding: 22px 0;
  background: rgba(248, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-mono);
}

.logo span {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(242, 96, 12, 0.22);
}

.nav-cta:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 96, 12, 0.32);
}

/* ---------- HERO SECTION ---------- */
header {
  padding: 48px 0 64px;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.badge-hero .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

h1 {
  font-weight: 800;
  font-size: clamp(32px, 5.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-bottom: 16px;
}

h1 .accent {
  color: var(--orange);
}

header p.lead {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Tech Stack Chips */
.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stack-chip::before {
  content: '#';
  color: var(--orange);
}

.stack-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

/* ---------- MODULE CARDS ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.module {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.module:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(32, 29, 24, 0.07);
  border-color: var(--orange);
}

.module-top {
  margin-bottom: 20px;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.module .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.module:hover .icon {
  background: #fed7aa;
}

.module .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange);
  stroke-width: 1.9;
}

.module-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-subtle);
  border: 1px solid var(--orange-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.module h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.module p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.module-footer {
  border-top: 1px solid #f2eee6;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.module .go {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.module .go svg {
  width: 15px;
  height: 15px;
  stroke: var(--orange);
  transition: transform 0.2s ease;
}

.module:hover .go {
  gap: 8px;
}

.module:hover .go svg {
  transform: translateX(2px);
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-link {
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--orange);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .modules {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  header {
    padding: 36px 0 36px;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
