:root {
  --bg-0: #060b10;
  --bg-1: #0a141c;
  --bg-panel: #0d1b24;
  --line: rgba(79, 240, 224, 0.14);
  --cyan: #3fe8d4;
  --cyan-soft: rgba(63, 232, 212, 0.16);
  --blue: #5b8cff;
  --text-hi: #eaf6f4;
  --text-mid: #9db2b6;
  --text-low: #5f7377;
  --header-bg: rgba(6, 11, 16, 0.75);
  --mono: 'JetBrains Mono', monospace;
  --disp: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

[data-theme="light"] {
  --bg-0: #f4f8fc;
  --bg-1: #eaf1f7;
  --bg-panel: #ffffff;
  --line: rgba(13, 148, 136, 0.18);
  --cyan: #0d9488;
  --cyan-soft: rgba(13, 148, 136, 0.12);
  --blue: #2563eb;
  --text-hi: #0f172a;
  --text-mid: #475569;
  --text-low: #64748b;
  --header-bg: rgba(244, 248, 252, 0.85);
  --shadow-color: rgba(15, 23, 42, 0.08);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.6));
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1100px 600px at 82% -8%, var(--cyan-soft), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(91, 140, 255, 0.08), transparent 55%),
    var(--bg-0);
  color: var(--text-hi);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body { color-scheme: dark; }
[data-theme="light"] body { color-scheme: light; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: #04100f; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Binary rain backdrop ---------- */
#binary-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s;
}
[data-theme="light"] #binary-rain {
  opacity: 0.18;
}

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  color: #ffffff;
}

.logo small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  color: var(--text-mid);
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text-hi);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width .25s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav Language Switcher Pill */
.nav-lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px;
}

.nav-lang-btn {
  background: transparent;
  border: none;
  color: var(--text-mid);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-lang-btn:hover {
  color: var(--text-hi);
}

.nav-lang-btn.active {
  background: var(--cyan);
  color: #ffffff;
}

/* Nav Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--cyan);
  transform: scale(1.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #2bc7b6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-hi);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
  background: var(--cyan-soft);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

h1 span {
  color: var(--cyan);
}

.hero p.lead {
  color: var(--text-mid);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 46px;
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.stat b {
  display: block;
  font-family: var(--disp);
  font-size: 26px;
  color: var(--text-hi);
}

.stat span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-low);
  letter-spacing: 0.5px;
}

/* Hero visual: Humanoid Robot Matrix Canvas */
.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-soft), transparent 68%);
  filter: blur(8px);
}

/* Binary matrix robot canvas (enhanced) */
#robot-canvas {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  height: auto;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px var(--shadow-color);
}
/* Cube showcase band */
.cube-showcase {
  padding: 10px 0 80px;
  position: relative;
  z-index: 1;
}

.cube-showcase-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 340px;
}

.dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dust span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
  animation: dustFloat 6s ease-in-out infinite;
}

@keyframes dustFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50% { transform: translateY(-14px) scale(1.4); opacity: 0.75; }
}

.cube-scene {
  width: 260px;
  height: 260px;
  perspective: 1100px;
  position: relative;
  cursor: pointer;
}

.cube-stage {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(0deg);
  will-change: transform;
}

.cube-face {
  position: absolute;
  width: 260px;
  height: 260px;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.cf-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cube-face .cf-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-panel);
  backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-soft);
  transition: opacity .35s ease;
}

.cube-face .cf-label {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-hi);
  text-align: center;
  text-transform: uppercase;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 100px;
  backdrop-filter: blur(2px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.cf-1 { transform: rotateY(0deg) translateZ(130px); }
.cf-2 { transform: rotateY(90deg) translateZ(130px); }
.cf-3 { transform: rotateY(180deg) translateZ(130px); }
.cf-4 { transform: rotateY(-90deg) translateZ(130px); }
.cf-5 { transform: rotateX(90deg) translateZ(130px); }
.cf-6 { transform: rotateX(-90deg) translateZ(130px); }
.cf-6 .cf-icon { font-size: 20px; font-family: var(--mono); font-weight: 700; }

/* ---------- Feature cards row ---------- */
.cards-row {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  padding-bottom: 100px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 16px;
  font-size: 18px;
}

.card h3 {
  font-family: var(--disp);
  font-size: 16.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---------- Section shell ---------- */
section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}

h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-mid);
  font-size: 15.5px;
}

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

