/* ============================================================
   DEX7.NET - Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg:       #080D1A;
  --bg2:      #0D1425;
  --bg3:      #111827;
  --accent:   #3B82F6;
  --accent2:  #1D4ED8;
  --text:     #F1F5F9;
  --muted:    #94A3B8;
  --border:   rgba(255,255,255,0.07);
  --glow:     rgba(59,130,246,0.13);
  --font-d:   'Space Grotesk', sans-serif;
  --font-b:   'Inter', sans-serif;
  --max-w:    1180px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8,13,26,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
nav.scrolled {
  background: rgba(8,13,26,0.88);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 60px;
  display: flex; align-items: center; justify-content: space-between;
}

/* LOGO - monospace wordmark */
.nav-logo {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 0;
}
.nav-logo .logo-dex  { color: var(--text); }
.nav-logo .logo-num  { color: var(--accent); }
.nav-logo .logo-dot  { color: var(--muted); font-size: 1rem; }
.nav-logo .logo-net  { color: var(--muted); font-size: 1rem; }

.nav-center {
  display: flex; gap: 36px; list-style: none;
}
.nav-center a {
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-center a:hover { color: var(--text); }

.nav-lang {
  display: flex; gap: 6px;
}
.nav-lang a {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-d);
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s;
}
.nav-lang a.active,
.nav-lang a:hover { color: var(--accent); border-color: rgba(59,130,246,0.4); }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}
#hero .section-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
  position: relative;
}

/* photo panel */
.hero-photo {
  position: relative;
  z-index: 1;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.7) brightness(0.75);
  transition: filter 0.4s;
}
.hero-photo:hover img { filter: saturate(0.9) brightness(0.85); }
/* left-side gradient so photo blends into bg */
.hero-photo::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    transparent 30%,
    transparent 70%,
    rgba(8,13,26,0.5) 100%
  );
  pointer-events: none;
}
/* bottom fade */
.hero-photo::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
/* accent line */
.hero-photo-frame {
  position: absolute;
  top: 16px; right: -1px;
  width: 3px; height: 80px;
  background: var(--accent);
  border-radius: 2px;
  z-index: 2;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(59,130,246,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 15% 75%, rgba(29,78,216,0.055) 0%, transparent 60%);
}
/* Grid overlay */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-year {
  position: absolute;
  left: -10px; bottom: -60px;
  font-family: 'Courier New', monospace;
  font-size: clamp(140px, 18vw, 260px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59,130,246,0.08);
  letter-spacing: -0.04em;
  user-select: none; pointer-events: none;
  line-height: 1;
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-d);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

h1 {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
h1 em { font-style: normal; color: var(--accent); }

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 6px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}

.btn-ghost {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex; gap: 40px;
  margin-top: 52px;
  position: relative; z-index: 1;
}
.stat { text-align: right; }
.stat-val {
  font-family: 'Courier New', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-val sup { color: var(--accent); font-size: 1.1rem; vertical-align: super; }
.stat-label {
  font-size: 0.72rem;
  font-family: var(--font-b);
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ── SECTIONS ────────────────────────────────────────────── */
section { padding: 100px 60px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-family: var(--font-d);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── O FIRMIE ─────────────────────────────────────────────── */
#o-firmie {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 500; }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: flex; gap: 20px;
  padding-bottom: 30px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px; top: 38px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), transparent);
}
.timeline-dot {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
.timeline-body { padding-top: 7px; }
.timeline-year {
  font-family: var(--font-d);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.timeline-body h4 {
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── OFERTA ──────────────────────────────────────────────── */
#oferta { background: var(--bg); }
.offer-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px;
}
.offer-header .section-lead { max-width: 380px; margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.service-card {
  background: var(--bg2);
  padding: 36px 30px;
  transition: background 0.25s;
}
.service-card:hover { background: #131d33; }
.service-num {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0.7;
}
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}
.service-card p + p {
  margin-top: 10px;
}

/* expanded card detail list */
.service-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 7px;
}
.service-detail-item {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.5;
}
.service-detail-item::before {
  content: '>';
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  flex-shrink: 0;
  opacity: 0.7;
}

/* tech pill tags */
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}
.service-tag {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
}

.offer-note {
  margin-top: 40px;
  padding: 26px 30px;
  background: var(--glow);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 10px;
  display: flex; align-items: flex-start; gap: 18px;
}
.offer-note-bar {
  width: 3px; height: auto; align-self: stretch; flex-shrink: 0;
  background: var(--accent);
  border-radius: 2px;
  min-height: 40px;
}
.offer-note p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}
.offer-note p strong { color: var(--text); font-weight: 500; }

/* ── CERTYFIKATY ─────────────────────────────────────────── */
#certyfikaty {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cert-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px;
}
.cert-header .section-lead { max-width: 400px; margin-bottom: 0; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cert-card {
  background: var(--bg2);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.cert-card:hover { background: #131d33; }
.cert-issuer {
  display: flex; align-items: center; gap: 8px;
}
.cert-issuer-logo {
  width: 20px; height: 20px; flex-shrink: 0;
  display: block;
  overflow: hidden;
  opacity: 0.7;
}
.cert-issuer-name {
  font-size: 0.72rem;
  font-family: var(--font-d);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cert-card h4 {
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.cert-card:hover h4 { color: #93c5fd; }
.cert-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.cert-date {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cert-verify {
  font-size: 0.72rem;
  font-family: var(--font-d);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
}
.cert-verify::after {
  content: '↗';
  font-size: 0.8rem;
}

/* ── KLIENCI ─────────────────────────────────────────────── */
#klienci {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px;
}
.clients-header .section-lead { max-width: 400px; margin-bottom: 0; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.client-item {
  background: var(--bg3);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
  cursor: default;
}
.client-item:hover { background: #111f36; color: var(--text); }
.client-item::before {
  content: '';
  width: 5px; height: 5px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.client-item:hover::before { background: var(--accent); }

/* ── KONTAKT ─────────────────────────────────────────────── */
#kontakt { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 48px;
}
.contact-details { display: flex; flex-direction: column; gap: 28px; }
.contact-row {
  display: flex; gap: 18px; align-items: flex-start;
}
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-label {
  font-size: 0.7rem;
  font-family: var(--font-d);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-val {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.contact-val a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-val a:hover { color: #60a5fa; }

.contact-cta-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 28px;
}
.contact-cta-box h3 {
  font-family: var(--font-d);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.contact-cta-box p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}
.contact-cta-links { display: flex; flex-direction: column; gap: 14px; }
.cta-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.cta-link:hover { border-color: rgba(59,130,246,0.35); background: #111f36; }
.cta-link-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--glow);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.cta-link-text {}
.cta-link-label {
  font-size: 0.72rem;
  font-family: var(--font-d);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.cta-link-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-d);
}
/* Before the email is revealed, show a lighter hint style */
#email-reveal-text {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}
#email-reveal:hover #email-reveal-text { color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 60px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-inner { padding: 16px 24px; }
  .nav-center { display: none; }
  section { padding: 72px 24px; }
  #hero { padding: 110px 24px 72px; }
  #hero .section-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { height: 260px; }
  .hero-photo::before { background: linear-gradient(to bottom, var(--bg) 0%, transparent 40%); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .offer-header, .clients-header, .cert-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-stats { gap: 28px; margin-top: 36px; }
  .stat { text-align: left; }
  .hero-year { font-size: 32vw; }
  footer { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 600px) {
  .services-grid, .cert-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  .hero-photo { display: none; }
}
