:root {
  color-scheme: dark;
  --bg: #071316;
  --bg-soft: #0d2328;
  --surface: rgba(13, 35, 40, 0.74);
  --surface-strong: rgba(240, 233, 215, 0.94);
  --text: #f6efe2;
  --text-muted: #b5c6c8;
  --ink: #102c34;
  --accent: #f15c2a;
  --accent-strong: #ff8a52;
  --mint: #2ca8b7;
  --clay: #f15c2a;
  --border: rgba(246, 239, 226, 0.15);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --radius-lg: 34px;
  --radius-md: 22px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(44, 168, 183, 0.26), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(241, 92, 42, 0.2), transparent 24rem),
    linear-gradient(135deg, #061013 0%, #0a1d22 45%, #12313a 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-orbit {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(244, 185, 95, 0.14);
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.site-orbit-one {
  top: 8rem;
  right: -12rem;
}

.site-orbit-two {
  bottom: -14rem;
  left: -10rem;
  border-color: rgba(44, 168, 183, 0.14);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 17, 18, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(241, 92, 42, 0.32);
  background: rgba(9, 17, 18, 0.9);
  transform: translateX(-50%) translateY(-4px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: rgb(255, 255, 255);
  box-shadow: inset 0 0 0 1px rgba(16, 44, 52, 0.08);
}

.brand-mark img {
  display: block;
  width: 32px;
  height: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-weight: 800;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(246, 239, 226, 0.08);
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 56px;
  min-height: 100vh;
  padding: 142px 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 8vw, 7.6rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-text,
.section-heading p,
.profile-card p,
.contact-card p,
.service-card p,
.timeline-item p,
.floating-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 680px;
  font-size: 1.15rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-ghost {
  border-color: var(--border);
  background: rgba(246, 239, 226, 0.06);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  max-width: 720px;
}

.hero-stats article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(246, 239, 226, 0.055);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  margin-bottom: 10px;
  color: #7cd3dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.hero-stats span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-panel {
  position: relative;
  min-height: 560px;
}

.code-card {
  position: absolute;
  inset: 44px 0 auto auto;
  width: min(100%, 470px);
  border: 1px solid rgba(246, 239, 226, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(11, 22, 23, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-card-top {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(246, 239, 226, 0.1);
}

.code-card-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clay);
}

.code-card-top span:nth-child(2) {
  background: var(--accent);
}

.code-card-top span:nth-child(3) {
  background: var(--mint);
}

pre {
  margin: 0;
  padding: 28px;
  overflow-x: hidden;
  color: #dff9ff;
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 16px;
  max-width: 330px;
  padding: 18px;
  border: 1px solid rgba(17, 32, 31, 0.12);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  color: var(--ink);
}

.floating-card p {
  margin: 0;
  color: rgba(17, 32, 31, 0.68);
}

.floating-card .icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: #ff9363;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.floating-card-main {
  top: 0;
  left: 0;
}

.floating-card-alt {
  right: 0;
  bottom: 44px;
}

.services,
.ai-section,
.process,
.profile,
.contact {
  padding: 92px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 330px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
}

.service-number {
  display: inline-flex;
  margin-bottom: 64px;
  color: var(--mint);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(246, 239, 226, 0.055);
}

.timeline-item span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 44px;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.profile-card,
.ai-card,
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 34px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(145deg, rgba(44, 168, 183, 0.14), rgba(241, 92, 42, 0.1)),
    rgba(246, 239, 226, 0.06);
  box-shadow: var(--shadow);
}

.ai-card {
  background:
    radial-gradient(circle at 22% 18%, rgba(241, 92, 42, 0.2), transparent 22rem),
    linear-gradient(145deg, rgba(246, 239, 226, 0.1), rgba(44, 168, 183, 0.1)),
    rgba(10, 29, 34, 0.82);
}

.ai-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-benefits article {
  padding: 18px;
  border: 1px solid rgba(246, 239, 226, 0.13);
  border-radius: 22px;
  background: rgba(246, 239, 226, 0.055);
}

.ai-benefits span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #ff9363;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.ai-benefits strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.ai-benefits p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.skills-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(246, 239, 226, 0.08);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tag-list span {
  padding: 9px 12px;
  border: 1px solid rgba(44, 168, 183, 0.26);
  border-radius: 999px;
  background: rgba(44, 168, 183, 0.12);
  color: #ddfbff;
  font-size: 0.9rem;
  font-weight: 800;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  list-style: none;
  line-height: 1.55;
}

