/* =========================================
   01. DESIGN SYSTEM
========================================= */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-raised: #151515;

  --border: #252525;
  --border-hover: #3a3a3a;

  --text: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #707070;

  --accent: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.1);

  --green: #65d68a;

  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1080px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 180ms ease;
}

/* =========================================
   02. RESET
========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);

  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: white;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   03. UTILITIES & BUTTONS
========================================= */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section-label {
  display: block;

  color: var(--text-muted);

  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  color: var(--text-secondary);
  font-size: 13px;

  transition: color var(--transition);
}

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

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  margin-top: 10px;

  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 42px;
  padding: 10px 16px;

  border-radius: var(--radius-sm);

  font-size: 13px;
  font-weight: 500;

  transition: all var(--transition);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: white;
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-raised);
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 1.5rem;
}

/* =========================================
   04. NAVIGATION
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(37, 37, 37, 0.8);
}

.nav-wrapper {
  min-height: 68px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 13px;

  transition: color var(--transition);
}

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

.nav-contact {
  padding: 8px 12px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  color: var(--text-secondary);

  font-size: 12px;
  font-family: var(--font-mono);

  transition: all var(--transition);
}

.nav-contact span {
  margin-left: 4px;
}

.nav-contact:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

/* =========================================
   05. FOOTER
========================================= */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-content {
  min-height: 80px;

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

.footer-content p {
  color: var(--text-muted);
  font-size: 11px;
}

.site-footer .tagline {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.footer-copy {
  color: var(--text-muted);

  font-family: var(--font-mono);
  font-size: 10px;
}

/*  Brand logo  */

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.brand-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.brand-logo img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

/* =========================================
   06. RESPONSIVE (CORE)
========================================= */

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-wrapper {
    min-height: 62px;
    gap: 12px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .nav-contact {
    display: none;
  }

  .section-heading-split {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-content {
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
