/* =========================================================================
   Silicon & Solder — brand palette
   Teal #14B8A6 · Graphite #1F2937 · Silver #E5E7EB · Green #10B981
   ========================================================================= */
:root {
  --teal: #14B8A6;
  --teal-bright: #2DD4BF;
  --green: #10B981;
  --graphite: #1F2937;
  --silver: #E5E7EB;

  --bg: #0B1220;          /* deep graphite background */
  --bg-2: #0F172A;        /* panel background */
  --bg-3: #111c2e;        /* card background */
  --line: rgba(229, 231, 235, 0.10);
  --text: #E5E7EB;
  --muted: #9aa6b8;

  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-teal: 0 12px 40px -12px rgba(20, 184, 166, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

.amp { color: var(--teal); }
.grad {
  background: linear-gradient(120deg, var(--teal-bright), var(--teal) 55%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Decorative background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(20, 184, 166, 0.22), transparent 70%),
    radial-gradient(closest-side, rgba(16, 185, 129, 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- Layout primitives ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}
.section--center { text-align: center; }
.section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section__lead {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 1.04rem;
}
.section--center .section__lead { margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:not(.btn) { color: var(--muted); transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--teal), var(--green));
  color: #04201c;
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: rgba(229, 231, 235, 0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-bright); }

/* ---------- Hero ---------- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
}
.hero__mark img {
  filter: drop-shadow(0 12px 30px rgba(20, 184, 166, 0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.kicker {
  display: inline-block;
  margin: 18px 0 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1.5px;
}
.hero__tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--teal-bright);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin: 10px 0 22px;
}
.hero__sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.stat {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal-bright);
}
.stat__label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: var(--shadow);
}
.card__icon {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,184,166,0.18), rgba(16,185,129,0.10));
  border: 1px solid rgba(20,184,166,0.25);
  margin-bottom: 16px;
}
.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Panels & forms ---------- */
.section--panel,
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.section--panel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 36px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.panel { padding: 34px 30px; }

.form { margin-top: 8px; }
.form--inline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form--inline .field { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--silver); }
.opt { color: var(--muted); font-weight: 400; }

input, textarea {
  width: 100%;
  background: #0a111e;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #5b6677; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
textarea { resize: vertical; min-height: 96px; }

.form--inline button { height: 46px; }
.form button { margin-top: 6px; }

.form__status {
  margin-top: 12px;
  font-size: 0.92rem;
  min-height: 1.2em;
  font-weight: 500;
}
.form--inline .form__status { grid-column: 1 / -1; margin-top: 4px; }
.form__status.is-ok { color: var(--teal-bright); }
.form__status.is-err { color: #f87171; }

/* ---------- Socials ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  color: var(--silver);
  transition: transform 0.18s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.social:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  color: var(--teal-bright);
  box-shadow: var(--shadow-teal);
}
.social svg { color: var(--teal); }
.social:hover svg { color: var(--teal-bright); }
.connect__email { margin-top: 26px; color: var(--muted); }
.connect__email a { color: var(--teal-bright); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  margin-top: 40px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer__tag {
  color: var(--teal-bright);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 8px 0 18px;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer__links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--teal-bright); }
.footer__copy { color: #6b7688; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form--inline { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .section--panel { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mark img { animation: none; }
  * { scroll-behavior: auto; }
}
