/* =============================================
   DESIGN SYSTEM — LIGHT / CORPORATE (PROCRAFT)
============================================= */
:root {
  /* Sizning ranglaringiz */
  --pc-navy: #0f172a;
  --pc-blue: #2563eb;
  --pc-blue-hover: #1d4ed8;
  --pc-cyan: #06b6d4;
  --pc-bg: #f8fafc;
  --pc-border: #e2e8f0;
  --pc-muted: #64748b;
  --pc-white: #ffffff;
  --pc-green: #0d9488;

  /* Soya va Easing effektlari */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow-md:
    0 4px 6px -1px rgb(15 23 42 / 0.05), 0 2px 4px -2px rgb(15 23 42 / 0.05);
  --shadow-lg:
    0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.04);
  --shadow-xl:
    0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.05);
  --shadow-blue: 0 8px 16px -4px rgba(37, 99, 235, 0.3);

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-spring);
  --transition-slow: 0.7s var(--ease-spring);

  /* Shriftlar */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  background: var(--pc-bg);
  color: var(--pc-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--pc-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--pc-blue);
  border-radius: 2px;
}

/* Grain texture overlay (Light mode uchun moslashtirilgan) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035; /* Oq fonda grain biroz kuchliroq seziladi */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============ CURSOR GLOW ============ */
#cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(37, 100, 235, 0.438) 0%,
    transparent 65%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  will-change: left, top;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 70px;
  background: rgba(255, 255, 255, 0.85); /* Glassmorphism light */
  border-bottom: 1px solid var(--pc-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: height 0.4s var(--ease-smooth);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pc-navy);
  transition: opacity 0.2s;
}
.logo:hover {
  opacity: 0.8;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-back);
}
.logo:hover .logo-mark {
  transform: rotate(-12deg) scale(1.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-muted);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pc-blue);
  transition: width 0.35s var(--ease-expo);
}
.nav-link:hover {
  color: var(--pc-navy);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--pc-blue);
  color: var(--pc-white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.3s var(--ease-back);
  will-change: transform;
}
.nav-cta:hover {
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px clamp(24px, 6vw, 80px) 90px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--pc-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--pc-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 65% 45%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(
    ellipse at 65% 45%,
    black 0%,
    transparent 68%
  );
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 700px;
  height: 700px;
  top: -25%;
  right: -8%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 60%
  );
  animation: orb-breathe 14s ease-in-out infinite;
}
.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -15%;
  left: -8%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.07) 0%,
    transparent 60%
  );
  animation: orb-breathe 18s ease-in-out infinite reverse 3s;
}
.orb-3 {
  width: 280px;
  height: 280px;
  top: 38%;
  right: 22%;
  background: radial-gradient(
    circle,
    rgba(13, 148, 136, 0.06) 0%,
    transparent 60%
  );
  animation: orb-breathe 9s ease-in-out infinite 1.5s;
}
@keyframes orb-breathe {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.08) translateY(-32px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  min-width: 0;
  container-type: inline-size;
}
.hero-content > .gh-magnet {
  margin-top: 0;
  justify-self: stretch;
  max-width: 100%;
}
/* Stack below the copy on tablet/mobile */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .hero-content > .gh-magnet {
    margin-top: 28px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pc-blue);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-expo) 0.1s forwards;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--pc-blue);
  border-radius: 50%;
  animation: pulse-dot 2.2s ease infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}

.hero-title {
  font-family: var(--font-display);
  /* Sized to the copy column (cqi), not the viewport, so the long word
     "Professional" never overflows/clips when the widget sits beside it. */
  font-size: clamp(42px, 15.5cqi, 136px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--pc-navy);
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: block;
  opacity: 0;
  transform: translateY(104%);
  animation: line-reveal 1.1s var(--ease-expo) forwards;
}
.hero-title .line:nth-child(1) span {
  animation-delay: 0.18s;
}
.hero-title .line:nth-child(2) span {
  animation-delay: 0.28s;
}
.hero-title .line:nth-child(3) span {
  animation-delay: 0.38s;
}
.hero-title em {
  font-style: italic;
  color: var(--pc-blue);
  font-weight: 500;
}

@keyframes line-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--pc-muted);
  line-height: 1.72;
  margin-bottom: 44px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-expo) 0.52s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-expo) 0.64s forwards;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--pc-blue);
  color: var(--pc-white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.35s var(--ease-back);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-expo);
}
.btn-primary:hover::before {
  transform: translateX(0);
}
.btn-primary:hover {
  background: var(--pc-blue-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}
.btn-primary:active {
  transform: scale(0.96);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: transparent;
  color: var(--pc-navy);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--pc-border);
  transition: all 0.3s var(--ease-smooth);
}
.btn-ghost:hover {
  border-color: var(--pc-blue);
  color: var(--pc-blue);
  transform: translateY(-3px);
  background: rgba(37, 99, 235, 0.03);
}
.btn-ghost:active {
  transform: scale(0.96);
}