.about-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mid);
  box-shadow: 0 4px 16px var(--shadow-color);
}

.about-panel .line { margin-bottom: 6px; }
.about-panel .k { color: #e78a5b; }
.about-panel .s { color: var(--cyan); }

.about-copy p {
  color: var(--text-mid);
  font-size: 15px;
  margin-bottom: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}

.value {
  border-left: 2px solid var(--cyan);
  padding-left: 14px;
}

.value b {
  display: block;
  font-family: var(--disp);
  font-size: 15px;
  margin-bottom: 4px;
}

.value span {
  font-size: 13px;
  color: var(--text-mid);
}

/* Portfolio / Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: 0 4px 16px var(--shadow-color);
}

.work-thumb {
  height: 170px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
}

.work-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .4s ease; }
.work-thumb span {
  position: relative;
  z-index: 1;
  background: var(--bg-panel);
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(2px);
  border: 1px solid var(--line);
}

.work-thumb.t1 { background: linear-gradient(135deg, rgba(63, 232, 212, 0.16), rgba(91, 140, 255, 0.10)); }
.work-thumb.t2 { background: linear-gradient(135deg, rgba(91, 140, 255, 0.16), rgba(63, 232, 212, 0.06)); }
.work-thumb.t3 { background: linear-gradient(135deg, rgba(231, 138, 91, 0.14), rgba(63, 232, 212, 0.08)); }

.work-card:hover .work-thumb svg { transform: scale(1.04); }

.work-body { padding: 20px; }
.work-body .tag { font-family: var(--mono); font-size: 10.5px; color: var(--text-low); letter-spacing: 1.5px; }
.work-body h3 { font-family: var(--disp); font-size: 16px; margin: 8px 0 6px; font-weight: 600; }
.work-body p { font-size: 13px; color: var(--text-mid); }

/* (Pricing section removed) */

/* Order form */
.order-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px;
  background: var(--bg-panel);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.order-info h2 { margin-bottom: 16px; }
.order-info p { color: var(--text-mid); font-size: 15px; margin-bottom: 26px; }
.contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--text-mid); }
.contact-row .ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

form { display: flex; flex-direction: column; gap: 14px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--text-mid);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-hi);
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}

.field select { cursor: pointer; }
.field select option { background: var(--bg-panel); color: var(--text-hi); }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-low); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { font-family: var(--mono); font-size: 12.5px; padding: 10px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: var(--cyan-soft); color: var(--cyan); border: 1px solid var(--line); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
  position: relative;
  z-index: 1;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  color: var(--text-hi);
  font-size: 14px;
  transition: background .2s, color .2s;
}

.social-item:last-child { border-right: none; }
.social-item:hover { background: var(--cyan-soft); color: var(--cyan); }
.social-item .si-left { display: flex; align-items: center; gap: 10px; }
.social-item .si-icon { width: 20px; height: 20px; flex-shrink: 0; }
.social-item .si-arrow { opacity: 0.45; font-size: 13px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-mid); font-size: 13.5px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--text-low); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-mid); font-size: 13.5px; margin-bottom: 11px; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-low);
  font-family: var(--mono);
}

.admin-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-low);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  opacity: 0.7;
}

.admin-link:hover { color: var(--cyan); opacity: 1; }

/* Admin overlay */
#adminOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 8, 11, 0.86);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
}

#adminOverlay.open { display: flex; }

.admin-panel {
  width: 100%;
  max-width: 980px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  position: relative;
  color: var(--text-hi);
}

