/* ═══════════════════════════════════════════════════
   DELTECH SOLUTIONS — main.css
   Design: Editorial / Refined Minimal
   Fonts: DM Serif Display (headlines) + DM Sans (body)
   Palette: Warm Off-White base, Slate dark, Sky-400 accent, Amber highlight
   ═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:          #fafaf8;
  --c-bg-alt:      #f3f3ef;
  --c-surface:     #ffffff;
  --c-border:      #e5e5e0;
  --c-border-soft: #eeeeea;

  --c-ink-900:     #0f172a;
  --c-ink-700:     #334155;
  --c-ink-500:     #64748b;
  --c-ink-300:     #94a3b8;
  --c-ink-100:     #e2e8f0;

  --c-accent:      #0ea5e9;    /* sky-500 */
  --c-accent-dark: #0284c7;    /* sky-600 */
  --c-accent-soft: #e0f2fe;    /* sky-100 */
  --c-amber:       #f59e0b;
  --c-amber-soft:  #fef3c7;

  --c-success:     #16a34a;
  --c-error:       #dc2626;
  --c-error-soft:  #fee2e2;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px 0 rgba(15,23,42,.04);
  --shadow-sm:  0 2px 8px -2px rgba(15,23,42,.07), 0 1px 3px -1px rgba(15,23,42,.04);
  --shadow-md:  0 6px 20px -4px rgba(15,23,42,.10), 0 2px 6px -2px rgba(15,23,42,.04);
  --shadow-lg:  0 16px 48px -8px rgba(15,23,42,.14), 0 4px 12px -4px rgba(15,23,42,.06);
  --shadow-xl:  0 32px 80px -16px rgba(15,23,42,.16);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:    150ms;
  --dur-base:    250ms;
  --dur-slow:    400ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 110px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-ink-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ── ACCESSIBILITY ──────────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 10000;
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-ink-900);
  color: #fff;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-nav:focus { top: var(--sp-4); }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── TYPOGRAPHY HELPERS ─────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  background: var(--c-accent-soft);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 400;
  color: var(--c-ink-900);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-4);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--c-ink-500);
  max-width: 52ch;
  line-height: 1.7;
}

.text-link {
  color: var(--c-accent-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--c-accent);
  transition: color var(--dur-fast);
}
.text-link:hover { color: var(--c-accent); }

/* ── CONTAINER ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: .01em;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--c-ink-900);
  color: #fff;
  border: 1.5px solid var(--c-ink-900);
}
.btn-primary:hover {
  background: var(--c-ink-700);
  border-color: var(--c-ink-700);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--c-ink-900);
  border: 1.5px solid var(--c-ink-900);
}
.btn-outline:hover {
  background: var(--c-ink-900);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink-700);
  border: 1.5px solid var(--c-border);
  padding-inline: var(--sp-5);
}
.btn-ghost:hover {
  background: var(--c-surface);
  border-color: var(--c-ink-300);
  box-shadow: var(--shadow-xs);
}

.btn-sm  { padding: 0.5rem 1rem;    font-size: var(--text-xs); }
.btn-lg  { padding: 0.875rem 1.75rem; font-size: var(--text-base); }
.w-full  { width: 100%; justify-content: center; }
.mt-sm   { margin-top: var(--sp-4); }

/* ─────────────────────────────────────────
   PREMIUM NAVBAR
───────────────────────────────────────── */

.navbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  min-height: var(--nav-h);

  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(15,23,42,0.06);

  transition:
    background .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    transform .35s ease;
}

/* Navbar after scroll */
.navbar.scrolled{
  background: rgba(255,255,255,0.92);

  box-shadow:
    0 10px 30px rgba(15,23,42,0.06);

  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--c-ink-900);
  font-weight: 400;
}

