/* =========================================================
   R-EST Landing — Styles
   Code/comments: English. UI strings are in HTML (Russian).
   Palette tokens match the DC source exactly.
   ========================================================= */

/* ---------- Google Fonts: Onest ---------- */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/* ---------- Bootstrap Icons ---------- */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* ---------- Reset / base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #FAF8F4;
  color: #2B2824;
  font-family: 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Visually-hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Keyboard focus ring — consistent across all browsers */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Suppress generic focus ring on inputs that have a custom box-shadow ring */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
}

::selection {
  background: oklch(0.72 0.17 52 / .3);
  color: #fff;
}

/* ---------- Design tokens (also applied via inline style on .rest-root) ---------- */
:root {
  --accent:       oklch(0.72 0.17 52);
  --accent-2:     oklch(0.80 0.15 66);
  --accent-deep:  oklch(0.55 0.16 40);
  --ink:          #2B2824;
  --ink-2:        #6C655A;
  --ink-3:        #9A9285;
  --bg-0:         #FAF8F4;
  --bg-1:         #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F6F2EB;
  --border:       #ECE6DC;
  --glow:         oklch(0.72 0.17 52 / .55);
  --shadow-md:    0 4px 16px rgba(43,40,36,.1);
}

/* ---------- Keyframes ---------- */
@keyframes restFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes restSheen {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes restPulse {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1; }
}

@keyframes restDrift1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(60px,-40px) scale(1.12); }
}

@keyframes restDrift2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(-70px,50px) scale(1.18); }
}

@keyframes restSpin {
  to { transform: rotate(360deg); }
}

@keyframes restMarquee {
  to { transform: translateX(-50%); }
}

/* Typewriter console (featured card) */
@keyframes restCaret {
  0%, 49%   { border-color: var(--accent-2); }
  50%, 100% { border-color: transparent; }
}
@keyframes restType1 { 0%,3%  { width: 0; } 18%,95% { width: 100%; } 100% { width: 0; } }
@keyframes restType2 { 0%,20% { width: 0; } 36%,95% { width: 100%; } 100% { width: 0; } }
@keyframes restType3 { 0%,38% { width: 0; } 56%,95% { width: 100%; } 100% { width: 0; } }
@keyframes restType4 { 0%,60% { width: 0; } 78%,95% { width: 100%; } 100% { width: 0; } }

/* Bar-chart grow (hero sticker) */
@keyframes restBarGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Floating hero stickers */
@keyframes restFloat {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-14px); }
}
@keyframes restFloat2 {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50%      { transform: rotate(-7deg) translateY(11px); }
}

/* Floating decorative stickers — hidden on narrow viewports */
.rest-sticker { will-change: transform; }
@media (max-width: 980px) {
  .rest-sticker { display: none !important; }
}

/* Slide-up toast animation */
@keyframes toastIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Reduced-motion override */
.rest-root.no-motion *,
.rest-root.no-motion *::before,
.rest-root.no-motion *::after {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Root wrapper ---------- */
.rest-root {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(125% 85% at 50% -12%, #FFE9D2 0%, #FFF6EC 38%, #FAF8F4 70%);
  color: var(--ink);
  isolation: isolate;
}

/* ---------- Ambient background ---------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* conic aurora */
.bg-aurora {
  position: absolute;
  top: 50%; left: 50%;
  width: 160vw; height: 160vw;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    oklch(0.80 0.15 66 / .14) 40deg,
    transparent 110deg,
    oklch(0.72 0.17 52 / .12) 200deg,
    transparent 280deg,
    oklch(0.82 0.14 30 / .1) 330deg,
    transparent 360deg
  );
  filter: blur(38px);
  animation: restSpin 64s linear infinite;
  opacity: .9;
}

/* drifting orb 1 */
.bg-orb-1 {
  position: absolute;
  top: -12%; left: 6%;
  width: 42vw; height: 42vw;
  max-width: 640px; max-height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.17 52 / .3), transparent 68%);
  filter: blur(18px);
  animation: restDrift1 18s ease-in-out infinite;
}

