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

:root {
  --bg:        #0a0c0e;
  --bg2:       #0f1215;
  --surface:   #141820;
  --surface2:  #1a2030;
  --border:    #1e2535;
  --border2:   #2a3448;
  --accent:    #3ecf74;   /* PCB green */
  --accent2:   #2ba85a;
  --accent-dim:#1a3d2b;
  --blue:      #4f8ef7;
  --text:      #e8edf5;
  --muted:     #7a8799;
  --muted2:    #9ba8b8;
  --radius:    12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── SHARED ── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(62,207,116,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: 1rem; }
.section-header p  { color: var(--muted2); font-size: 1.05rem; }

/* ── NAV ── */
header {
  position: fixed; top: 0; width: 100%;
  background: rgba(10,12,14,0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
nav {
  max-width: 1160px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
nav a:hover { color: var(--text); }
.nav-cta {
  padding: 0.45rem 1.2rem;
  background: var(--accent);
  color: #000 !important;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  max-width: 1160px; margin: 0 auto;
  padding: 8rem 2rem 4rem;
  gap: 4rem;
}
.hero-text { flex: 1; min-width: 300px; }
.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(62,207,116,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #7aeaa6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted2);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #000;
  border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(62,207,116,0.05); }

.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 36px; background: var(--border2); }

.hero-image { flex: 1; min-width: 300px; position: relative; }
.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(62,207,116,0.08);
}
.image-frame img {
  width: 100%; display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.image-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(62,207,116,0.06) 0%, transparent 60%);
  z-index: 1; pointer-events: none;
}
.image-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: rgba(10,12,14,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  color: var(--muted2);
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  z-index: 2;
}

/* ── SERVICES ── */
.services {
  padding: 6rem 2rem;
  max-width: 1160px; margin: 0 auto;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-num {
  position: absolute; top: 2rem; right: 2rem;
  font-size: 3rem; font-weight: 900;
  color: var(--border2);
  line-height: 1;
  user-select: none;
}
.card-icon { font-size: 2rem; color: var(--accent); margin-bottom: 1.2rem; display: block; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.card > p { color: var(--muted2); margin-bottom: 1.5rem; line-height: 1.75; }
.card-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.card-list li {
  color: var(--muted2); font-size: 0.9rem;
  padding-left: 1.4rem; position: relative;
}
.card-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.link { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ── APPLICATIONS ── */
.applications {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}
.applications .section-header { margin-bottom: 3.5rem; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1160px; margin: 0 auto;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
}
.app-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
}
.app-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
}
.app-card h4 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.app-card p  { color: var(--muted2); font-size: 0.9rem; line-height: 1.7; }

/* ── DETAIL SECTIONS ── */
.detail {
  padding: 6rem 2rem;
  max-width: 1160px; margin: 0 auto;
}
.detail.alt {
  max-width: 100%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail.alt .detail-inner {
  max-width: 1160px; margin: 0 auto;
}
.detail-inner { max-width: 780px; }
.detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.detail-inner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.2rem; line-height: 1.2; }
.detail-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  font-weight: 500;
}
.detail-inner p { color: var(--muted2); margin-bottom: 1.2rem; line-height: 1.8; }
.detail-points {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.point {
  display: flex; gap: 1.2rem; align-items: flex-start;
}
.point-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}
.point strong { display: block; margin-bottom: 0.3rem; color: var(--text); }
.point p { color: var(--muted2); font-size: 0.92rem; margin: 0; }

/* ── WHY US ── */
.why {
  padding: 6rem 2rem;
  max-width: 1160px; margin: 0 auto;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.why-card h4 { font-size: 1rem; margin-bottom: 0.6rem; }
.why-card p  { color: var(--muted2); font-size: 0.9rem; line-height: 1.7; }

/* ── CONTACT ── */
.contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 6rem 2rem;
}
.contact-inner {
  max-width: 1060px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-text > p { color: var(--muted2); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea, select {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
select { color: var(--muted2); cursor: pointer; }
select option { background: var(--surface); }
textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.5rem;
}
.footer-inner .logo { margin-bottom: 0.5rem; }
.footer-inner p { color: var(--muted); font-size: 0.9rem; }
.footer-copy { font-size: 0.8rem !important; margin-top: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero { flex-direction: column; padding-top: 7rem; text-align: center; }
  .hero p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { width: 100%; }
  .service-cards { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav ul { display: none; }
}
