:root {
  --ink: #0b1320;
  --ink-soft: #152238;
  --slate: #31445f;
  --mist: #d7e0ec;
  --paper: #f3f6fa;
  --white: #ffffff;
  --accent: #1f7a5c;
  --accent-hover: #17634a;
  --accent-soft: rgba(31, 122, 92, 0.14);
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(21, 34, 56, 0.12);
  --danger: #b42318;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(11, 19, 32, 0.28);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.35rem 0;
  color: var(--white);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.86;
  transition: opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

/* Hero — one composition, brand-first, full-bleed */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(56, 168, 132, 0.38), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 78%, rgba(47, 92, 150, 0.45), transparent 60%),
    linear-gradient(155deg, #071018 0%, #10233a 48%, #0b1a2a 100%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 20%, transparent 75%);
  animation: grid-rise 22s linear infinite;
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
  animation: hero-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero-headline {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-support {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

/* Sections */

.section-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.products h2,
.contact h2 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-lead {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  color: var(--slate);
  font-size: 1.05rem;
}

/* Products — list, not card grid */

.product-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}

.product {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product:nth-child(2) {
  animation-delay: 120ms;
}

.product-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-desc {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--slate);
}

.product-host {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: color 160ms ease, gap 160ms ease;
}

.product-link:hover,
.product-link:focus-visible {
  color: var(--accent);
  gap: 0.65rem;
}

/* Contact */

.contact {
  background:
    linear-gradient(180deg, rgba(31, 122, 92, 0.06), transparent 40%),
    var(--white);
  border-top: 1px solid var(--line-dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--paper);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--slate);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(21, 34, 56, 0.18);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: var(--danger);
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 0.25rem;
}

.contact-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.footer-note {
  margin: 0.45rem 0 0;
  max-width: 28rem;
}

.footer-copy {
  margin: 1.4rem 0 0;
  font-size: 0.88rem;
  opacity: 0.7;
}

/* Motion */

@keyframes atmosphere-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes grid-rise {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-72px);
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-atmosphere,
  .hero-grid,
  .hero-content,
  .product {
    animation: none;
  }
}

/* Responsive */

@media (max-width: 820px) {
  .product {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero-content,
  .section-inner,
  .footer-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-content {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
