:root {
  --bg: #f3f0ea;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #111111;
  --muted: #5b5954;
  --line: rgba(17, 17, 17, 0.08);
  --shadow: 0 24px 70px rgba(15, 15, 15, 0.08);
  --radius-xl: 32px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #111111 0, #111111 960px, var(--bg) 960px, var(--bg) 100%);
  color: var(--text);
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.site-header.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.menu a:hover { color: #ffffff; }

.hero {
  min-height: 100svh;
  padding: 36px 0 72px;
  display: flex;
  align-items: center;
}

.hero-shell {
  width: 100%;
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #030511;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-copy {
  max-width: 920px;
  padding: 84px 0;
  text-align: center;
  color: #ffffff;
}

.eyebrow,
.section-label,
.pill,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3a3a3c;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-logo {
  width: min(320px, 48vw);
  margin: 28px auto 36px;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
}

.hero h1,
.section h2,
.project-copy h3 {
  letter-spacing: -0.05em;
  margin: 18px 0 0;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.88;
  max-width: 11ch;
  margin-left: auto;
  margin-right: auto;
}

.lead,
.section p,
.project-copy p,
.service-card p,
.contact-box p,
.screen-content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.lead {
  max-width: 720px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.68);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: #f3f0ea;
  color: #111111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.button-primary:hover {
  background: #ffffff;
}

.button-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 72px 0;
}

.section-soft {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
}

.narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.center-head {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}

.project-card,
.service-card,
.contact-box {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.project-card {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.project-copy h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

.project-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.device {
  position: absolute;
  width: 230px;
  height: 430px;
  border-radius: 42px;
  background: linear-gradient(180deg, #1d1d1f 0%, #2f2f33 100%);
  border: 8px solid #121214;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 16px;
  background: #0c0c0e;
  border-radius: 20px;
}

.device-back {
  transform: translateX(-90px) rotate(-12deg) scale(0.95);
  opacity: 0.5;
}

.device-front {
  overflow: hidden;
  background: #05070f;
  border-color: #161923;
}

.device-screen-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 28px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.contact-box {
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer {
  padding: 28px 0 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .project-card,
  .service-grid,
  .contact-box,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-box,
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    display: none;
  }

  .project-visual {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-logo {
    width: 100%;
    height: 100%;
  }

  .hero-shell {
    min-height: calc(100svh - 40px);
    border-radius: 28px;
  }

  .hero-copy {
    padding: 72px 0 56px;
  }

  .hero-logo {
    width: min(220px, 52vw);
    margin-top: 24px;
    margin-bottom: 28px;
  }

  .project-card,
  .service-card,
  .contact-box {
    padding: 22px;
    border-radius: 24px;
  }

  .device {
    width: 190px;
    height: 360px;
  }

  .device-back {
    transform: translateX(-55px) rotate(-10deg) scale(0.92);
  }
}
