:root {
  --bg: #060b18;
  --panel: #0c1426;
  --card: #0f1b31;
  --muted: #c5cddd;
  --border: #1f2b47;
  --accent: #72f0c1;
  --text: #e8eefc;
}

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

body {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(6, 11, 24, 0.74), rgba(6, 11, 24, 0.9)),
    url("../media/Microcontrollers.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* Header */
header {
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
}

nav .contact {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

/* Layout */
main {
  flex: 1;
  padding: 3rem 1.5rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}

section {
  margin-bottom: 3.25rem;
}

h1,
h2 {
  font-weight: 600;
  margin-bottom: 0.65rem;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
}

p {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.section-header {
  max-width: 720px;
  margin-bottom: 1.4rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(114, 240, 193, 0.2);
  min-height: 80vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.55), rgba(6, 11, 24, 0.82));
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
  padding: 1.2rem 1rem 1rem;
}

.hero-copy p {
  max-width: 620px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tags span {
  background: rgba(114, 240, 193, 0.1);
  border: 1px solid rgba(114, 240, 193, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  color: #0a0f1e;
  background: linear-gradient(120deg, var(--accent), #b0ffd6);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 15px 35px rgba(114, 240, 193, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(114, 240, 193, 0.28);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: rgba(114, 240, 193, 0.6);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.panel-heading {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.panel-content {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 27, 49, 0.7);
  border: 1px solid rgba(114, 240, 193, 0.12);
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-value span {
  color: var(--accent);
  margin-right: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Common grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.95rem;
}

.list {
  list-style: none;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(114, 240, 193, 0.08), transparent);
}

.step-label {
  height: 50px;
  width: 50px;
  border-radius: 12px;
  border: 1px solid rgba(114, 240, 193, 0.3);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--accent);
  background: rgba(114, 240, 193, 0.06);
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* CTA */
.cta-band {
  margin-top: 2rem;
  border: 1px solid rgba(114, 240, 193, 0.35);
  background: linear-gradient(120deg, rgba(114, 240, 193, 0.14), rgba(114, 240, 193, 0.04));
  padding: 1.6rem 1.4rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  background: rgba(6, 11, 24, 0.92);
}

/* Forms */
.form-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 27, 49, 0.75);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  background: rgba(12, 20, 38, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(114, 240, 193, 0.6);
  box-shadow: 0 0 0 2px rgba(114, 240, 193, 0.15);
}

.actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  main {
    padding: 2.6rem 1.1rem 3rem;
  }

  header {
    position: static;
  }

  nav a.contact {
    padding: 0.45rem 0.9rem;
  }
}
