:root {
  --bg: #070907;
  --bg-elevated: #101410;
  --ink: #e8efe6;
  --muted: #9aab9a;
  --accent: #3d6b52;
  --accent-bright: #5f9a74;
  --line: rgba(232, 239, 230, 0.12);
  --glow: rgba(61, 107, 82, 0.35);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(900px 480px at 85% -5%, rgba(61, 107, 82, 0.22), transparent 55%),
    linear-gradient(180deg, #050705 0%, var(--bg) 42%, #0a100c 100%);
}

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

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8fc9a3;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 7, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  z-index: 2;
}

.brand img {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 55%;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(232, 239, 230, 0.08), transparent 45%),
    radial-gradient(circle at 50% 50%, var(--glow), transparent 70%);
  border: 1px solid var(--line);
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  right: max(4vw, calc((100% - var(--max)) / 2));
  top: 18%;
  width: min(42vw, 360px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  animation: rise 1.1s ease-out both;
}

.hero-copy {
  position: relative;
  max-width: 34rem;
  animation: rise 0.9s ease-out both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent-bright);
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 32ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--accent-bright);
  color: #07100a;
}

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

.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

section {
  padding: 4.5rem 0;
}

.section-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 42rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  padding: 1.35rem 1.3rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 20, 16, 0.9), rgba(10, 14, 11, 0.55));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: rgba(95, 154, 116, 0.45);
  transform: translateY(-2px);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.mockups-scroller {
  margin: 0;
}

.mockups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: end;
  padding: 0.5rem 0 0.25rem;
}

.phone {
  margin: 0;
  text-align: center;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(95, 154, 116, 0.08);
  background: #000;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.phone:hover img {
  transform: translateY(-6px);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(95, 154, 116, 0.2);
}

.phone-lift {
  transform: translateY(-18px);
}

.phone-lift img {
  animation: floaty 5.5s ease-in-out infinite;
}

.phone figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.roles {
  display: grid;
  gap: 0.85rem;
}

.role {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.role:last-child {
  border-bottom: 1px solid var(--line);
}

.role strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

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

.contact {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(500px 180px at 10% 0%, rgba(61, 107, 82, 0.25), transparent 70%),
    var(--bg-elevated);
}

.contact a.mail {
  display: inline-block;
  margin-top: 0.75rem;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact a.mail:hover {
  color: var(--accent-bright);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.legal {
  padding: 3.5rem 0 5rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.legal .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-18px, 22px, 0) scale(1.04);
  }
}

@media (max-width: 860px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .site-header .wrap {
    padding: 0.65rem 0;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    background: rgba(7, 9, 7, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding: 2rem 0 2.75rem;
  }

  .hero::before {
    display: none;
  }

  .hero .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-mark {
    position: static;
    width: 112px;
    max-width: 32vw;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.25rem;
    filter: none;
  }

  .hero-copy {
    max-width: none;
    width: 100%;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.85rem;
    font-size: clamp(2.1rem, 9.5vw, 2.75rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .lede {
    margin-inline: auto;
    margin-bottom: 1.35rem;
    max-width: 34ch;
    font-size: 1.02rem;
    text-align: center;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.95rem 1.2rem;
  }

  section {
    padding: 2.75rem 0;
  }

  .section-title,
  .section-lead {
    text-align: left;
  }

  .section-lead {
    margin-bottom: 1.35rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .mockups-scroller {
    margin-inline: -0.75rem;
    padding: 0.15rem 0.75rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  .mockups-scroller::-webkit-scrollbar {
    display: none;
  }

  .mockups {
    display: flex;
    gap: 0.85rem;
    width: max-content;
    padding: 0.2rem 0.5rem 0.75rem 0;
    align-items: end;
  }

  .phone {
    flex: 0 0 auto;
    width: min(70vw, 270px);
    scroll-snap-align: center;
  }

  .phone img {
    border-radius: 22px;
  }

  .phone-lift {
    transform: none;
  }

  .phone-lift img {
    animation: none;
  }

  .phone figcaption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
  }

  .role {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.9rem 0;
  }

  .contact {
    padding: 1.25rem 1.1rem 1.4rem;
  }

  .contact a.mail {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }

  .site-footer {
    padding: 2rem 0 calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal {
    padding: 2.5rem 0 calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .mockups {
    gap: 1rem;
  }

  .phone-lift {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