.scroll-hint {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--pc-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1s var(--ease-expo) 1.2s forwards;
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--pc-blue), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }
  48% {
    transform: scaleY(1);
    transform-origin: top;
  }
  52% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0.2;
  }
}

/* ============ STATS BAND ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  border-top: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
  background: var(--pc-white);
}
.stat-item {
  padding: clamp(28px, 4.5vw, 48px) clamp(24px, 4vw, 52px);
  border-right: 1px solid var(--pc-border);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.stat-item:last-child {
  border-right: none;
}
.stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 99, 235, 0.03);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease-expo);
}
.stat-item:hover::before {
  transform: scaleY(1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 400;
  color: var(--pc-blue);
  line-height: 1;
  position: relative;
}
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--pc-muted);
  line-height: 1.4;
  position: relative;
}

/* ============ SECTION UTILITIES ============ */
.section {
  padding: clamp(80px, 10vw, 120px) clamp(24px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
.section-full-bg {
  background: #f1f5f9; /* biroz oqdan to'qroq, vizual ajratish uchun */
  border-top: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pc-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--pc-blue);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--pc-navy);
  margin-bottom: 18px;
}
.section-title em {
  font-style: italic;
  color: var(--pc-blue);
}

.section-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--pc-muted);
  max-width: 540px;

  margin: 0 auto;
  line-height: 1.72;
}

/* ============ FEATURES ============ */
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--pc-border);
  border: 1px solid var(--pc-border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: clamp(52px, 7vw, 80px);
}

.feature {
  padding: clamp(32px, 5vw, 56px);
  background: var(--pc-white);
  transition: background 0.45s;
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pc-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-expo);
}
.feature:hover::after {
  transform: scaleX(1);
}
.feature:hover {
  background: var(--pc-bg);
}

.feature--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pc-muted);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  font-weight: 600;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--pc-blue);
  margin-bottom: 24px;
  transition: all 0.35s var(--ease-back);
}
.feature:hover .feature-icon {
  background: var(--pc-blue);
  color: var(--pc-white);
  transform: scale(1.1) rotate(-6deg);
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  color: var(--pc-navy);
  margin-bottom: 12px;
  line-height: 1.18;
}
.feature-text {
  font-size: 16px;
  color: var(--pc-muted);
  line-height: 1.72;
}

/* Mock UI visual (Yorug' fonga o'tkazilgan) */
.feature-visual {
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.feature-visual-inner {
  width: 100%;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  background: linear-gradient(135deg, var(--pc-bg), #e2e8f0);
}
.mock-avatar {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  margin-bottom: 14px;
}
.mock-bar {
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
}
.mock-bar.blue {
  background: var(--pc-blue);
}
.mock-bar.w85 {
  width: 85%;
}
.mock-bar.w65 {
  width: 65%;
}
.mock-bar.w45 {
  width: 45%;
}
.mock-btns {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.mock-btn {
  height: 32px;
  border-radius: 8px;
  flex: 1;
  background: #cbd5e1;
}
.mock-btn.blue {
  background: var(--pc-blue);
}

/* ============ TEMPLATES ============ */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 24px;
  margin-top: clamp(52px, 7vw, 80px);
}
.template-card {
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--pc-white);
  transition: all 0.55s var(--ease-expo);
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.template-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(37, 99, 235, 0.15);
}
.template-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--pc-border);
}
.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-expo);
}
.template-card:hover .template-thumb img {
  transform: scale(1.09);
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85) 0%,
    transparent 55%
  );
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity 0.4s;
}
.template-card:hover .template-overlay {
  opacity: 1;
}

.template-pill {
  background: var(--pc-blue);
  color: var(--pc-white);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(8px);
  transition: transform 0.45s var(--ease-expo);
}
.template-card:hover .template-pill {
  transform: translateY(0);
}

.template-info {
  padding: 20px 24px 24px;
}
.template-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--pc-blue);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.template-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--pc-navy);
  margin-bottom: 6px;
}
.template-desc {
  font-size: 15px;
  color: var(--pc-muted);
  line-height: 1.55;
}

