/* ============================================================
   VERIDIX — Clean Professional Design
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;

  /* Light body palette */
  --bg:          #f7f6f2;
  --bg-section:  #ffffff;
  --text-100:    #111110;
  --text-70:     #4a4944;
  --text-50:     #7a7872;
  --text-30:     #b0aca6;

  /* Accent — strong professional blue */
  --accent:        #1a56db;
  --accent-hover:  #1547c0;
  --accent-light:  #eff6ff;
  --accent-border: rgba(26, 86, 219, 0.18);

  /* Cards */
  --card-bg:           #ffffff;
  --card-bg-hover:     #f7f6f2;
  --card-border:       #e8e4dc;
  --card-border-hover: #c8c3bb;
  --card-shadow:       0 1px 2px rgba(17,17,16,0.05), 0 4px 16px rgba(17,17,16,0.05);
  --card-shadow-hover: 0 8px 36px rgba(17,17,16,0.12);

  /* Dark section (hero + footer) */
  --dark-bg:         #0c1524;
  --dark-text:       rgba(247, 246, 242, 0.95);
  --dark-text-60:    rgba(247, 246, 242, 0.55);
  --dark-text-35:    rgba(247, 246, 242, 0.30);
  --dark-border:     rgba(247, 246, 242, 0.10);

  /* Layout */
  --container:  1160px;
  --section-py: 112px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  18px;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
section { padding: var(--section-py) 0; }

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all var(--transition);
}

/* Primary — solid blue, light text */
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.22);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.36);
  transform: translateY(-1px);
}

/* Outline — for light context */
.btn-outline {
  background: transparent;
  color: var(--text-70);
  border: 1px solid var(--card-border);
}
.btn-outline:hover {
  border-color: var(--card-border-hover);
  color: var(--text-100);
  background: var(--card-bg);
  transform: translateY(-1px);
}

/* Ghost — for dark context (hero) */
.btn-ghost {
  background: rgba(247, 246, 242, 0.09);
  border: 1px solid var(--dark-border);
  color: var(--dark-text);
  font-size: 14px;
  padding: 10px 20px;
}
.btn-ghost:hover {
  background: rgba(247, 246, 242, 0.15);
  border-color: rgba(247, 246, 242, 0.20);
}

/* Hero outline — white border, for dark hero */
.btn-outline-light {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
}
.btn-outline-light:hover {
  background: rgba(247, 246, 242, 0.08);
  border-color: rgba(247, 246, 242, 0.22);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* ── Typography Helpers ───────────────────────────────────── */
.accent-text {
  color: var(--accent);
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

/* Dark variant for hero */
.section-tag-dark {
  color: rgba(147, 197, 253, 0.9);
  background: rgba(26, 86, 219, 0.15);
  border-color: rgba(26, 86, 219, 0.30);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}
.section-header h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.10;
  margin-bottom: 16px;
  color: var(--text-100);
}
.section-header p {
  font-size: 17px;
  color: var(--text-50);
  line-height: 1.74;
}

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
  padding: 0;
  box-shadow: 0 1px 8px rgba(17,17,16,0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-100);
}
.logo-mark { width: 20px; height: 20px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-50);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-100); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-70);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
  padding: 12px 28px 20px;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(17,17,16,0.08);
}
.nav-links.mobile-open a {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-70);
  border-bottom: 1px solid var(--card-border);
}
.nav-links.mobile-open a:last-child { border-bottom: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--dark-bg);
  /* Subtle grid texture */
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--dark-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Subtle blue glow in hero */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -5%; left: 5%;
  width: 40%; height: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content { max-width: 800px; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dark-text-60);
  margin-bottom: 32px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: rgba(96, 165, 250, 0.6);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(48px, 7.5vw, 94px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.01;
  margin-bottom: 28px;
  color: var(--dark-text);
}

.hero-title .highlight {
  color: #60a5fa;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--dark-text-60);
  line-height: 1.76;
  max-width: 540px;
  margin-bottom: 48px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dark-text-35);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 16px; height: 16px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.6; }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
}
.stats-inner {
  display: flex;
  align-items: stretch;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 20px;
  border-right: 1px solid var(--card-border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-30);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Services ─────────────────────────────────────────────── */
.services { background: var(--bg); }

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

.service-card {
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-icon {
  width: 46px; height: 46px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
}

.service-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-100);
}

.service-card p {
  font-size: 15px;
  color: var(--text-50);
  line-height: 1.76;
  flex: 1;
}

.card-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { gap: 10px; color: var(--accent-hover); }

/* ── About ────────────────────────────────────────────────── */
.about { background: var(--bg-section); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-tag { margin-bottom: 16px; }
.about-text h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.09;
  margin-bottom: 20px;
  color: var(--text-100);
}
.about-text .lead {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-70);
  line-height: 1.58;
  margin-bottom: 16px;
}
.about-text p {
  font-size: 15.5px;
  color: var(--text-50);
  line-height: 1.80;
  margin-bottom: 14px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-card {
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--accent); }
.value-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  color: var(--text-100);
}
.value-card p {
  font-size: 13.5px;
  color: var(--text-50);
  line-height: 1.65;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact { background: var(--bg); }
.contact-wrapper { max-width: 680px; margin: 0 auto; }
.contact-form { padding: 48px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group:last-of-type { margin-bottom: 26px; }

label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-50);
}

input, textarea {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text-100);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-30); }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.10);
}
textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  text-align: center;
  margin-top: 14px;
  font-size: 15px;
  color: #059669;
  font-weight: 500;
}
.form-success.visible { display: block; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-logo { font-size: 17px; color: var(--dark-text); }
.footer-tagline {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dark-text-35);
  letter-spacing: 0.04em;
}
.footer-links { display: flex; gap: 28px; margin-top: 4px; }
.footer-links a {
  font-size: 14px;
  color: var(--dark-text-60);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--dark-text); }
.copyright {
  font-size: 12px;
  color: var(--dark-text-35);
  margin-top: 6px;
}
.about-cta { margin-top: 12px; display: inline-flex; }

/* ── Scroll-reveal ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.64s var(--ease),
    transform 0.64s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger */
.services-grid .service-card:nth-child(2) { transition-delay: 0.07s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.14s; }
.about-values .value-card:nth-child(2)    { transition-delay: 0.08s; }
.about-values .value-card:nth-child(3)    { transition-delay: 0.16s; }
.stat:nth-child(2) { transition-delay: 0.05s; }
.stat:nth-child(3) { transition-delay: 0.10s; }
.stat:nth-child(4) { transition-delay: 0.15s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 768px) {
  :root { --section-py: 80px; }

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

  .hero { padding: 120px 0 80px; }
  .hero::before, .hero::after { display: none; }
  .hero-title { letter-spacing: -0.04em; }

  .services-grid { grid-template-columns: 1fr; }

  .stats-inner { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; border-bottom: 1px solid var(--card-border); }
  .stat:nth-child(2), .stat:last-child { border-right: none; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }

  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .btn           { text-align: center; }
  .service-card  { padding: 26px 22px; }
  .stat          { flex: 1 1 100%; }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card-link, .nav-links a, .footer-links a, input, textarea { transition: none; }
}