/* drifting orb 2 */
.bg-orb-2 {
  position: absolute;
  bottom: -18%; right: 0%;
  width: 40vw; height: 40vw;
  max-width: 600px; max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.82 0.14 70 / .28), transparent 70%);
  filter: blur(22px);
  animation: restDrift2 22s ease-in-out infinite;
}

/* decorative ring 1 */
.bg-ring-1 {
  position: absolute;
  top: 8%; right: -9vw;
  width: 48vw; height: 48vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  border: 1px solid oklch(0.72 0.17 52 / .14);
  mask: radial-gradient(circle, transparent 60%, #000 61%, #000 63%, transparent 64%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 63%, transparent 64%);
  animation: restSpin 90s linear infinite;
}

/* decorative ring 2 */
.bg-ring-2 {
  position: absolute;
  bottom: 4%; left: -7vw;
  width: 34vw; height: 34vw;
  max-width: 420px; max-height: 420px;
  border-radius: 50%;
  border: 1px dashed oklch(0.72 0.17 52 / .18);
  animation: restSpin 120s linear infinite reverse;
}

/* dot matrix */
.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(43,40,36,.10) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 95% at 50% 0%, #000 28%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 95% at 50% 0%, #000 28%, transparent 80%);
}

/* hairline grid */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43,40,36,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,40,36,.04) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 72%);
}

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}

/* nav scrolled state — applied by JS */
.site-nav.scrolled {
  background: rgba(250,248,244,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 0 22px var(--glow);
}

.nav-logo-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Desktop nav links wrapper */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s ease;
  white-space: nowrap;
}

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

/* CTA button inside nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  background: var(--accent-deep);
  color: #fff !important;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .4), 0 0 24px var(--glow);
  transition: transform .12s ease, box-shadow .25s ease;
}

.nav-cta:hover {
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .6), 0 0 38px var(--glow) !important;
  color: #fff !important;
}

/* Hamburger — mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* Mobile nav open state */
.nav-mobile-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.site-hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 118px clamp(20px, 5vw, 56px) 64px;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 26px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  animation: restPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* Hero title — gradient sheen */
.hero-title {
  font-size: clamp(76px, 17vw, 248px);
  line-height: .86;
  font-weight: 700;
  letter-spacing: -.045em;
  margin: 0;
  background: linear-gradient(100deg, var(--ink) 8%, var(--accent-2) 42%, var(--accent) 58%, var(--ink) 92%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 80px oklch(0.72 0.17 52 / .25);
  animation: restSheen 7s linear infinite;
}

/* Hero subtitle */
.hero-subtitle {
  max-width: 680px;
  margin: 24px auto 0;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}

/* Hero CTA row */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 13px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .45), 0 0 40px var(--glow);
  transition: transform .14s ease, box-shadow .3s ease;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .7), 0 0 64px var(--glow);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
  font-family: inherit;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: oklch(0.72 0.17 52 / .5);
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 80px);
  justify-content: center;
  margin-top: 52px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-number .accent {
  color: var(--accent);
}

.stat-label {
  font-size: .82rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
}

/* ---------- SECTIONS (shared) ---------- */
.section-tag {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--accent-deep);
}

.section-h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 14px 0 0;
}

/* ---------- SERVICES ---------- */
.section-services {
  position: relative;
  z-index: 1;
  padding: clamp(52px, 6vw, 84px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.services-intro {
  max-width: 640px;
  margin-bottom: 38px;
}

.services-intro p {
  color: var(--ink-2);
  font-size: 1.1rem;
  margin-top: 16px;
}

/* Featured IT card */
.card-featured {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, oklch(0.72 0.17 52 / .12), #FFF6EC 72%);
  border: 1px solid oklch(0.72 0.17 52 / .3);
  box-shadow: 0 0 60px -28px var(--glow);
  transition: border-color .25s ease, box-shadow .3s ease, transform .25s ease;
}

.card-featured:hover {
  border-color: oklch(0.72 0.17 52 / .55);
  box-shadow: 0 0 70px -22px var(--glow);
  transform: translateY(-4px);
}

.card-featured-orb {
  position: absolute;
  top: -40%; right: -6%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.17 52 / .22), transparent 70%);
  filter: blur(10px);
  animation: restPulse 5.5s ease-in-out infinite;
  pointer-events: none;
}

