/* ===================================================================
   ASV Tech Solutions — landing page styles
   Modern dark, gradient accents. Plain CSS, no build step.
   =================================================================== */

:root {
  --bg: #0a0b12;
  --bg-alt: #0d0f19;
  --surface: #12141f;
  --surface-2: #171a28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaf2;
  --text-dim: #9aa0b4;
  --text-faint: #6b7188;

  --brand: #7c5cff;
  --brand-2: #21d4fd;
  --brand-3: #ff4d9d;
  --grad: linear-gradient(120deg, #7c5cff 0%, #21d4fd 55%, #ff4d9d 110%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.18), rgba(33, 212, 253, 0.14));

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --container: 1120px;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

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

/* ---------- background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 520px; height: 520px; background: #7c5cff; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #21d4fd; top: 30%; right: -180px; opacity: 0.35; }
.orb-3 { width: 420px; height: 420px; background: #ff4d9d; bottom: -160px; left: 20%; opacity: 0.28; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 92, 255, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 18, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-color: var(--border); background: rgba(10, 11, 18, 0.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
.brand-mark {
  background: var(--grad); color: #fff; font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 5px 8px; border-radius: 8px;
}
.brand-text { font-size: 1.02rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--border-strong); padding: 8px 16px; border-radius: 999px;
}
.nav .nav-cta:hover { background: rgba(255, 255, 255, 0.06); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.22s ease, opacity 0.22s ease; transform-origin: center; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 20px; gap: 4px; border-bottom: 1px solid var(--border); background: rgba(10, 11, 18, 0.96); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 18px;
}
.hero-copy h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 800; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--text-dim); font-size: 1.08rem; margin: 22px 0 30px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.hero-stats span { color: var(--text-faint); font-size: 0.85rem; }

/* hero visual */
.hero-visual { position: relative; }
.code-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.code-card-bar {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.code-card-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c2f40; }
.code-card-bar span:nth-child(1) { background: #ff5f57; }
.code-card-bar span:nth-child(2) { background: #febc2e; }
.code-card-bar span:nth-child(3) { background: #28c840; }
.code-card-bar em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--text-faint); }
.code-card pre { padding: 22px; overflow-x: auto; }
.code-card code {
  font-family: "SF Mono", "Fira Code", ui-monospace, Menlo, monospace;
  font-size: 0.86rem; line-height: 1.75; color: #cdd2e4;
}
.c-key { color: #ff8bce; } .c-var { color: #8be9fd; } .c-fn { color: #a78bff; } .c-str { color: #6ee7a8; }

.float-chip {
  position: absolute; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  padding: 9px 14px; border-radius: 999px; background: rgba(18, 20, 31, 0.9);
  border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.chip-a { top: -18px; right: 22px; color: var(--brand-2); animation: float 5s ease-in-out infinite; }
.chip-b { bottom: -20px; left: -14px; color: var(--brand-3); animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* marquee */
.marquee { margin-top: 76px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scroll 34s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; color: var(--text-faint); font-size: 0.95rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-sub { color: var(--text-dim); margin-top: 16px; font-size: 1.02rem; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0;
  transition: opacity 0.25s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; position: relative; }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease;
}
.work-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.work-thumb {
  height: 190px; display: grid; place-items: center; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff;
  letter-spacing: -0.01em;
}
.work-thumb span { position: relative; z-index: 1; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.work-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.15); }
.thumb-1 { background: linear-gradient(135deg, #7c5cff, #21d4fd); }
.thumb-2 { background: linear-gradient(135deg, #ff4d9d, #7c5cff); }
.thumb-3 { background: linear-gradient(135deg, #21d4fd, #2af598); }
.thumb-4 { background: linear-gradient(135deg, #fbd786, #ff4d9d); }
.work-body { padding: 24px 26px 28px; }
.work-body h3 { font-size: 1.16rem; margin-bottom: 10px; }
.work-body p { color: var(--text-dim); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li {
  font-size: 0.76rem; font-family: var(--font-head); font-weight: 500; color: var(--text-dim);
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step-no {
  font-family: var(--font-head); font-weight: 800; font-size: 1.7rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid .btn { margin-top: 26px; }
.value-list { display: grid; gap: 16px; }
.value-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; color: var(--text-dim); font-size: 0.96rem;
}
.value-list strong { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--font-head); }

/* ---------- contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow);
}
.contact-list { margin-top: 26px; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; }
.contact-list span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); font-family: var(--font-head); }
.contact-list a:hover { color: var(--brand-2); }

.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-family: var(--font-head); font-weight: 500; color: var(--text-dim); }
.field label em { color: var(--text-faint); font-style: normal; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.88rem; color: var(--brand-2); min-height: 1.2em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.footer-tag { color: var(--text-faint); font-size: 0.9rem; margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--text-dim); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-sep { color: var(--text-faint); font-size: 0.9rem; margin: 0 -10px; }
.copyright { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { grid-template-columns: 1fr; padding: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 0; }
  .cards { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .contact-card { padding: 26px; }
}