.logo-accent { color: var(--c-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}

.nav-link{
  position: relative;

  font-size: 15px;
  font-weight: 500;

  color: #475569;

  transition:
    color .25s ease,
    transform .25s ease;
}

/* Elegant underline */
.nav-link::after{
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0%;
  height: 2px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #0ea5e9,
    #2563eb
  );

  transition: width .25s ease;
}

.nav-link:hover{
  color: #0f172a;
}

.nav-link:hover::after{
  width: 100%;
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink-700);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--c-surface);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  z-index: 999;
  border-top: 1px solid var(--c-border);
  animation: slideDown var(--dur-base) var(--ease-out);
}

.mobile-menu[hidden] { display: none; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.mobile-link {
  display: block;
  padding: var(--sp-4) var(--sp-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--c-ink-700);
  border-radius: var(--r-md);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.mobile-link:hover { background: var(--c-bg-alt); color: var(--c-ink-900); }

/* ── SECTION BASE ───────────────────────────────────── */
.section {
  padding-block: var(--sp-24);
}

.section-alt {
  background: var(--c-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.section-header .section-sub {
  margin-inline: auto;
  margin-top: var(--sp-4);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.section-cta {
  text-align: center;
  margin-top: var(--sp-12);
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,.09) 0%, transparent 70%);
  top: 10%;
  right: -5%;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.06) 0%, transparent 70%);
  bottom: 20%;
  left: -8%;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  padding-block: var(--sp-20);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-ink-600, var(--c-ink-500));
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-xs);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.2);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(22,163,74,.08); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--c-ink-900);
  max-width: 14ch;
}

.headline-italic {
  font-style: italic;
  color: var(--c-accent-dark);
}

.headline-muted {
  color: var(--c-ink-300);
}

.hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--c-ink-500);
  max-width: 50ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border-soft);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--c-ink-900);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-10);
  left: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  color: var(--c-ink-300);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-ink-300), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── TRUST BAR ──────────────────────────────────────── */
.trust-bar {
  padding-block: var(--sp-10);
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
  background: var(--c-surface);
}

.trust-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-300);
  text-align: center;
  margin-bottom: var(--sp-6);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-ink-500);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  letter-spacing: .04em;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.tech-badge:hover {
  color: var(--c-ink-900);
  border-color: var(--c-ink-300);
  background: var(--c-surface);
}

/* ── SERVICES ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  opacity: 0;
  transition: opacity var(--dur-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-card:hover::before { opacity: 1; }

.svc-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-ink-700);
  margin-bottom: var(--sp-6);
}

.svc-number {
  position: absolute;
  top: var(--sp-10);
  right: var(--sp-10);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--c-ink-300);
  letter-spacing: .08em;
}

.svc-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--c-ink-900);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.svc-desc {
  font-size: var(--text-base);
  color: var(--c-ink-500);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
  padding-left: var(--sp-4);
}

.svc-list li {
  font-size: var(--text-sm);
  color: var(--c-ink-600, var(--c-ink-500));
  position: relative;
}

.svc-list li::before {
  content: '–';
  position: absolute;
  left: calc(-1 * var(--sp-4));
  color: var(--c-accent);
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ink-900);
  transition: gap var(--dur-fast);
}
.svc-link:hover { gap: var(--sp-3); }

/* Process strip */
.process-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--sp-8) var(--sp-10);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.process-step {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
}

.process-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--c-ink-900);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  border-radius: 50%;
  flex-shrink: 0;
}

.process-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-ink-700);
}

.process-connector {
  flex: 1;
  height: 1px;
  background: var(--c-border);
  min-width: 20px;
  max-width: 60px;
}

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio-filter {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-ink-500);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-surface);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--c-ink-900);
  border-color: var(--c-ink-900);
  background: var(--c-ink-900);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: var(--sp-6);
}

