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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #0a0e1a;
  color: #e8edf5;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

body.legal-page {
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1526 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

svg,
canvas {
  display: block;
}

footer ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

/* Theme */
:root {
  --color-navy: #0a0e1a;
  --color-deep: #0d1526;
  --color-mid: #111d35;
  --color-accent: #2dd4bf;
  --color-accent2: #38bdf8;
  --color-muted: #8892a4;
  --color-light: #e8edf5;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* Components */
.gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #2dd4bf22, #38bdf844, #818cf822);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-glass {
  background: rgba(17, 29, 53, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(45, 212, 191, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
  background: rgba(17, 29, 53, 0.85);
  border-color: rgba(45, 212, 191, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(45, 212, 191, 0.08);
}

.legal-page .card-glass,
.legal-page .card-glass:hover {
  background: rgba(17, 29, 53, 0.72);
  border: 1px solid rgba(45, 212, 191, 0.08);
  transform: none;
  box-shadow: none;
}

.nav-glass {
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.06);
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  color: #0a0e1a;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(45, 212, 191, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.6);
}

.service-card {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.from-right {
  transform: translateX(80px);
}

.service-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-teal {
  background: rgba(45, 212, 191, 0.1);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.tag-blue {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tag-violet {
  background: rgba(129, 140, 248, 0.1);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.2);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  min-height: 52px;
  background: rgba(17, 29, 53, 0.8);
  border: 1px solid rgba(45, 212, 191, 0.12);
  border-radius: 10px;
  color: #e8edf5;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: all 0.3s ease;
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 52px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(232, 237, 245, 0.88) 50%),
    linear-gradient(135deg, rgba(232, 237, 245, 0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 1px),
    calc(100% - 16px) calc(50% - 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select::-ms-expand {
  display: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.07);
}

input::placeholder,
textarea::placeholder {
  color: #4a5568;
}

select:invalid {
  color: #cdd6e3;
}

select option {
  background: #111d35;
  color: #e8edf5;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #8892a4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-counter {
  font-variant-numeric: tabular-nums;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.2), transparent);
}

.glow-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf, 0 0 20px rgba(45, 212, 191, 0.4);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-line {
  will-change: transform, opacity;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 212, 191, 0.5);
}

/* Utilities */
.absolute { position: absolute; }
.fixed { position: fixed; }
.relative { position: relative; }
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-px { width: 1px; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }
.w-96 { width: 24rem; }
.w-\[800px\] { width: 800px; }
.w-\[900px\] { width: 900px; }

.h-0\.5 { height: 0.125rem; }
.h-px { height: 1px; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }
.h-\[400px\] { height: 400px; }
.h-\[600px\] { height: 600px; }

.max-w-xs { max-width: 20rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.cursor-default { cursor: default; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; border-color: currentColor; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-red-400\/20 { border-color: rgba(248, 113, 113, 0.2); }
.border-\[\#2dd4bf\]\/5 { border-color: rgba(45, 212, 191, 0.05); }

.bg-\[\#2dd4bf\] { background-color: #2dd4bf; }
.bg-\[\#e8edf5\] { background-color: #e8edf5; }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-\[\#2dd4bf\] { --tw-gradient-from: #2dd4bf; }
.to-transparent { --tw-gradient-to: transparent; }

.text-center { text-align: center; }
.text-\[\#2dd4bf\] { color: #2dd4bf; }
.text-\[\#8892a4\] { color: #8892a4; }
.text-\[\#e8edf5\] { color: #e8edf5; }
.text-red-100 { color: #fee2e2; }
.text-white { color: #ffffff; }
.text-\[10px\] { font-size: 10px; line-height: 1rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-\[1\.0\] { line-height: 1; }
.leading-7 { line-height: 1.75rem; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

.opacity-40 { opacity: 0.4; }

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.origin-center { transform-origin: center; }

.-translate-x-1\/2,
.-translate-y-1\/2,
.group-hover\:scale-110 {
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.right-0 { right: 0; }
.-right-3 { right: -0.75rem; }
.bottom-0 { bottom: 0; }
.bottom-8 { bottom: 2rem; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.inset-0 { inset: 0; }

.-translate-x-1\/2 { --tw-translate-x: -50%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.pt-16 { padding-top: 4rem; }
.pb-8 { padding-bottom: 2rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.scroll-smooth { scroll-behavior: smooth; }

.hover\:text-\[\#2dd4bf\]:hover { color: #2dd4bf; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:gap-3:hover { gap: 0.75rem; }

.group:hover .group-hover\:scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:h-20 { height: 5rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:flex-col { flex-direction: column; }
  .lg\:items-center { align-items: center; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:gap-20 { gap: 5rem; }
  .lg\:mb-20 { margin-bottom: 5rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .lg\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  .lg\:py-36 {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 1280px) {
  .xl\:text-8xl { font-size: 6rem; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .scroll-fade,
  .process-step {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