.card-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.badge-pill {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #fff;
  background: var(--accent-deep);
  padding: 5px 11px;
  border-radius: 999px;
}

.card-featured h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.card-featured p {
  color: var(--ink-2);
  font-size: 1.08rem;
  margin-top: 14px;
  line-height: 1.55;
  max-width: 560px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: .95rem;
}

.feature-chip i {
  color: var(--accent-deep);
}

.card-featured-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.visual-box {
  position: relative;
  width: clamp(160px, 22vw, 210px);
  height: clamp(160px, 22vw, 210px);
  border-radius: 32px;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  display: grid;
  place-items: center;
  box-shadow: 0 0 70px -10px var(--glow), inset 0 0 0 1px rgba(255,255,255,.15);
}

.visual-box > i {
  font-size: clamp(64px, 9vw, 92px);
  color: #fff;
}

.visual-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: .85rem;
}

.visual-tag i {
  color: var(--accent);
}

.visual-tag-tl {
  top: -14px;
  left: -14px;
}

.visual-tag-br {
  bottom: -14px;
  right: -14px;
}

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.card-service {
  padding: 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .25s ease, box-shadow .3s ease, transform .25s ease;
}

.card-service:hover {
  border-color: oklch(0.72 0.17 52 / .5);
  box-shadow: 0 0 50px -16px var(--glow);
  transform: translateY(-4px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: oklch(0.72 0.17 52 / .12);
  color: var(--accent-deep);
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.card-service h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.card-service p {
  color: var(--ink-2);
  font-size: .98rem;
  margin-top: 10px;
  line-height: 1.55;
}

/* ---------- GOV SYSTEMS ---------- */
.section-systems {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 4vw, 60px) clamp(20px, 5vw, 56px);
}

.systems-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 24px;
  background: linear-gradient(135deg, #FFFFFF, #FBF7F0);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.systems-orb {
  position: absolute;
  top: -60%; right: -10%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.17 52 / .25), transparent 70%);
  filter: blur(10px);
  animation: restPulse 5s ease-in-out infinite;
  pointer-events: none;
}

.systems-head {
  position: relative;
  max-width: 620px;
}

.systems-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 14px 0 0;
}

.systems-head p {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin-top: 14px;
}

.systems-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color .25s ease, box-shadow .3s ease;
  cursor: default;
}

.chip i {
  color: var(--accent-deep);
}

.chip:hover {
  border-color: oklch(0.72 0.17 52 / .55);
  box-shadow: 0 0 30px -10px var(--glow);
}

/* ---------- ABOUT ---------- */
.section-about {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 5.5vw, 80px) clamp(20px, 5vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.about-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
  margin: 16px auto 0;
  max-width: 820px;
  text-wrap: balance;
}

