:root {
  --bg: #060606;
  --bg2: #0e0e0e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --border2: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --muted: #a3a3a3;
  --primary: #ffffff;
  --primary2: #d4d4d4;
  --dim: #525252;
  --grad: linear-gradient(135deg, #ffffff, #9e9e9e);
  --grad2: linear-gradient(135deg, #fafafa, #777777);
  --glow: rgba(255, 255, 255, 0.16);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --container: 1120px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

::selection {
  background: #fff;
  color: #000;
}

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffffff, #6b6b6b);
  border-radius: 8px;
  border: 3px solid #080808;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #d4d4d4 #080808;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .logo {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(120deg, #ffffff 30%, #c9c9c9 70%, #9e9e9e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo {
  animation: logoFloat 5s ease-in-out infinite;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: screen;
  -webkit-text-fill-color: initial;
  flex-shrink: 0;
  animation: logoGlow 3.6s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.logo:hover .logo-img {
  transform: rotate(-6deg) scale(1.12);
  animation-duration: 1.2s;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.5)); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  position: relative;
  padding: 6px 2px;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, #9e9e9e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  transform: scaleX(1);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--text);
}

.lang-select {
  appearance: none;
  border: 1px solid var(--border2);
  background: var(--surface2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d4d4d4' stroke-width='1.5' fill='none'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border-radius: 10px;
  padding: 8px 30px 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-select:hover,
.lang-select:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.lang-select option {
  background: #0e0e0e;
  color: #e5e5e5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  background: #ffffff;
  color: #000;
  border: 1px solid #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.25s ease;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.btn:hover {
  background: #dedede;
  border-color: #dedede;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.22);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 112px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 62%);
  filter: blur(30px);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -160px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 62%);
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(70px, 50px) scale(1.12);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary2);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
  padding: 8px 16px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.04;
  margin: 0 0 24px;
  font-weight: 700;
  background: linear-gradient(115deg, #ffffff 25%, #d4d4d4 60%, #8f8f8f 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

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

.hero-stats {
  display: flex;
  gap: 44px;
  list-style: none;
  margin: 52px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Hero 3D visual ---------- */

.hero-visual {
  position: relative;
  min-height: 460px;
  perspective: 1200px;
}

.sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #dddddd 40%, #5a5a5a 72%, #2b2b2b 88%);
  box-shadow: 0 0 90px rgba(255, 255, 255, 0.14), inset -40px -40px 80px rgba(0, 0, 0, 0.55);
  animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-18px) rotate(3deg);
  }
}

.code-window {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 92%;
  transform: translate(-50%, -50%) rotateX(10deg) rotateY(-12deg) rotateZ(2deg);
  background: rgba(16, 16, 18, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.code-window:hover {
  transform: translate(-50%, -50%) rotateX(4deg) rotateY(-4deg) translateY(-8px);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.75), 0 0 80px rgba(255, 255, 255, 0.12);
}

.code-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shine 5s linear infinite;
}

@keyframes shine {
  from {
    left: -40%;
  }
  to {
    left: 120%;
  }
}

.code-bar {
  display: flex;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.code-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f3f4f6;
}

.code-bar i:nth-child(2) {
  background: #9ca3af;
}

.code-bar i:nth-child(3) {
  background: #4b5563;
}

.code-window pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
}

.code-window code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.8;
  color: #e5e5e5;
}

.c-key {
  color: #ffffff;
  font-weight: 600;
}
.c-str {
  color: #a3a3a3;
}
.c-num {
  color: #f5f5f5;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  font-size: 0.84rem;
  font-weight: 600;
  color: #e5e5e5;
  white-space: nowrap;
}

.float-chip .ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 1rem;
  background: linear-gradient(145deg, #ffffff, #8f8f8f);
  color: #000;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.chip-1 {
  top: -6px;
  left: -14px;
  animation: floaty 7s ease-in-out infinite;
}

.chip-2 {
  right: -18px;
  top: 34%;
  animation: floaty 8s ease-in-out 0.8s infinite;
}

.chip-3 {
  bottom: -8px;
  left: 2px;
  animation: floaty 9s ease-in-out 1.5s infinite;
}

/* ---------- Marquee ribbon ---------- */

.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 36s linear infinite;
}

.marquee-track span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5c5c5c;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}

.marquee-track span b {
  color: var(--primary2);
}

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

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  margin: 0;
  background: linear-gradient(120deg, #ffffff 35%, #d6d6d6 70%, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head .lead {
  margin-top: 18px;
  font-size: 1.05rem;
}

/* Services list (editorial) */
.services-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.services-aside h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  margin: 0;
  background: linear-gradient(120deg, #ffffff 35%, #d6d6d6 70%, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-aside .lead {
  margin-top: 18px;
  font-size: 1.05rem;
}

.services-aside .btn {
  margin-top: 26px;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px 12px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  background: transparent;
  transition: background 0.25s ease, padding 0.25s ease;
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.12));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-row:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  padding-left: 22px;
}

.service-row:hover::after {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-row:hover .service-num {
  color: var(--muted);
}

.service-con {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border2);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.service-row:hover .service-con {
  border-color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.08);
}

