@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/outfit-v15-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/outfit-v15-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/outfit-v15-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/outfit-v15-latin-600.woff2') format('woff2');
}

:root {
  --bg: #faf8f3;
  --bg-mid: #f6f2ea;
  --bg-end: #f9f5ed;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --button-bg: #0071e3;
  --button-hover: #0068d1;
  --card-bg: rgba(255, 255, 255, 0.88);
  --border: #e5e5e7;
  --input-bg: #f5f5f7;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  --radius: 14px;
  --placeholder-gradient: linear-gradient(145deg, #e8e8ed, #d2d2d7);
  --focus-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
  --ring-shadow: rgba(0, 113, 227, 0.14);
}

[data-theme="dark"] {
  --bg: #1c1d20;
  --bg-mid: #202124;
  --bg-end: #1d1e22;
  --text: #f5f5f7;
  --text-secondary: #98989f;
  --accent: #2997ff;
  --accent-hover: #40a9ff;
  --button-bg: #0071e3;
  --button-hover: #0068d1;
  --card-bg: rgba(28, 28, 30, 0.92);
  --border: #2c2c2e;
  --input-bg: #1c1c1e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --placeholder-gradient: linear-gradient(145deg, #2c2c2e, #1c1c1e);
  --focus-shadow: 0 0 0 3px rgba(41, 151, 255, 0.15);
  --ring-shadow: rgba(41, 151, 255, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  animation: pageBackgroundShift 40s ease-in-out infinite alternate;
  overflow-x: hidden;
}

.theme-toggle,
.lang-toggle,
main,
footer {
  position: relative;
  z-index: 1;
}

.theme-toggle,
.lang-toggle {
  position: fixed;
  top: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  left: 24px;
}

.lang-toggle {
  right: 24px;
}

.toggle-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  user-select: none;
}

.toggle-label.is-active {
  color: var(--text);
}

.toggle-icon {
  font-size: 15px;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.toggle-icon.sun {
  opacity: 0.4;
}

.toggle-icon.moon {
  opacity: 1;
}

[data-theme="dark"] .toggle-icon.sun {
  opacity: 1;
}

[data-theme="dark"] .toggle-icon.moon {
  opacity: 0.4;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #e5e5e7;
  border-radius: 14px;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding-top: 96px;
  padding-bottom: 12px;
  text-align: center;
}


.hero-image-wrapper {
  width: 250px;
  height: 250px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  transition: background 0.3s ease;
}

.hero-image-wrapper picture,
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image-wrapper img {
  object-fit: cover;
  object-position: center 15%;
}

.hero h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero .tagline {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.services-intro {
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  margin-bottom: 0;
}

.icon-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.icon-link:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

[data-theme="dark"] .icon-link:hover {
  border-color: rgba(41, 151, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.icon-link svg {
  display: block;
  width: 21px;
  height: 21px;
}

.hero-video-wrap {
  margin-top: 32px;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 48px auto;
  border-radius: 1px;
  transition: background 0.3s ease;
}

.about,
.contact {
  padding-bottom: 20px;
  text-align: center;
}

.about {
  padding-top: 36px;
}

.about h2,
.contact h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}

.service-tag {
  padding: 8px 18px;
  background: var(--input-bg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.service-tag:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.video-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
  border: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-video-card {
  overflow: hidden;
}

.video-placeholder {
  position: relative;
  min-height: 340px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    radial-gradient(circle at center, rgba(0, 113, 227, 0.03), transparent 52%),
    var(--input-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px;
  isolation: isolate;
}

[data-theme="dark"] .video-placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    radial-gradient(circle at center, rgba(41, 151, 255, 0.06), transparent 52%),
    #161618;
}

.video-overlay-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(0, 113, 227, 0.025), transparent 42%);
  animation: none;
  z-index: -1;
}

[data-theme="dark"] .video-overlay-glow {
  background: radial-gradient(circle at 50% 40%, rgba(41, 151, 255, 0.05), transparent 44%);
}

.video-copy {
  max-width: 460px;
  color: var(--text-secondary);
}

.play-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.14);
  box-shadow: 0 0 0 0 var(--ring-shadow);
  animation: pulseRing 9.5s ease-out infinite;
}

[data-theme="dark"] .play-ring {
  background: rgba(41, 151, 255, 0.1);
  border-color: rgba(41, 151, 255, 0.22);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--accent);
}

.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--card-bg);
  box-shadow: var(--focus-shadow);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a1a1a6;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: #636366;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--button-bg);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.submit-btn:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

[data-theme="dark"] .submit-btn:hover {
  box-shadow: 0 4px 12px rgba(41, 151, 255, 0.3);
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}

.form-note.is-active {
  color: var(--accent);
}

.form-note.is-success {
  color: #1d7f45;
}

.form-note.is-error {
  color: #c2413d;
}

.privacy-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: left;
}

.privacy-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot-field {
  display: none;
}

footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

footer a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

footer .copyright {
  font-size: 12px;
  color: var(--text-secondary);
}

.legal {
  padding: 80px 0 60px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

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

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

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.legal-inline-trigger {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.legal-inline-trigger:hover {
  text-decoration: underline;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 12, 16, 0.42);
  backdrop-filter: blur(8px);
}

.contact-modal-panel {
  width: min(100%, 640px);
  max-height: min(90vh, 860px);
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--text-secondary);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-modal-panel h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.modal-intro {
  color: var(--text-secondary);
  margin-bottom: 22px;
  padding-right: 32px;
}

.modal-form-card {
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

@media (max-width: 860px) {
  .hero-image-wrapper {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-image-wrapper {
    width: 160px;
    height: 160px;
  }

  .hero .tagline {
    font-size: 16px;
  }

  .services-intro,
  .video-copy {
    font-size: 15px;
  }

  .hero-video-wrap {
    margin-top: 24px;
  }

  .video-placeholder {
    min-height: 220px;
  }

  .form-card {
    padding: 24px;
  }

  .contact-icons {
    gap: 14px;
  }

  .theme-toggle {
    top: 16px;
    left: 16px;
  }

  .lang-toggle {
    top: 16px;
    right: 16px;
  }

}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageBackgroundShift {
  0% {
    background-color: var(--bg);
  }

  50% {
    background-color: var(--bg-mid);
  }

  100% {
    background-color: var(--bg-end);
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 var(--ring-shadow);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(0, 113, 227, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
  }
}
