/* =========================================================
   Yusha — Computer Systems Design
   Dark theme. Unique palette: near-black ink with violet,
   rose, and emerald accents.
   ========================================================= */

:root {
  --bg: #0a0c12;
  --bg-2: #10131c;
  --surface: #151a24;
  --surface-2: #1b212d;
  --border: #262d3a;
  --text: #eceef3;
  --muted: #a6adbb;
  --faint: #79818f;
  --accent: #8b5cf6;
  --accent-strong: #a78bfa;
  --accent-2: #fb7185;
  --accent-3: #34d399;
  --ink: #0a0c12;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Navigation (split nav, CTA on the left) ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #0a0c12;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
  display: inline-block;
}

.brand-dot {
  color: var(--accent);
}

.nav-cta {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-strong);
  transform: translateY(-1px);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (slanted / diagonal) ---------- */
.hero {
  position: relative;
  padding: 150px 24px 140px;
  background:
    linear-gradient(135deg, #0d1019 0%, #0a0c12 55%, #12101f 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16) 0%, rgba(10, 12, 18, 0) 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.accent-word {
  color: var(--accent-strong);
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 30px;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background-color: var(--accent);
  color: var(--ink);
}

.btn-solid:hover {
  background-color: var(--accent-strong);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.hero-visual {
  position: relative;
}

.console {
  background-color: #0e1118;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background-color: #141824;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-r { background-color: #f87171; }
.dot-y { background-color: #fbbf24; }
.dot-g { background-color: #34d399; }

.console-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--faint);
  font-family: "Courier New", monospace;
}

.console-body {
  padding: 20px 18px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.9;
}

.console-body p {
  color: var(--muted);
}

.c-prompt {
  color: var(--accent-strong);
  font-weight: 700;
}

.c-ok {
  color: var(--accent-3) !important;
  padding-left: 14px;
}

.c-cursor {
  color: var(--text);
}

.c-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent-2);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.badge-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.badge-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ---------- Stats band ---------- */
.stats-band {
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
}

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

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
}

.stat-suffix {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Section headings ---------- */
.section-head {
  margin-bottom: 48px;
}

.section-index {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

/* ---------- Services (numbered list) ---------- */
.services-section {
  padding: 96px 0;
  background-color: var(--bg);
}

.service-list {
  list-style: none;
  counter-reset: none;
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:first-child {
  border-top: 1px solid var(--border);
}

.service-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.service-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--muted);
  max-width: 46rem;
}

/* ---------- Comparison table ---------- */
.compare-section {
  padding: 96px 0;
  background-color: var(--bg-2);
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table thead th {
  background-color: var(--surface-2);
  padding: 18px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.compare-table .col-bad {
  color: var(--accent-2);
}

.compare-table .col-good {
  color: var(--accent-3);
}

.compare-table tbody th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  width: 18%;
}

.compare-table tbody td {
  padding: 16px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- About ---------- */
.about-section {
  padding: 96px 0;
  background-color: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-list {
  list-style: none;
  margin-top: 20px;
}

.about-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
  font-weight: 500;
}

.about-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-panel {
  background: linear-gradient(150deg, #171b2b 0%, #141828 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px;
  position: sticky;
  top: 100px;
}

.panel-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.about-panel h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-panel p {
  color: var(--muted);
}

/* ---------- Process ---------- */
.process-section {
  padding: 96px 0;
  background-color: var(--bg-2);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
}

.step-num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 14px;
  line-height: 1;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ---------- Contact ---------- */
.contact-section {
  padding: 96px 0;
  background-color: var(--bg);
}

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

.contact-copy p {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}

.contact-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: var(--surface-2);
  color: var(--accent-strong);
  font-weight: 700;
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.9rem;
  color: var(--accent-3);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
}

.newsletter-band {
  background: linear-gradient(120deg, #171029 0%, #241225 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-text {
  font-weight: 600;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  min-width: 240px;
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form button {
  background-color: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--accent-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.footer-blurb {
  color: var(--muted);
  margin-top: 14px;
  max-width: 16rem;
  font-size: 0.94rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--faint);
}

.footer-mark {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--surface-2);
  user-select: none;
  line-height: 1;
}

/* ---------- Scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    position: static;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: #0a0c12;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 130px 18px 120px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input {
    min-width: 0;
    width: 100%;
  }
}