/* ============ PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--pc-border);
  border: 1px solid var(--pc-border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: clamp(52px, 7vw, 80px);
}
.process-step {
  padding: clamp(32px, 4.5vw, 52px);
  background: var(--pc-white);
  transition: background 0.45s;
  position: relative;
}
.process-step:hover {
  background: var(--pc-bg);
}

.step-big-num {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 300;
  line-height: 1;
  color: var(--pc-border);
  margin-bottom: 28px;
  transition: color 0.45s;
}
.process-step:hover .step-big-num {
  color: rgba(37, 99, 235, 0.12);
}

.step-icon {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--pc-blue);
  margin-bottom: 18px;
  transition: all 0.35s var(--ease-back);
}
.process-step:hover .step-icon {
  background: var(--pc-blue);
  color: var(--pc-white);
  transform: scale(1.12) rotate(-4deg);
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--pc-navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.step-text {
  font-size: 15px;
  color: var(--pc-muted);
  line-height: 1.72;
}

/* ============ CTA (Bu qism qora fonga ega bo'lib qoldi - Dizayn qarori) ============ */
.cta-wrap {
  margin: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 72px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-inner {
  background:
    radial-gradient(
      ellipse at 80% 10%,
      rgba(6, 182, 212, 0.15) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 10% 90%,
      rgba(37, 99, 235, 0.2) 0%,
      transparent 55%
    ),
    var(--pc-navy);
  border: 1px solid #1e293b;
  padding: clamp(56px, 8vw, 100px) clamp(32px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 44px;
}
.cta-text {
  flex: 1;
  min-width: 280px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--pc-white);
  margin-bottom: 18px;
}
.cta-title em {
  font-style: italic;
  color: var(--pc-cyan);
}
.cta-sub {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 440px;
  line-height: 1.68;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cta-actions .btn-ghost {
  color: var(--pc-white);
  border-color: rgba(255, 255, 255, 0.2);
}
.cta-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pc-white);
  color: var(--pc-white);
}

/* ============ FAQ ============ */
.faq-list {
  display: grid;
  gap: 8px;
  margin-top: clamp(52px, 7vw, 72px);
}
.faq-item {
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.35s;
  background: var(--pc-white);
}
.faq-item:has(details[open]) {
  border-color: var(--pc-blue);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 24px) clamp(22px, 4vw, 30px);
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  color: var(--pc-navy);
  transition: color 0.2s;
  user-select: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-plus {
  width: 30px;
  height: 30px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--pc-blue);
  font-size: 20px;
  font-weight: 300;
  transition: all 0.4s var(--ease-back);
}
details[open] .faq-plus {
  transform: rotate(45deg);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}
.faq-answer {
  padding: 0 clamp(22px, 4vw, 30px) clamp(22px, 3vw, 26px);
  font-size: 15px;
  color: var(--pc-muted);
  line-height: 1.72;
  border-top: 1px solid var(--pc-border);
  padding-top: 20px;
  animation: faq-slide 0.35s var(--ease-expo) forwards;
}
@keyframes faq-slide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ FOOTER ============ */
.footer {
  padding: 18px clamp(18px, 5vw, 72px) 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgb(226 232 240 / 80%);
  background: #050816;
}

.footer .logo {
  color: #f8fafc;
  font-size: 18px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
}

.footer-top {
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(148 163 184 / 18%);
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  color: rgb(148 163 184 / 86%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-link {
  font-size: 13px;
  font-weight: 500;
  color: rgb(203 213 225 / 82%);
  transition: color 0.2s;
}

.footer-link:hover {
  color: #38bdf8;
}

.footer-link--disabled,
.footer-link--disabled:hover {
  color: rgb(148 163 184 / 42%);
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links,
  .footer-contact {
    justify-content: flex-start;
  }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-expo),
    transform 0.9s var(--ease-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}

/* =========================================
   ARTICLES & INNER PAGES (style.css ga qo'shing)
========================================= */
.article-hero {
  padding: clamp(100px, 12vw, 140px) clamp(24px, 6vw, 80px)
    clamp(60px, 8vw, 100px);
  background: var(--pc-bg);
  border-bottom: 1px solid var(--pc-border);
  text-align: center;
}
.article-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  max-width: 1280px;
  padding: clamp(64px, 8vw, 100px) clamp(24px, 6vw, 80px);
  margin: 0 auto;
}
.article-content h2 {
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--pc-navy);
  line-height: 1.2;
}
.article-content h2:first-child {
  margin-top: 0;
}
.article-content p,
.article-content li {
  color: var(--pc-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}
.article-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 32px;
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.article-aside h2 {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--pc-navy);
}
.article-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.article-nav a {
  color: var(--pc-muted);
  font-weight: 500;
  font-size: 15px;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}
.article-nav a:hover {
  color: var(--pc-blue);
  transform: translateX(6px);
}

/* ============ DESKTOP NAVIGATION ============ */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.desktop-nav .nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-muted);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.desktop-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pc-blue);
  transition: width 0.35s var(--ease-expo);
}