.about-head h2 .gradient-text {
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.about-head p {
  color: var(--ink-2);
  font-size: 1.15rem;
  margin: 18px auto 0;
  max-width: 620px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}

.about-card {
  padding: 26px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.about-card i {
  font-size: 1.6rem;
  color: var(--accent-deep);
}

.about-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 14px 0 6px;
}

.about-card p {
  color: var(--ink-2);
  font-size: .95rem;
}

/* ---------- PROCESS ---------- */
.section-process {
  position: relative;
  z-index: 1;
  padding: clamp(44px, 5vw, 76px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.process-head {
  margin-bottom: 26px;
}

.process-head h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 14px 0 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.process-step {
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -.03em;
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 10px 0 8px;
}

.process-step p {
  color: var(--ink-2);
  font-size: .95rem;
}

/* ---------- CONTACT ---------- */
.section-contact {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 5.5vw, 84px) clamp(20px, 5vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 24px;
  background: linear-gradient(135deg, oklch(0.72 0.17 52 / .1), #FBF7F0);
  border: 1px solid oklch(0.72 0.17 52 / .25);
  position: relative;
  overflow: hidden;
}

.contact-orb {
  position: absolute;
  bottom: -50%; left: -10%;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.17 52 / .3), transparent 70%);
  filter: blur(8px);
  animation: restPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.contact-info {
  position: relative;
}

.contact-info h2 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.contact-info > p {
  color: var(--ink-2);
  font-size: 1.1rem;
  margin-top: 14px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}

.contact-links a:hover {
  color: var(--accent-2);
}

.contact-links i {
  color: var(--accent-deep);
  font-size: 1.2rem;
}

/* Contact form */
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 18px;
  border-radius: 13px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.72 0.17 52 / .18);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-3);
}

/* Honeypot — visually hidden, bots fill it */
.form-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

.btn-submit {
  margin-top: 4px;
  padding: 16px;
  border: none;
  border-radius: 13px;
  background: var(--accent-deep);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .4), 0 0 34px var(--glow);
  transition: transform .14s ease, box-shadow .3s ease;
  width: 100%;
}

.btn-submit:hover {
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .7), 0 0 56px var(--glow);
}

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

.btn-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.form-note {
  font-size: .78rem;
  color: var(--ink-2);
  text-align: center;
  margin-top: 2px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 46px clamp(20px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 16px auto 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 18px var(--glow);
}

.footer-logo-name {
  font-weight: 700;
  font-size: 18px;
}

.footer-copy {
  color: var(--ink-2);
  font-size: .88rem;
}

/* ---------- TOAST ---------- */
.rest-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid oklch(0.72 0.17 52 / .4);
  box-shadow: 0 0 40px -8px var(--glow), 0 8px 32px rgba(43,40,36,.12);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  font-family: 'Onest', system-ui, sans-serif;
  max-width: calc(100vw - 40px);
  text-align: center;
  white-space: normal;
}

.rest-toast.toast-visible {
  animation: toastIn .3s ease forwards;
}

.rest-toast.toast-hiding {
  animation: toastOut .3s ease forwards;
}

.toast-icon {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Reveal animation (JS adds .revealed) ---------- */
[data-reveal] {
  /* default visible — progressive enhancement */
}

[data-reveal].will-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1);
}

[data-reveal].will-animate.revealed {
  opacity: 1;
  transform: none;
}

/* Hero-specific (JS adds .will-animate then .revealed) */
[data-hero].will-animate {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.4,0,.2,1);
}

[data-hero].will-animate.revealed {
  opacity: 1;
  transform: none;
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav links */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 0;
    background: rgba(250,248,244,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 55;
  }

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

  .nav-links a {
    font-size: 1.4rem;
    color: var(--ink);
  }

  .nav-cta {
    padding: 14px 28px;
    font-size: 1.1rem;
  }

  /* Hero */
  .site-hero {
    padding-top: 96px;
    padding-bottom: 48px;
    min-height: auto;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  /* Toast */
  .rest-toast {
    bottom: 20px;
    padding: 14px 20px;
    font-size: .9rem;
  }
}

@media (max-width: 480px) {
  .chip {
    padding: 10px 14px;
    font-size: .9rem;
  }
}

/* ---------- Link-btn utility for the featured card ---------- */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .4), 0 0 28px var(--glow);
  transition: box-shadow .3s ease, transform .14s ease;
}

.link-btn:hover {
  box-shadow: 0 0 0 1px oklch(0.72 0.17 52 / .65), 0 0 46px var(--glow);
}

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

/* AI-model chips (featured card) */
.ai-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: border-color .25s ease, box-shadow .3s ease;
}
.ai-model-chip:hover {
  border-color: oklch(0.72 0.17 52 / .5);
  box-shadow: 0 0 26px -10px var(--glow);
}
.ai-model-chip svg { flex-shrink: 0; }
