@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
}

:root {
  --bg-top: #e8eaec;
  --bg-bottom: #ffffff;
  --text-dark: #111111;
  --text-muted: #6b7280;
  --accent-orange: #b55f26;
  --clay-dark: #0a0a0a;
  --clay-light: #f0f2f5;
  --gutter: 48px;

  /* 3D clay shadows */
  --shadow-light: 8px 10px 20px rgba(0, 0, 0, 0.05),
    -8px -10px 20px rgba(255, 255, 255, 0.9),
    inset 2px 2px 5px rgba(255, 255, 255, 1),
    inset -2px -2px 5px rgba(0, 0, 0, 0.02);
  --shadow-dark: 10px 10px 20px rgba(0, 0, 0, 0.2),
    -5px -5px 15px rgba(255, 255, 255, 0.2),
    inset 2px 2px 5px rgba(255, 255, 255, 0.15),
    inset -2px -2px 5px rgba(0, 0, 0, 0.5);
  --shadow-orange: 8px 10px 20px rgba(181, 95, 38, 0.2),
    -4px -4px 10px rgba(255, 255, 255, 0.6),
    inset 2px 2px 5px rgba(255, 255, 255, 0.3),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bg-top);
  color: var(--text-dark);
  overflow-x: hidden;
}

[x-cloak] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
section[id], div[id] { scroll-margin-top: 80px; }

/* --- Header: frosted bar, pill-group menu --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter);
  background: rgba(240, 242, 245, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 24px rgba(17, 17, 17, 0.07); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo svg { width: 24px; height: 24px; }
.logo-text span { color: var(--accent-orange); }

.nav-center {
  display: flex;
  list-style: none;
  background: var(--clay-light);
  border-radius: 100px;
  padding: 4px;
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.05), inset -3px -3px 8px rgba(255, 255, 255, 0.7);
}
.nav-center a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.nav-center a:hover,
.nav-center li.active a {
  background: var(--accent-orange);
  color: #fff;
}
.nav-icon {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.bg-text {
  position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26vw;
  font-weight: 800;
  line-height: 0.8;
  white-space: nowrap;
  z-index: 1;
  letter-spacing: -1.5vw;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

.hero-main-img {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  height: 62vh;
  max-width: 80vw;
  z-index: 5;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.15));
}

.hero-left {
  position: relative;
  z-index: 10;
  max-width: 480px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  display: block;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--text-muted); }

.reviews {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 48px;
}
.stars {
  color: var(--accent-orange);
  letter-spacing: 2px;
  font-size: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-dark {
  background: var(--clay-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-dark);
  transition: transform 0.2s, opacity 0.2s;
}
.btn-dark:active { transform: scale(0.96); }
.btn-dark:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-dark .arrow {
  background: white;
  color: black;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.6); }

.hero-right {
  position: absolute;
  top: 20%;
  right: var(--gutter);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 60px;
}

.clay-widget {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-glass), var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 340px;
  max-width: 100%;
}

.widget-img {
  flex: none;
  width: 100px;
  height: 100px;
  background: var(--clay-dark);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-dark);
}
.widget-img svg { width: 32px; height: 32px; }

.widget-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90px;
}
.w-top { display: flex; justify-content: space-between; align-items: flex-start; }
.w-title { font-size: 16px; font-weight: 500; line-height: 1.2; }
.w-dot { width: 6px; height: 6px; border: 1px solid var(--text-dark); border-radius: 50%; }
.w-bottom { display: flex; justify-content: space-between; align-items: center; }
.w-line {
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  width: 40px;
  border-radius: 2px;
  position: relative;
}
.w-line::after {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--text-dark);
  border-radius: 2px;
}
.w-controls { display: flex; gap: 6px; }
.w-ctrl {
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.partners { text-align: right; opacity: 0.6; max-width: 280px; }
.p-label { font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.p-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 500;
}

.hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--gutter) 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  z-index: 15;
}

/* --- White area --- */
.bottom-section {
  background-color: var(--bg-bottom);
  border-radius: 40px 40px 0 0;
  position: relative;
  z-index: 20;
  padding: 80px var(--gutter) 40px;
  margin-top: -30px;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  overflow: hidden;
}