.desktop-nav .nav-link:hover {
  color: var(--pc-navy);
}
.desktop-nav .nav-link:hover::after {
  width: 100%;
}

/* ============ FULLSCREEN OVERLAY MENU ============ */
.menu-overlay {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98); /* Oq fon */
  z-index: 1000; /* Headerdan tepada turishi uchun */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Animatsiya siri shu yerda */
  opacity: 0;
  pointer-events: none; /* Yopiq payti xalaqit bermaydi */
  transition: opacity 0.4s ease;
}

.menu-overlay.is-active {
  opacity: 1;
  pointer-events: auto; /* Ochilganda bosish mumkin bo'ladi */
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: translateY(30px); /* Boshida sal pastda turadi */
  transition: transform 0.4s ease;
}

.menu-overlay.is-active .overlay-nav {
  transform: translateY(0); /* Menyu ochilganda joyiga chiqib keladi */
}

.overlay-link {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  color: var(--pc-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.overlay-link:hover {
  color: var(--pc-blue);
}

/* ============ HAMBURGER MENU TOGGLE ============ */
.menu-toggle {
  display: none; /* Katta ekranlarda ko'rinmaydi */
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; /* Barmoq bilan bosish qulay bo'lishi uchun aniq hajm */
  height: 44px;
  padding: 0 8px;
  z-index: 1000; /* Menyudan doim tepada turishi shart */
  position: relative;
}

.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--pc-navy); /* To'q ko'k rangda */
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}

/* Tugma bosilganda (X) ga aylanishi - matematik aniq hisob */
.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px); /* Sekin yonboshga chiqib yo'qoladi */
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ RESPONSIVE (MEDIA QUERIES) ============ */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex; /* Mobilda menyu tugmasi paydo bo'ladi */
  }
}

@media (min-width: 993px) {
  .menu-overlay {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    position: static;
    margin-top: 40px;
  }
}

/* ============ MOBILE ============ */
@media (max-width: 860px) {
  .nav-link {
    display: none;
  }
  .feature--hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .features-layout {
    grid-template-columns: 1fr;
  }
  .feature--hero {
    grid-column: 1;
  }
  .cta-inner {
    flex-direction: column;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    flex: 1;
    justify-content: center;
  }
}
@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    justify-content: center;
  }
  .scroll-hint {
    display: none;
  }
  .orb-1 {
    width: 320px;
    height: 320px;
  }
  .orb-2 {
    width: 250px;
    height: 250px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================
   GITHUB PORTFOLIO MAGNET
============================ */
.gh-magnet {
  margin-top: 28px;
  width: 100%;
  max-width: 520px;
}
.gh-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.gh-input-wrap:focus-within {
  border-color: var(--pc-blue);
  box-shadow: var(--shadow-blue);
}
.gh-input-wrap svg {
  flex: none;
  color: var(--pc-navy);
}
.gh-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--pc-navy);
  font-family: inherit;
}
.gh-input-wrap input::placeholder {
  color: var(--pc-muted);
}
.gh-go {
  flex: none;
  border: none;
  cursor: pointer;
  background: var(--pc-blue);
  color: var(--pc-white);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.gh-go:hover {
  background: var(--pc-blue-hover);
}
.gh-go:active {
  transform: scale(0.97);
}
.gh-go:disabled {
  opacity: 0.6;
  cursor: default;
}
.gh-hint {
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--pc-muted);
}

.gh-result {
  max-width: 760px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.gh-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 28px;
  animation: ghIn 0.5s var(--ease-spring) both;
}
@keyframes ghIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.gh-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.gh-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pc-border);
}
.gh-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--pc-navy);
}
.gh-loc {
  font-size: 13px;
  color: var(--pc-muted);
  margin-top: 2px;
}
.gh-bio {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}
.gh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.gh-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 5px 11px;
  border-radius: 100px;
}
.gh-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.gh-proj {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.gh-proj:hover {
  border-color: var(--pc-blue);
  transform: translateY(-2px);
}
.gh-proj-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pc-navy);
}
.gh-proj-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--pc-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gh-proj-meta {
  display: flex;
  gap: 12px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--pc-muted);
}
.gh-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--pc-border);
}
.gh-link {
  font-size: 15px;
  color: var(--pc-muted);
}
.gh-link strong {
  color: var(--pc-blue);
}
.gh-error {
  text-align: center;
  color: var(--pc-navy);
  font-size: 15px;
}
.gh-skeleton {
  height: 200px;
}
.gh-shimmer {
  background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%);
  background-size: 200% 100%;
  animation: ghShimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes ghShimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 560px) {
  .gh-projects {
    grid-template-columns: 1fr;
  }
  .gh-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