.service-icon {
  font-size: 1.3rem;
  filter: grayscale(1) contrast(1.15);
}

.service-body h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.service-row:hover .service-body h3 {
  transform: translateX(4px);
}

.service-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.service-arrow {
  justify-self: end;
  font-size: 1.15rem;
  color: var(--dim);
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-row:hover .service-arrow {
  color: #fff;
  transform: translateX(6px);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-grid > div > p {
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #fff, #7a7a7a);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-list li:hover {
  transform: translateX(6px);
  border-color: var(--border2);
  background: var(--surface2);
}

.feature-list li:hover::before {
  opacity: 1;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

.step-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #7a7a7a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% -20%, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

.card:hover::after {
  opacity: 1;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  filter: grayscale(1) contrast(1.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25));
  color: #000;
  border: 1px solid var(--border2);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.1);
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card a {
  position: relative;
  z-index: 1;
  color: var(--primary2);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card a:hover::after {
  transform: translateX(4px);
}

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(255, 255, 255, 0.09), transparent),
    radial-gradient(900px 420px at 90% 0%, rgba(255, 255, 255, 0.05), transparent);
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%);
  filter: blur(50px);
  animation: drift 18s ease-in-out infinite alternate;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .lead {
  max-width: 62ch;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  perspective: 1400px;
}

.plan {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.plan:hover {
  border-color: var(--border2);
}

.plan-featured {
  background: linear-gradient(#101010, #101010) padding-box, linear-gradient(160deg, #ffffff, #7a7a7a) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(255, 255, 255, 0.13);
  transform: translateY(-8px);
}

.plan-featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 70px rgba(255, 255, 255, 0.2);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.plan h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.plan-desc {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 22px;
}

.price {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.price strong {
  font-family: var(--font-head);
  font-size: 2.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
  display: block;
}

.plan-features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 13px;
  flex-grow: 1;
}

.plan-features li {
  padding-left: 30px;
  position: relative;
  font-size: 0.93rem;
  color: #d4d4d4;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #8f8f8f);
  mask: no-repeat center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 34px;
  padding: 14px 20px;
  border: 1px dashed var(--border2);
  border-radius: 12px;
  display: inline-block;
  width: 100%;
}

/* ---------- Courses ---------- */

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.track {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.track::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
  opacity: 0.12;
}

.track:hover {
  transform: translateY(-5px);
  border-color: var(--border2);
}

.track h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.track p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 180px at 50% -20%, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

.course-card:hover::after {
  opacity: 1;
}

.tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  margin-bottom: 16px;
}

.tag.dev {
  background: rgba(255, 255, 255, 0.04);
  color: #9c9c9c;
  border-color: var(--border);
}

.course-card h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.course-card > p {
  color: var(--muted);
  font-size: 0.92rem;
  flex-grow: 1;
  margin: 0 0 18px;
}

.course-meta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  align-items: baseline;
}

.course-meta span b {
  color: #e5e5e5;
  font-weight: 600;
}

.course-meta .c-price {
  grid-row: span 2;
  align-self: end;
  justify-self: end;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 15px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-meta .c-price:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.check-list li {
  padding-left: 34px;
  position: relative;
  font-size: 1rem;
  color: #d4d4d4;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #8f8f8f);
  mask: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.contact-info li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.contact-info strong {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 2px;
}

.contact-info a,
.contact-info span {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  color: #c9c9c9;
}

.contact-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: #d4d4d4;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b6b6b;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.field select option {
  background: #0e0e0e;
  color: #e5e5e5;
}

.field input.invalid,
.field textarea.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

.form-status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  min-height: 1.4em;
  text-align: center;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03) 55%);
  border: 1px solid var(--border2);
  border-radius: calc(var(--radius) + 10px);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 10%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  filter: blur(50px);
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #c9c9c9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-banner p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.cta-note {
  margin-top: 44px;
  text-align: center;
  color: var(--muted);
}

.cta-note a {
  color: #efefef;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(180deg, #0a0a0a, #060606);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 56px 0 32px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.site-footer .logo {
  background: linear-gradient(120deg, #ffffff 30%, #9e9e9e);
  -webkit-background-clip: text;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-grid p {
  margin: 10px 0 0;
  font-size: 0.93rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  margin-top: 24px !important;
  font-size: 0.85rem !important;
  text-align: center;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 14px 24px 24px;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

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

  .nav-links .btn {
    margin-top: 10px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
    max-width: 520px;
    margin: 0 auto;
  }

  .pricing-grid,
  .steps,
  .card-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    gap: 24px;
  }

  .plan-featured {
    transform: none;
  }
}

@media (max-width: 560px) {
  .service-row {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 22px 4px;
  }

  .service-row:hover {
    padding-left: 8px;
  }

  .service-num {
    display: none;
  }
}
    padding: 76px 0 56px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-visual {
    min-height: 300px;
  }

  .float-chip {
    font-size: 0.72rem;
    padding: 8px 12px;
  }

  .chip-2 {
    display: none;
  }

  .contact-form {
    padding: 24px;
  }

  .cta-banner {
    padding: 36px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 46px;
    width: auto;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}