:root {
  --bg: #0f1217;
  --bg-soft: #161b23;
  --text: #edf1f7;
  --muted: #9ca8ba;
  --line: #262d39;
  --accent: #67b9ff;
  --accent-2: #87d8af;
  --badge: #1d2735;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

.site-header {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.lang-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

main {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 56px 0 44px;
}

.hero {
  display: grid;
  gap: 20px;
  margin-bottom: 50px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 4.1rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 3.7vw, 2.4rem);
}

.hero-text {
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b1118;
  border-color: var(--accent);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn:hover {
  background: var(--bg-soft);
}

.btn-primary:hover {
  background: #7ac5ff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hero-metrics article {
  border-left: 2px solid var(--line);
  padding: 8px 0 8px 12px;
}

.hero-metrics h3 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.hero-metrics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head,
.panel-head {
  margin-bottom: 16px;
}

.section-head h2,
.panel-head h2 {
  max-width: 24ch;
}

section {
  margin-bottom: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.project-grid {
  display: grid;
  gap: 0;
}

.project-card {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  gap: 10px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-card a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.project-card a:hover {
  color: #9fe8c2;
}

.badge {
  width: fit-content;
  background: var(--badge);
  color: #b6cff6;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-idea {
  color: #d7e89f;
  background: #37401f;
}

.contact {
  display: grid;
  gap: 20px;
}

.contact-head {
  max-width: 70ch;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-intro {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 65ch;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #121924, #171f2b);
  width: 100%;
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.contact-card-label {
  display: inline-block;
  color: #b7c7dd;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-email-address {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.copy-email-btn {
  border: 1px solid var(--line);
  background: #202b3c;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.copy-email-btn:hover {
  background: #2a3a52;
  border-color: #3b4f6f;
}

.copy-hint {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.social-card {
  background: linear-gradient(135deg, #121924, #141d2b);
}

.contact-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.contact-card-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card-link {
  width: fit-content;
  margin-top: auto;
  text-decoration: none;
  color: #d7e7ff;
  border: 1px solid #2b3a52;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.84rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-card-link:hover {
  background: #233248;
  border-color: #3d5476;
}

.contact-form {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121821;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #2a3443;
  background: #1a2230;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b9ab0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 185, 255, 0.2);
}

.contact-submit {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #0b1118;
  background: linear-gradient(90deg, #67b9ff, #87d8af);
  transition: filter 0.2s ease;
}

.contact-submit:hover {
  filter: brightness(1.06);
}

footer {
  width: min(1100px, 92vw);
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s ease forwards;
}

.reveal:nth-of-type(2) { animation-delay: 0.08s; }
.reveal:nth-of-type(3) { animation-delay: 0.16s; }
.reveal:nth-of-type(4) { animation-delay: 0.24s; }
.reveal:nth-of-type(5) { animation-delay: 0.32s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main {
    padding-top: 40px;
  }

  .site-header {
    padding: 12px 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-email-btn {
    width: 100%;
  }

  .contact-form {
    padding: 14px;
  }
}
