/* Port80 — static export stylesheet */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --background: oklch(0.975 0.005 95);
  --foreground: oklch(0.19 0.008 260);
  --muted-foreground: oklch(0.52 0.008 260);
  --secondary: oklch(0.94 0.006 95);
  --accent: oklch(0.66 0.17 32);
  --accent-strong: oklch(0.58 0.19 30);
  --border: oklch(0.89 0.006 95);
  --primary: oklch(0.19 0.008 260);
  --primary-foreground: oklch(0.98 0.004 95);
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 72rem;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.nav { display: none; gap: 2rem; align-items: center; }
.nav a { color: var(--muted-foreground); transition: color 0.2s; }
.nav a:hover { color: var(--foreground); }
.header-cta {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  padding: 0.875rem 2rem;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }

/* Hero */
.hero { padding: 5rem 0; }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 0.95;
  margin-top: 1.5rem;
}
.hero p.lead {
  margin-top: 1.75rem;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Services */
.services {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid { display: grid; }
.service { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.service:last-child { border-bottom: 0; }
.service h2 { margin-top: 1rem; font-size: 1.5rem; }
.service p { margin-top: 1rem; max-width: 28rem; color: var(--muted-foreground); line-height: 1.7; }

/* Technologies */
.tech { padding: 5rem 0; }
.tech-grid { display: grid; gap: 3rem; }
.tech h2 { margin-top: 1.25rem; font-size: 1.875rem; }
.tech ul { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 2.5rem; }
.tech li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 50%, var(--background));
}
.contact-grid { display: grid; gap: 3.5rem; padding: 5rem 0; }
.contact h2 { margin-top: 1.25rem; font-size: 1.875rem; }
.contact .muted { margin-top: 1.25rem; max-width: 24rem; line-height: 1.7; }
.mail {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label { color: var(--muted-foreground); }
input, textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0.625rem 0.75rem;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; }

/* Toast */
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  background: var(--foreground);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  padding: 0.875rem 1.125rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.site-footer .brand { color: var(--foreground); }
.site-footer .copy { font-family: var(--font-mono); font-size: 0.75rem; }

/* Responsive */
@media (min-width: 640px) {
  .tech ul { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .hero { padding: 7rem 0 8rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service { padding: 4rem 0; }
  .service:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 3.5rem; }
  .service:nth-child(even) { padding-left: 3.5rem; }
  .service:nth-last-child(2) { border-bottom: 0; }
  .service h2 { font-size: 1.875rem; }
  .tech { padding: 7rem 0; }
  .tech-grid { grid-template-columns: 0.8fr 1.2fr; }
  .tech h2 { font-size: 2.25rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; padding: 7rem 0; }
  .contact h2 { font-size: 2.25rem; }
  .btn.wide { width: auto; padding-inline: 2.5rem; }
}
