/* ============================================================
   DTechX — Design tokens
   ============================================================ */
:root {
  --bg: #fbfaf5;
  --bg-alt: #f2f1e6;
  --surface: #ffffff;
  --surface-2: #f6f5ec;
  --border: rgba(17, 20, 10, 0.09);
  --border-strong: rgba(17, 20, 10, 0.18);
  --text: #12140d;
  --text-dim: #55584a;
  --text-faint: #8b8d7c;
  --accent: #b7ea1f;
  --accent-light: #e7ffa3;
  --accent-strong: #6f8f00;
  --accent-ink: #12150a;
  --accent-soft: rgba(183, 234, 31, 0.22);
  --accent-glow: rgba(183, 234, 31, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

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

section { position: relative; }

.section-pad { padding: 120px 0; }
@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--accent-ink);
  box-shadow: 0 8px 26px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px var(--accent-glow); }
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(17, 20, 10, 0.02);
}
.btn-outline:hover { border-color: var(--accent-strong); background: var(--accent-soft); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Logo
   ============================================================ */
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; object-fit: contain; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(251, 250, 245, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.45s var(--ease);
    z-index: 99;
  }
  .main-nav.open { right: 0; }
  .main-nav a { font-size: 1.1rem; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Hero — asymmetric split (text + visual), not centered
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(560px circle at var(--mx, 82%) var(--my, 20%), var(--accent-soft), transparent 65%),
    var(--bg);
  z-index: 0;
}
.hero-blob {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(50px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
  z-index: 0;
}
.hero-blob.b1 { top: -120px; right: -80px; }
.hero-blob.b2 { bottom: -160px; left: -120px; animation-delay: -6s; opacity: 0.35; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-content { max-width: 600px; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: 22px; }
.hero-content p.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-dim); max-width: 540px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .logo-mark {
  width: 62%;
  height: 62%;
  filter: drop-shadow(0 24px 40px rgba(18, 20, 13, 0.12));
  animation: spin-slow 34s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 16px 34px -16px rgba(18, 20, 13, 0.28);
  animation: float 7s ease-in-out infinite;
}
.hero-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-chip.c1 { top: 6%; left: -4%; animation-delay: -1s; }
.hero-chip.c2 { bottom: 12%; right: -6%; animation-delay: -3.5s; }
.hero-chip.c3 { bottom: -2%; left: 14%; animation-delay: -5.5s; }
@media (max-width: 960px) {
  .hero-visual { max-width: 300px; }
  .hero-chip { font-size: 0.72rem; padding: 8px 12px 8px 10px; }
}
@media (max-width: 560px) {
  .hero-chip.c3 { display: none; }
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 2;
}
.hero-scroll .line { width: 30px; height: 1px; background: var(--border-strong); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent-strong);
  animation: scrollline 2s ease-in-out infinite;
}
@keyframes scrollline { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ============================================================
   Marquee ticker
   ============================================================ */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: marquee 28s linear infinite;
}
.ticker-track span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--text-faint);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticker-track span::after { content: "•"; color: var(--accent-strong); margin-left: 60px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Cards / Services grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: 0 20px 40px -24px rgba(18, 20, 13, 0.18);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.88rem; font-weight: 600; color: var(--accent-strong); }

/* ============================================================
   About split / stats
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-visual .logo-mark { width: 42%; height: 42%; }
.about-visual::before {
  content: "";
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%);
  opacity: 0.3;
}

.feature-list { display: grid; gap: 20px; margin-top: 32px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 3px;
}
.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { color: var(--text-dim); font-size: 0.92rem; }

/* ============================================================
   Process timeline
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 980px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 20px; }
.process-step .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-strong), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 0.9rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 64px;
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at 90% 10%, var(--accent-soft), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 480px; position: relative; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; position: relative; }
@media (max-width: 768px) { .cta-band { padding: 40px 28px; } }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  padding: 170px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.page-hero p { color: var(--text-dim); font-size: 1.1rem; max-width: 620px; }

/* ============================================================
   Services detail
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-detail.reverse .service-media { order: 2; }
@media (max-width: 860px) {
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail.reverse .service-media { order: 0; }
}
.service-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.service-media .card-icon { width: 30%; height: 30%; border-radius: 22%; }
.service-media .card-icon svg { width: 55%; height: 55%; }
.service-text h3 { font-size: 1.7rem; margin-bottom: 14px; }
.service-text > p { color: var(--text-dim); margin-bottom: 22px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.service-tags span {
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.contact-card:last-child { border-bottom: none; }
.contact-card .card-icon { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }
.contact-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-card a, .contact-card span.value { color: var(--text-dim); font-size: 0.95rem; }
.contact-card a:hover { color: var(--accent-strong); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
@media (max-width: 560px) { .form-card { padding: 26px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; color: var(--text-dim); }
.field input, .field select, .field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #c9432f; box-shadow: 0 0 0 3px rgba(201, 67, 47, 0.14); }
.field-error {
  display: none;
  font-size: 0.8rem;
  color: #c9432f;
}
.field-error.show { display: block; }
.form-status {
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.form-status.error { display: block; color: #c9432f; background: rgba(201, 67, 47, 0.1); border: 1px solid rgba(201, 67, 47, 0.25); }
.form-status.success { display: block; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--border-strong); }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 14px; }

/* ============================================================
   Legal / prose content
   ============================================================ */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.35rem; margin-top: 44px; margin-bottom: 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-dim); margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content li { color: var(--text-dim); margin-bottom: 8px; list-style: disc; }
.legal-content a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 40px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 18px 0 22px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.25s;
}
.footer-social a:hover { color: var(--accent-strong); border-color: var(--accent-strong); background: var(--accent-soft); }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom {
  display: flex; justify-content: center; align-items: center; text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-strong); }

/* ============================================================
   Cookie notice
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: 18px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -16px 34px -18px rgba(18, 20, 13, 0.3);
  transform: translateY(120%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { color: var(--text-dim); font-size: 0.9rem; margin: 0; flex: 1 1 320px; }
.cookie-banner-inner a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