.admin-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  font-size: 16px;
}

.admin-close:hover { border-color: var(--cyan); color: var(--cyan); }

.admin-login { max-width: 320px; margin: 20px auto; text-align: center; }
.admin-login h3 { font-family: var(--disp); margin-bottom: 16px; }
.admin-login input { margin-bottom: 12px; }

.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.admin-head h3 { font-family: var(--disp); font-size: 20px; }

.admin-stats { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.astat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; min-width: 110px; }
.astat b { display: block; font-family: var(--disp); font-size: 22px; }
.astat span { font-family: var(--mono); font-size: 10.5px; color: var(--text-low); letter-spacing: 1px; }

.orders-table-wrap { overflow-x: auto; }
table.orders { width: 100%; border-collapse: collapse; font-size: 13px; }
table.orders th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--text-low);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.orders td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--text-mid); vertical-align: top; }
table.orders td.name { color: var(--text-hi); font-weight: 600; }
table.orders .msg-cell { max-width: 220px; font-size: 12px; }
table.orders select {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text-hi);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: var(--mono);
}

.status-yangi { color: #5b8cff; }
.status-korib { color: #e7c85b; }
.status-bajarildi { color: #3fe8d4; }

.del-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-low);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 12px;
}

.del-btn:hover { border-color: #e75b5b; color: #e75b5b; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-low); font-family: var(--mono); font-size: 13px; }

/* Modals */
#successOverlay, #detailOverlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(4, 8, 11, 0.86);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#successOverlay.open, #detailOverlay.open { display: flex; }

.success-card, .detail-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-panel);
  border: 1px solid var(--cyan);
  border-radius: 20px;
  padding: 40px 34px;
  text-align: center;
  position: relative;
  color: var(--text-hi);
  box-shadow: 0 10px 40px var(--shadow-color);
}

.detail-card { text-align: left; }

.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--cyan);
}

.success-card h3, .detail-card h3 { font-family: var(--disp); font-size: 22px; margin-bottom: 12px; }
.success-card p, .detail-card p.detail-desc { color: var(--text-mid); font-size: 14.5px; margin-bottom: 24px; line-height: 1.6; }

.detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.detail-price { font-family: var(--disp); font-size: 22px; color: var(--cyan); margin-bottom: 14px; }
.detail-features { margin-bottom: 26px; }
.detail-features li {
  font-size: 13.5px;
  color: var(--text-mid);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  list-style: none;
}
.detail-features li:first-child { border-top: none; }
.detail-features li::before { content: '✓'; color: var(--cyan); font-weight: 700; }

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 14px 10px;
  cursor: pointer;
  color: var(--text-mid);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, border-color .2s, color .2s;
  box-shadow: 0 4px 16px var(--shadow-color);
}

.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.scroll-top-btn .stb-arrow { font-size: 16px; font-weight: 700; line-height: 1; }
.scroll-top-btn .stb-label { writing-mode: vertical-rl; font-family: var(--mono); font-size: 9px; letter-spacing: 2px; }

/* Quick contact chat bubble */
.chat-widget {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 170;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), #3f6fe0);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.35);
  transition: transform .2s;
}

.chat-toggle:hover { transform: scale(1.06); }

