/* ============================================================
   LITech, Software Development Services
   Dark violet theme
   ============================================================ */

:root {
  --bg: #0a0618;
  --bg-alt: #0e0a20;
  --surface: #151030;
  --surface-2: #1b1540;
  --border: rgba(167, 139, 250, 0.14);
  --border-strong: rgba(167, 139, 250, 0.30);
  --text: #f2effc;
  --text-dim: #a9a3c4;
  --accent: #8b5cf6;
  --accent-2: #6d4aff;
  --accent-soft: #a78bfa;
  --glow: rgba(109, 74, 255, 0.35);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }

h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--accent-soft), #c4b5fd 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}
.btn-primary:hover { box-shadow: 0 6px 28px var(--glow); }

.btn-light {
  background: #f5f3ff;
  color: #17102e;
  box-shadow: 0 4px 24px rgba(245, 243, 255, 0.15);
}
.btn-light:hover { box-shadow: 0 6px 32px rgba(245, 243, 255, 0.25); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(139, 92, 246, 0.06);
}
.btn-ghost:hover { background: rgba(139, 92, 246, 0.14); }

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

/* ---------- Badge ---------- */

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 1.2rem;
}

/* ---------- Nav ---------- */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 6, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-wrap.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark { height: 28px; }
.logo-mark img { height: 100%; width: auto; }

.logo-accent {
  background: linear-gradient(100deg, #6db3ff, #2f7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  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 {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.hero {
  position: relative;
  padding: 11rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(109, 74, 255, 0.42) 0%,
    rgba(109, 74, 255, 0.16) 40%,
    transparent 70%);
  pointer-events: none;
}

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

.hero-rings span {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  border: 1px solid rgba(167, 139, 250, 0.10);
  border-radius: 50%;
}
.hero-rings span:nth-child(1) { width: 560px;  height: 560px; }
.hero-rings span:nth-child(2) { width: 860px;  height: 860px; }
.hero-rings span:nth-child(3) { width: 1200px; height: 1200px; }

.hero-inner { position: relative; }

.hero-sub {
  max-width: 620px;
  margin: 1.5rem auto 2.4rem;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Terminal mock ---------- */

.terminal {
  max-width: 640px;
  margin: 4.5rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(14, 10, 32, 0.85);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(109, 74, 255, 0.12);
  text-align: left;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(21, 16, 48, 0.6);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body { padding: 1.2rem 1.4rem; overflow-x: auto; }

.terminal-body pre, .code-card pre {
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.75;
}

.t-prompt { color: var(--accent-soft); }
.t-dim    { color: #5e5880; }
.t-ok     { color: #34d399; }
.t-cursor { animation: blink 1.1s steps(1) infinite; color: var(--accent-soft); }

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

/* ---------- Tech strip ---------- */

.tech-strip {
  border-block: 1px solid var(--border);
  padding: 1.1rem 0;
  background: rgba(21, 16, 48, 0.35);
  overflow: hidden;
}

.marquee { overflow: hidden; white-space: nowrap; }

.marquee-track {
  display: inline-flex;
  gap: 2.2rem;
  animation: scroll 30s linear infinite;
}

.marquee-track span {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

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

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

.section { padding: 6.5rem 0; }

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-head p { color: var(--text-dim); margin-top: 1rem; }

/* ---------- Grid & cards ---------- */

.grid { display: grid; gap: 1.4rem; }

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

.card {
  padding: 2rem 1.8rem;
  background: linear-gradient(160deg, var(--surface) 0%, rgba(21, 16, 48, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 40px rgba(109, 74, 255, 0.10);
}

.card h3 { margin-bottom: 0.7rem; }
.card p  { color: var(--text-dim); font-size: 0.94rem; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  border-radius: 12px;
  color: var(--accent-soft);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-strong);
}

.card-icon svg { width: 24px; height: 24px; }

/* ---------- Work ---------- */

.work-list { display: grid; gap: 1.4rem; }

.work-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem;
  background: linear-gradient(160deg, var(--surface) 0%, rgba(21, 16, 48, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.work-visual {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.30), rgba(14, 10, 32, 0.9) 70%);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
}

.work-visual-inner { width: 56px; height: 56px; color: var(--accent-soft); }

.work-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

.work-text h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.work-text p  { color: var(--text-dim); font-size: 0.95rem; max-width: 60ch; }

/* ---------- Stats ---------- */

.stats-band {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(109, 74, 255, 0.18), transparent),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num, .stat-plus {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(120deg, #fff, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Process ---------- */

.card-step { position: relative; padding-top: 2.4rem; }

.step-num {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(167, 139, 250, 0.14);
  letter-spacing: -0.03em;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p { color: var(--text-dim); margin-bottom: 1.1rem; }
.about-text h2 { margin-bottom: 1.4rem; }
.about-text strong { color: var(--text); }

.about-points {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}

.about-points li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2));
  box-shadow: 0 0 10px var(--glow);
}

.code-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(14, 10, 32, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(109, 74, 255, 0.10);
  overflow: hidden;
}

.code-card pre { padding: 1.4rem 1.6rem; overflow-x: auto; }

.c-kw   { color: #c084fc; }
.c-type { color: #67e8f9; }
.c-str  { color: #a5f3a5; }
.c-com  { color: #5e5880; font-style: italic; }

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

.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(109, 74, 255, 0.38) 0%,
    rgba(109, 74, 255, 0.12) 45%,
    transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-inner p {
  color: var(--text-dim);
  margin: 1rem auto 2.2rem;
  font-size: 1.05rem;
}

.cta-links {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  color: var(--text-dim);
}

.cta-links a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 500;
}

.cta-links a:hover { text-decoration: underline; }

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

.footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-footer { font-size: 1.1rem; }
.logo-footer .logo-mark { height: 22px; }

.footer p { color: var(--text-dim); font-size: 0.85rem; }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .nav-links, .nav .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .nav-wrap.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 1.6rem 5%;
    background: rgba(10, 6, 24, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav-wrap.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-wrap.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-wrap.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; }
  .work-visual { max-width: 100%; aspect-ratio: 16 / 7; }
  .hero { padding-top: 8.5rem; }
  .section { padding: 4.5rem 0; }
}