.clean-list li {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.contact-card {
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(241, 92, 42, 0.18), transparent 26rem),
    var(--surface-strong);
  color: var(--ink);
}

.contact-card .eyebrow {
  color: #bf421b;
}

.contact-card p {
  color: rgba(17, 32, 31, 0.68);
}

.contact-details {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--text);
  font-style: normal;
}

.contact-details strong {
  margin-bottom: 4px;
  color: #ff9363;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.contact-details a {
  color: #7cd3dc;
  font-weight: 800;
}

.site-footer {
  display: flex;
  width: var(--container);
  margin: 0 auto;
  padding: 36px 0 48px;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

.travel-hero {
  padding: 150px 0 32px;
}

.travel-hero h1 {
  max-width: 980px;
}

.travel-map-section {
  padding: 28px 0 92px;
}

.travel-map-card {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 10px);
  background:
    radial-gradient(circle at 82% 18%, rgba(44, 168, 183, 0.16), transparent 26rem),
    rgba(10, 29, 34, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.map-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.map-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}

.map-reset {
  flex: 0 0 auto;
}

.map-shell {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(246, 239, 226, 0.11);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 48%, rgba(44, 168, 183, 0.08), transparent 34rem),
    #111719;
  overflow: hidden;
}

.world-map {
  display: block;
  width: 100%;
  min-height: 420px;
  cursor: grab;
  touch-action: none;
}

.world-map:active {
  cursor: grabbing;
}

.country {
  stroke: rgba(246, 239, 226, 0.11);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease, opacity 0.2s ease;
}

.country.is-visited {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 0.8;
  cursor: pointer;
}

.country.is-visited:hover {
  opacity: 0.86;
}

.map-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(246, 239, 226, 0.16);
  border-radius: 14px;
  background: rgba(7, 19, 22, 0.92);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-size: 0.92rem;
  font-weight: 800;
  pointer-events: none;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text-muted);
  text-align: center;
  background: rgba(17, 23, 25, 0.7);
}

.map-loading[hidden] {
  display: none;
}

.map-loading.is-error {
  color: #ffb399;
}

.visited-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.visited-list button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(246, 239, 226, 0.12);
  border-radius: 999px;
  background: rgba(246, 239, 226, 0.06);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.visited-list button:hover,
.visited-list button:focus-visible {
  border-color: rgba(246, 239, 226, 0.28);
  background: rgba(246, 239, 226, 0.1);
  transform: translateY(-1px);
}

.visited-list span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--country-color);
}

.map-note {
  max-width: 840px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero,
  .profile-card,
  .ai-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 500px;
  }

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

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 24px, 1160px);
  }

  .site-header {
    top: 10px;
    border-radius: 26px;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(9, 17, 18, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 16px;
  }

  .hero {
    gap: 30px;
    padding-top: 128px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero-stats,
  .ai-benefits,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: grid;
    min-height: auto;
    gap: 14px;
  }

  .code-card,
  .floating-card {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
  }

  .services,
  .ai-section,
  .process,
  .profile,
  .contact,
  .travel-map-section {
    padding: 62px 0;
  }

  .travel-hero {
    padding-top: 128px;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .map-reset {
    width: fit-content;
  }

  .map-shell,
  .world-map {
    min-height: 360px;
  }

  .service-card,
  .timeline-item {
    min-height: auto;
  }

  .service-number,
  .timeline-item span {
    margin-bottom: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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