.portfolio-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.portfolio-card[data-visible="false"] {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.portfolio-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.portfolio-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saas-placeholder  { background: #e0f2fe; color: #0284c7; }
.saas2-placeholder { background: #ede9fe; color: #7c3aed; }
.saas3-placeholder { background: #dcfce7; color: #16a34a; }
.web-placeholder   { background: #fef3c7; color: #d97706; }
.web2-placeholder  { background: #fee2e2; color: #dc2626; }
.web3-placeholder  { background: #f0fdf4; color: #15803d; }

.portfolio-tag {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  color: var(--c-ink-700);
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
}

.portfolio-info {
  padding: var(--sp-6);
}

.portfolio-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-ink-900);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.portfolio-desc {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.portfolio-tech {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.portfolio-tech span {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--c-ink-500);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  padding: 2px 10px;
  border-radius: var(--r-full);
}

/* ── PRICING ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--sp-6);
  align-items: start;
  margin-bottom: var(--sp-8);
}

.pricing-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  position: relative;
  transition: box-shadow var(--dur-base);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-featured {
  border-color: var(--c-ink-900);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: calc(-1 * var(--sp-4));
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--c-ink-900);
  color: #fff;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  white-space: nowrap;
}

.pricing-header { margin-bottom: var(--sp-8); }

.plan-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-ink-900);
  margin-bottom: var(--sp-4);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.price-from {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  align-self: center;
}

.price-currency {
  font-size: var(--text-xl);
  color: var(--c-ink-500);
  font-weight: 500;
}

.price-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--c-ink-900);
  line-height: 1;
}

.price-period {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  align-self: center;
}

.plan-desc {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  line-height: 1.6;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-ink-700);
}

.feature-item svg { color: var(--c-success); flex-shrink: 0; }
.feature-muted { color: var(--c-ink-300); }
.feature-muted svg { color: var(--c-ink-300); }

.pricing-note {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  text-align: center;
  margin-top: var(--sp-4);
}

/* ── ABOUT / TEAM ───────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.about-content { padding-top: var(--sp-8); }

.about-text {
  font-size: var(--text-lg);
  color: var(--c-ink-500);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
  max-width: 52ch;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.value-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--c-accent-soft);
  border-radius: var(--r-md);
  color: var(--c-accent-dark);
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ink-900);
  margin-bottom: var(--sp-1);
}

.value-item span {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  color: #fff;
}

.avatar-1 { background: #0284c7; }
.avatar-2 { background: #16a34a; }
.avatar-3 { background: #7c3aed; }
.avatar-4 { background: #d97706; }

.team-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-ink-900);
  margin-bottom: var(--sp-1);
}

.team-role {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--c-accent-dark);
  letter-spacing: .05em;
  margin-bottom: var(--sp-3);
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  line-height: 1.6;
}

/* ── TESTIMONIALS ───────────────────────────────────── */
.testimonials-section { background: var(--c-surface); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--sp-6);
}

.testimonial-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: box-shadow var(--dur-base);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--c-ink-700);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  font-family: var(--font-display);
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  flex-shrink: 0;
}

.av-1 { background: #0284c7; }
.av-2 { background: #d97706; }
.av-3 { background: #16a34a; }

.author-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ink-900);
  font-style: normal;
}

.author-company {
  font-size: var(--text-xs);
  color: var(--c-ink-500);
}

/* ── BLOG ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--sp-6);
}

.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.blog-category {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  background: var(--c-accent-soft);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

.blog-meta time {
  font-size: var(--text-xs);
  color: var(--c-ink-300);
  font-family: var(--font-mono);
}

.blog-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-ink-900);
  line-height: 1.3;
  flex: 1;
}

.blog-title a {
  transition: color var(--dur-fast);
}
.blog-title a:hover { color: var(--c-accent-dark); }

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  line-height: 1.7;
}

.blog-read {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ink-900);
  margin-top: auto;
  transition: gap var(--dur-fast);
}
.blog-read:hover { gap: var(--sp-3); }

/* ── CONTACT ────────────────────────────────────────── */
.contact-section { background: var(--c-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  transition: color var(--dur-fast);
}
a.contact-item:hover { color: var(--c-ink-900); }

/* Contact Form */
.contact-form-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-ink-700);
}

.form-label span { color: var(--c-error); }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  color: var(--c-ink-900);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--c-ink-300); }

.form-input:hover { border-color: var(--c-ink-300); }

.form-input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,.1);
  background: var(--c-surface);
}