.wireframe-globe {
  position: absolute;
  top: 0;
  left: -15vw;
  width: 800px;
  height: 800px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, transparent 40%, #000 41%, transparent 42%),
    linear-gradient(0deg, transparent 49%, #000 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, #000 50%, transparent 51%);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  border-radius: 50%;
  transform: perspective(600px) rotateX(60deg) translateY(-20%);
}

.about-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.about-label .dot { width: 6px; height: 6px; background: var(--text-dark); border-radius: 50%; }

/* Product: services */
.services {
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  border-radius: 32px;
  padding: 32px 28px;
  background: var(--clay-light);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.5px; }
.service-card p { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.service-card.dark { background: var(--clay-dark); color: white; box-shadow: var(--shadow-dark); border-color: rgba(255, 255, 255, 0.1); }
.service-card.orange { background: var(--accent-orange); color: white; box-shadow: var(--shadow-orange); border-color: rgba(255, 255, 255, 0.2); }
.service-card.dark p, .service-card.orange p { color: rgba(255, 255, 255, 0.75); }

/* About */
.s2-content {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 10;
}
.s2-left { flex: 1; display: flex; flex-direction: column; gap: 80px; }

.hub-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.4;
}
.hub-info svg { flex: none; width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.s2-right { flex: 1.2; display: flex; flex-direction: column; gap: 60px; }
.s2-right h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1px;
}
.s2-right h2 span { color: var(--text-muted); }

.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.s-label { font-size: 12px; color: var(--text-muted); }
.about-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.site-footer { font-size: 12px; color: var(--text-muted); position: relative; z-index: 10; }

/* --- Contact: last section --- */
.contact {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow-glass), var(--shadow-light);
}
.contact h2 {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.contact h2 span { color: var(--text-muted); }
.contact .label { margin-bottom: 12px; }
.contact form { display: flex; flex-direction: column; gap: 16px; }
.contact label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.contact input, .contact textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--clay-light);
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.05), inset -3px -3px 8px rgba(255, 255, 255, 0.7);
  resize: vertical;
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--accent-orange); outline-offset: 1px; }
.contact [aria-invalid="true"] { border-color: #c2410c; }
.contact small { color: #c2410c; font-weight: 500; }
.contact .captcha { min-height: 78px; }
.contact .error { color: #c2410c; font-size: 13px; font-weight: 500; }
.contact form .btn-dark { align-self: flex-start; }
.sent { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.sent p { color: var(--text-muted); line-height: 1.5; }

/* --- Tablet --- */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 120px;
    height: auto;
  }
  .bg-text { font-size: 20vw; bottom: 25vh; }
  .hero-main-img { position: relative; left: auto; bottom: auto; transform: none; height: 300px; margin: 40px auto 0; order: 2; }
  .hero-right {
    position: relative;
    top: 0;
    right: 0;
    align-items: flex-start;
    margin-top: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    order: 3;
  }
  .partners, .p-logos { text-align: left; justify-content: flex-start; }
  .s2-content { flex-direction: column; gap: 60px; }
  .s2-left { gap: 32px; }
}

@media (max-width: 640px) {
  .nav-center a { padding: 8px 12px; letter-spacing: 0.04em; font-size: 11px; }
}

/* --- Phone: nav text becomes icons, tighter margins --- */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  header { padding: 12px var(--gutter); }
  .logo-text { display: none; }
  .nav-text { display: none; }
  .nav-icon { display: block; }
  .nav-center a { padding: 9px 14px; }
  .hero { padding-top: 96px; padding-bottom: 96px; min-height: 0; }
  .reviews { margin-bottom: 32px; }
  .hero-main-img { height: 220px; }
  .clay-widget { gap: 16px; }
  .widget-img { width: 72px; height: 72px; }
  .hero-footer { font-size: 11px; }
  .bottom-section { border-radius: 28px 28px 0 0; padding-top: 56px; gap: 64px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { border-radius: 24px; padding: 24px 20px; }
  .contact { padding: 28px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-dark { transition: none; }
}
