/* ============================================================
   DLL InfoTech LLC — style.css
   Dark-first theme with light-mode override via [data-theme]
   ============================================================ */

:root,
:root[data-theme="dark"] {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #111827;
  --surface-2: #151e30;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e5e9f0;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --glow-1: rgba(34, 211, 238, 0.16);
  --glow-2: rgba(99, 102, 241, 0.18);
  --grid-line: rgba(148, 163, 184, 0.05);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(7, 11, 20, 0.75);
  --terminal-bg: #0a0f1c;
  --scrim: rgba(7, 11, 20, 0.55);
  --scrim-strong: rgba(11, 17, 32, 0.82);
  --metal-face: linear-gradient(180deg, #182136, #0c1220);
  --metal-face-text: #e5e9f0;
}

:root[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --text-muted: #55617a;
  --accent: #0891b2;
  --accent-2: #4f46e5;
  --accent-soft: rgba(8, 145, 178, 0.08);
  --glow-1: rgba(8, 145, 178, 0.1);
  --glow-2: rgba(79, 70, 229, 0.1);
  --grid-line: rgba(15, 23, 42, 0.045);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --nav-bg: rgba(247, 249, 252, 0.8);
  --terminal-bg: #0f172a;
  --scrim: rgba(247, 249, 252, 0.6);
  --scrim-strong: rgba(238, 242, 248, 0.85);
  --metal-face: linear-gradient(180deg, #ffffff, #eef1f6);
  --metal-face-text: #0f172a;
}

/* ---------- Animated site background ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Beams sit behind the grid; oversized so the blur has no hard edges */
#beamsCanvas {
  position: absolute;
  top: -80px;
  left: -80px;
  filter: blur(30px);
}

#gridCanvas {
  position: absolute;
  top: 0;
  left: 0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text, .stat-num, .step-num {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

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

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

/* ---------- Utility ---------- */
.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section { padding: 108px 0; background: var(--scrim); }
.section-alt { background: var(--scrim-strong); }

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

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

.btn-full { width: 100%; }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { display: flex; }

.brand-text {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-nav { padding: 10px 22px; font-size: 0.88rem; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(15deg);
}

:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: block; }
:root[data-theme="light"] .icon-sun { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 110px;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hero-kicker .dot { color: var(--accent); margin: 0 6px; }

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 38px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.stat {
  padding: 26px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
}

.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
}

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

.about-values {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.value h3 { font-size: 1.02rem; margin-bottom: 3px; }
.value p { font-size: 0.92rem; color: var(--text-muted); }

/* Terminal panel */
.terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.88rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.05);
}

.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #f87171; }
.t-dot.yellow { background: #fbbf24; }
.t-dot.green { background: #34d399; }

.terminal-title {
  margin-left: 10px;
  font-size: 0.75rem;
  color: #64748b;
}

.terminal-body { padding: 22px 24px; color: #cbd5e1; }
.terminal-body p { margin-bottom: 9px; }

.t-prompt { color: #22d3ee; margin-right: 8px; }
.t-out { color: #34d399; padding-left: 20px; }
.t-highlight { color: #e5e9f0; font-weight: 600; }

.t-cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: #22d3ee;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

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

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

.step-connector {
  align-self: center;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: 0.6;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 90px 0;
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, var(--glow-2), transparent),
    var(--scrim-strong);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 54px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateX(4px);
}

.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.contact-item h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-item p { font-size: 0.98rem; }
.contact-item a { color: var(--accent); }
.contact-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--accent);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--scrim-strong);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand .brand-text { font-size: 1.15rem; }
.footer-brand p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-contact p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-contact a { color: var(--accent); }
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Metallic buttons ---------- */
.metal-btn {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.metal-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.28);
}

.metal-btn:active { transform: translateY(0); }

:root[data-theme="light"] .metal-btn {
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.18),
    0 2px 5px rgba(15, 23, 42, 0.12);
}
:root[data-theme="light"] .metal-btn:hover {
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.22),
    0 3px 7px rgba(15, 23, 42, 0.14);
}

.metal-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  background: var(--metal-face);
  color: var(--metal-face-text);
}

/* Shine sweep on hover */
.metal-inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.metal-btn:hover .metal-inner::after { left: 135%; }

/* Chromatic — iridescent chrome ring */
.metal-chromatic {
  background: conic-gradient(from 200deg,
    #e6f2ff, #7ad0ff 18%, #b18cff 38%, #ff9ad5 55%, #ffffff 70%, #7ad0ff 85%, #e6f2ff);
}
.metal-chromatic .metal-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 20px rgba(122, 208, 255, 0.10);
}

/* Silver — brushed steel ring */
.metal-silver {
  background: conic-gradient(from 210deg,
    #d8dde5, #8b939f 25%, #f4f6f9 50%, #6d7683 75%, #d8dde5);
}
.metal-silver .metal-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 20px rgba(200, 210, 225, 0.08);
}

/* Gold — polished brass ring */
.metal-gold {
  background: conic-gradient(from 210deg,
    #f6e0a4, #b98a2f 25%, #fff3c9 50%, #8f6a1e 75%, #f6e0a4);
}
.metal-gold .metal-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 20px rgba(246, 224, 164, 0.10);
}

/* Sizes */
.metal-sm .metal-inner { padding: 9px 20px; font-size: 0.85rem; }
.metal-lg .metal-inner { padding: 15px 34px; font-size: 1.02rem; }
.metal-full { width: 100%; }
.metal-full .metal-inner { width: 100%; }

/* ---------- Scroll reveal ---------- */
.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) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .t-cursor { animation: none; }
  .metal-inner::after { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-connector { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    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 li { padding: 14px 6%; border-top: 1px solid var(--border); }
  .nav-burger { display: flex; }
  .btn-nav { display: none; }

  .hero { padding: 90px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .section { padding: 76px 0; }
}