.form-input.input-error {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--c-error);
  font-weight: 500;
  min-height: 1em;
}

.char-count {
  font-size: var(--text-xs);
  color: var(--c-ink-300);
  font-family: var(--font-mono);
  text-align: right;
}

.form-check { flex-direction: row; align-items: flex-start; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-ink-500);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--c-ink-900);
  border-color: var(--c-ink-900);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success, .form-error-global {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.form-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.form-error-global {
  background: var(--c-error-soft);
  color: var(--c-error);
  border: 1px solid #fecaca;
}

.form-success[hidden], .form-error-global[hidden] { display: none; }

.btn-loading {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--c-ink-900);
  color: rgba(255,255,255,.7);
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--sp-8);
}

.footer .nav-logo { color: #fff; }

.footer .logo-text { color: #fff; }

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  color: rgba(255,255,255,.6);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.social-link:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.footer-nav-title {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--sp-5);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: #fff; }

.footer-email {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
  margin-bottom: var(--sp-2);
  transition: color var(--dur-fast);
}
.footer-email:hover { color: #fff; }

.footer-hours {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
  font-family: var(--font-mono);
  margin-bottom: var(--sp-5);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
}

.footer-legal {
  display: flex;
  gap: var(--sp-5);
}

.footer-legal a {
  color: rgba(255,255,255,.35);
  transition: color var(--dur-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── BACK TO TOP ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 500;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-ink-900);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  transition: opacity var(--dur-fast), transform var(--dur-fast), background var(--dur-fast);
  opacity: 0;
  transform: translateY(8px);
}

.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top[hidden] { display: grid; opacity: 0; pointer-events: none; }

.back-to-top:hover { background: var(--c-ink-700); }

/* ── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1;
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal-up    { transform: translateY(24px); }
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid   { grid-template-columns: 1fr; gap: var(--sp-12); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

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

  .section { padding-block: var(--sp-16); }

  .hero-headline { font-size: clamp(var(--text-3xl), 9vw, var(--text-5xl)); }
  .hero-scroll-hint { display: none; }
  .hero-stats { gap: var(--sp-4); }
  .stat-divider { display: none; }

  .services-grid   { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: 1fr; }
  .pricing-grid    { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }

  .process-strip { padding: var(--sp-5); }
  .process-connector { min-width: 12px; max-width: 24px; }

  .section-header-row { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
  .contact-form-wrap { padding: var(--sp-6); }
  .service-card { padding: var(--sp-6); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── PRINT ──────────────────────────────────────────── */
@media print {
  .navbar, .back-to-top, .hero-scroll-hint { display: none; }
  body { background: #fff; color: #000; }
}

/* ── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .badge-dot { animation: none; }
  .scroll-line { animation: none; }
}
/* ─────────────────────────────────────────
   DELTECH LOGO
───────────────────────────────────────── */
.site-logo{
  height: 78px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo{
  height: 68px;
}

/* Mobile */
@media (max-width: 768px){

  .site-logo{
    height: 60px;
  }

  .footer-logo{
    height: 52px;
  }

}
/* Better spacing */
.nav-links{
  gap: 38px;
}

/* Better logo spacing */
.nav-logo{
  display: flex;
  align-items: center;
}

/* Smoother button */
.nav-actions .btn{
  box-shadow:
    0 8px 20px rgba(15,23,42,0.08);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

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

  box-shadow:
    0 14px 30px rgba(15,23,42,0.14);
}

/* Fix loading state visibility */
.btn-loading[hidden] {
  display: none !important;
}

.portfolio-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
