@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --text: #0d0d0d;
  --muted: #737373;
  --line: rgba(0, 0, 0, 0.16);
  --soft-line: rgba(0, 0, 0, 0.09);
  --accent: #0d0d0d;
  --logo-filter: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  transition:
    background 0.35s ease,
    color 0.35s ease;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.geometric-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 72%, rgba(0, 0, 0, 0.035), transparent 30%), radial-gradient(circle at 78% 28%, rgba(0, 0, 0, 0.03), transparent 34%);
}

body.dark-mode .geometric-bg {
  background:
    radial-gradient(circle at 22% 72%, rgba(255, 255, 255, 0.055), transparent 30%),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.045), transparent 34%);
}

.circle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border: var(--weight, 1px) solid var(--text);
  border-radius: 50%;
  opacity: var(--opacity, 0.12);
  transform: translate(-50%, -50%) scale(0.96);
  animation: circleRipple var(--duration, 24s) cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  will-change: transform, opacity;
}

.bg-circle.one {
  --x: 78%;
  --y: 24%;
  --size: 38vw;
  --weight: 1px;
  --opacity: 0.12;
  --duration: 26s;
  animation-delay: 0s;
}

.bg-circle.two {
  --x: 20%;
  --y: 76%;
  --size: 52vw;
  --weight: 0.8px;
  --opacity: 0.1;
  --duration: 32s;
  animation-delay: -9s;
}

.bg-circle.three {
  --x: 58%;
  --y: 60%;
  --size: 26vw;
  --weight: 2px;
  --opacity: 0.08;
  --duration: 24s;
  animation-delay: -4s;
}

.bg-circle.four {
  --x: 34%;
  --y: 30%;
  --size: 16vw;
  --weight: 1px;
  --opacity: 0.11;
  --duration: 29s;
  animation-delay: -14s;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.inner {
  width: min(100%, 1180px);
  min-height: calc(100vh - clamp(56px, 10vw, 144px));
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo svg {
  display: block;
  width: clamp(54px, 6vw, 86px);
  height: auto;
  color: var(--text);
  transition: color 0.35s ease;
}

.control-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
}

.lang-button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  min-height: 42px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background 0.22s ease;
}

.lang-button:last-child {
  border-right: 0;
}

.lang-button.is-active {
  background: var(--text);
  color: var(--bg);
}

.lang-button:hover:not(.is-active) {
  color: var(--text);
}