.chat-panel {
  width: 230px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.chat-widget.open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-title { font-family: var(--disp); font-size: 14px; margin-bottom: 2px; color: var(--text-hi); }
.chat-link {
  font-size: 12.5px;
  color: var(--text-mid);
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, color .2s;
}
.chat-link .cl-icon { width: 15px; height: 15px; flex-shrink: 0; }
.chat-link:hover { border-color: var(--cyan); color: var(--cyan); }
.chat-link-cta { background: var(--cyan-soft); color: var(--cyan); border-color: transparent; font-weight: 600; justify-content: center; margin-top: 4px; }

/* Responsive Media Queries */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .about-grid, .order-wrap { grid-template-columns: 1fr; }
  .cards-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-row { grid-template-columns: 1fr 1fr; }
  .social-item { border-bottom: 1px solid var(--line); }
  .social-item:nth-child(2n) { border-right: none; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .nav-right { gap: 8px; }
  .btn-sm { padding: 6px 12px; font-size: 12px; }
  .cards-grid, .work-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-visual { height: 320px; }
  .cube-showcase-inner { height: 230px; }
  .cube-scene { width: 190px; height: 190px; }
  .cube-face { width: 190px; height: 190px; }
  .cf-1 { transform: rotateY(0deg) translateZ(95px); }
  .cf-2 { transform: rotateY(90deg) translateZ(95px); }
  .cf-3 { transform: rotateY(180deg) translateZ(95px); }
  .cf-4 { transform: rotateY(-90deg) translateZ(95px); }
  .cf-5 { transform: rotateX(90deg) translateZ(95px); }
  .cf-6 { transform: rotateX(-90deg) translateZ(95px); }
  .cube-face .cf-icon { font-size: 26px; }
  .cube-face .cf-label { font-size: 9px; padding: 5px 10px; }
  .scroll-top-btn { left: 16px; bottom: 16px; padding: 10px 8px; }
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-toggle { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   IMPROVEMENTS — scroll offset, light rain, nav, mobile menu,
   process, testimonials, FAQ
   ============================================================ */
section { scroll-margin-top: 84px; }

[data-theme="light"] #binary-rain { opacity: 0.3; }

.nav-links { gap: 20px; font-size: 14px; }

/* ---------- Hamburger (mobile) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-panel);
  cursor: pointer;
  transition: border-color .2s;
}
.hamburger:hover { border-color: var(--cyan); }
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-hi);
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 11, 16, 0.97);
  backdrop-filter: blur(10px);
  padding: 96px 28px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
[data-theme="light"] .mobile-menu { background: rgba(244, 248, 252, 0.97); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-hi);
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.mobile-menu a::after { content: '→'; color: var(--cyan); font-size: 18px; }
.mobile-menu a:hover { color: var(--cyan); }

/* ---------- Process section ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  background: var(--card-bg);
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform .22s, border-color .22s;
}
.step:hover { transform: translateY(-4px); border-color: var(--cyan); }
.step .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 18px;
  background: var(--cyan-soft);
}
.step h3 { font-family: var(--disp); font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.step-arrow {
  position: absolute;
  top: 30px;
  right: -16px;
  color: var(--cyan);
  font-size: 14px;
  z-index: 2;
}
.step:last-child .step-arrow { display: none; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  background: var(--bg-panel);
  box-shadow: 0 4px 16px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi-stars { color: var(--cyan); font-size: 13px; letter-spacing: 3px; }
.testi-quote {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}
.testi-quote::before {
  content: '“';
  color: var(--cyan);
  font-size: 34px;
  line-height: 0;
  display: block;
  margin: 6px 0 10px;
}
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.testi-name { font-family: var(--disp); font-size: 14px; font-weight: 600; }
.testi-role { font-family: var(--mono); font-size: 10.5px; color: var(--text-low); letter-spacing: 0.5px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--cyan); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-hi);
}
.faq-chev {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--cyan);
  transition: transform .25s ease;
}
.faq-item.open .faq-chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-mid); line-height: 1.65; }

/* ---------- Responsive additions ---------- */
@media (max-width: 960px) {
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .step-arrow { display: none; }
}

@media (max-width: 560px) {
  .logo { font-size: 15px; }
  .logo small { display: none; }
  .nav-right .btn-sm { display: none; }
  .nav-lang-btn { padding: 3px 7px; font-size: 10.5px; }
  .process-grid, .testi-grid { grid-template-columns: 1fr; }
  .mobile-menu { padding: 84px 20px 30px; }
  .mobile-menu a { font-size: 20px; padding: 12px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .faq-a { transition: none; }
}