.palette-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.theme-toggle {
  appearance: none;
  position: relative;
  z-index: 4;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 0 0 14px 0;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.liquid-palette {
  position: absolute;
  top: 54px;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  backdrop-filter: blur(18px);
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.palette-wrap.open .liquid-palette {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.swatch {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none;
  transform: scale(1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.swatch:hover {
  transform: translateY(-2px) scale(1.08);
}

.swatch.is-active {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--text);
}

.swatch:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.custom-color-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.custom-color-input {
  position: absolute;
  inset: -8px;
  width: 50px;
  height: 50px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.custom-color-wrap::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.custom-color-wrap.is-active {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--text);
}

.swatch.mono {
  background: #ffffff;
  border: 1.5px solid #0d0d0d;
}

.swatch.ink {
  background: #b8c7d9;
}
.swatch.sand {
  background: #dfcdb8;
}
.swatch.moss {
  background: #b7cbb9;
}
.swatch.ocean {
  background: #b8d3e6;
}
.swatch.wine {
  background: #d8b3bd;
}
.swatch.night {
  background: #050505;
}

.top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.mini-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: none;
}

.headline {
  margin: 0;
  max-width: 780px;
  font-size: clamp(46px, 8.6vw, 118px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-family:
    'Space Grotesk',
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-weight: 700;
}

.headline span {
  display: block;
}

.lead {
  margin: 32px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 0 0 18px 0;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.button.primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

body.dark-mode .button.secondary {
  background: rgba(0, 0, 0, 0.35);
}

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

.side-panel {
  align-self: center;
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.num {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.service strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding-top: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background: var(--text);
  opacity: 0.48;
  clip-path: polygon(
    0% 55%,
    2% 52%,
    4% 58%,
    6% 45%,
    8% 66%,
    10% 40%,
    12% 62%,
    14% 50%,
    16% 57%,
    18% 44%,
    20% 70%,
    22% 48%,
    24% 54%,
    26% 35%,
    28% 61%,
    30% 47%,
    32% 56%,
    34% 39%,
    36% 64%,
    38% 51%,
    40% 58%,
    42% 43%,
    44% 68%,
    46% 46%,
    48% 53%,
    50% 37%,
    52% 63%,
    54% 49%,
    56% 55%,
    58% 41%,
    60% 67%,
    62% 45%,
    64% 59%,
    66% 50%,
    68% 62%,
    70% 38%,
    72% 56%,
    74% 44%,
    76% 69%,
    78% 47%,
    80% 54%,
    82% 42%,
    84% 60%,
    86% 49%,
    88% 57%,
    90% 36%,
    92% 65%,
    94% 46%,
    96% 53%,
    98% 50%,
    100% 55%,
    100% 62%,
    98% 57%,
    96% 60%,
    94% 53%,
    92% 72%,
    90% 43%,
    88% 64%,
    86% 56%,
    84% 67%,
    82% 49%,
    80% 61%,
    78% 54%,
    76% 76%,
    74% 51%,
    72% 63%,
    70% 45%,
    68% 69%,
    66% 57%,
    64% 66%,
    62% 52%,
    60% 74%,
    58% 48%,
    56% 62%,
    54% 56%,
    52% 70%,
    50% 44%,
    48% 60%,
    46% 53%,
    44% 75%,
    42% 50%,
    40% 65%,
    38% 58%,
    36% 71%,
    34% 46%,
    32% 63%,
    30% 54%,
    28% 68%,
    26% 41%,
    24% 61%,
    22% 55%,
    20% 77%,
    18% 51%,
    16% 64%,
    14% 57%,
    12% 69%,
    10% 47%,
    8% 73%,
    6% 52%,
    4% 65%,
    2% 58%,
    0% 62%
  );
  animation: noiseBar 1.6s steps(4, end) infinite;
  transform-origin: center;
}

.footer::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  opacity: 0.22;
  animation: noiseScan 2.8s ease-in-out infinite;
}

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

.contact a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: right;
  white-space: nowrap;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 101;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

#modalTitle {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-close {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  transform: scale(1.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

#contactForm .button {
  width: 100%;
  margin-top: 8px;
}

@keyframes circleRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: var(--opacity, 0.12);
  }
  48% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: calc(var(--opacity, 0.12) * 0.78);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0;
  }
}

@keyframes noiseBar {
  0% {
    transform: translateY(0) scaleY(0.72);
  }
  35% {
    transform: translateY(-1px) scaleY(1);
  }
  70% {
    transform: translateY(1px) scaleY(0.84);
  }
  100% {
    transform: translateY(0) scaleY(0.72);
  }
}

@keyframes noiseScan {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 0.16;
  }
  50% {
    transform: translateX(8px) scaleX(0.985);
    opacity: 0.34;
  }
}

@media (max-width: 820px) {
  body {
    overflow-y: auto;
  }

  .page {
    padding: 28px 22px;
  }

  .inner {
    min-height: calc(100vh - 56px);
  }

  .header {
    display: flex;
    align-items: flex-start;
  }

  .top-right {
    align-items: flex-end;
  }

  .mini-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0;
  }

  .headline {
    width: calc(100vw - 44px);
    max-width: none;
    font-size: clamp(58px, 21vw, 112px);
    line-height: 0.82;
    letter-spacing: -0.085em;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .side-panel {
    max-width: none;
  }

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

  .copyright {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-circle,
  .footer::before,
  .footer::after {
    animation: none;
  }
}
