/* =========================================================================
   Thomas Nery — Design System
   Corporate, high-end, aggressively minimalist. Deep slate/navy palette with
   high-contrast accents. Sans-serif, strict hierarchy, generous whitespace.
   ========================================================================= */

:root {
  /* Palette */
  --navy-900: #0a1124;
  --navy-800: #0f1a33;
  --navy-700: #16243f;
  --slate-600: #334155;
  --slate-500: #475569;
  --slate-400: #64748b;
  --slate-300: #94a3b8;
  --slate-200: #cbd5e1;
  --slate-100: #e2e8f0;
  --slate-50: #f5f7fa;
  --white: #ffffff;

  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);

  --success: #15803d;
  --danger: #b91c1c;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing & shape */
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 17, 36, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--slate-200);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-100);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--navy-800));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
}

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

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--slate-500);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--navy-900);
}

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

.nav-login {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  margin: 5px 0;
  transition: 0.2s;
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-700), var(--navy-900) 60%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 0 31px, rgba(255, 255, 255, 0.03) 31px),
    linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.03) 31px);
  background-size: 32px 32px;
  mask-image: radial-gradient(120% 120% at 75% 10%, #000, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 90px 0 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--slate-400);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: #7da6ff;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--slate-200);
  max-width: 520px;
  margin-bottom: 34px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--slate-300);
}

/* Hero visual card */
.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  font-size: 0.95rem;
  color: var(--slate-200);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}

.hero-card h3 .tag {
  font-size: 0.72rem;
  background: rgba(125, 166, 255, 0.18);
  color: #aac4ff;
  padding: 3px 10px;
  border-radius: 999px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-row .label {
  color: var(--slate-300);
}

.metric-row .value {
  font-weight: 700;
}

.metric-row .pill {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.pill.fidc { background: rgba(37, 99, 235, 0.22); color: #9cc0ff; }
.pill.cri { background: rgba(16, 185, 129, 0.18); color: #7ee0bb; }
.pill.cra { background: rgba(245, 158, 11, 0.18); color: #ffd591; }

/* --- Section primitives ------------------------------------------------ */
.section {
  padding: 96px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--slate-500);
  font-size: 1.05rem;
}

.bg-soft {
  background: var(--slate-50);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-200);
}

.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.card p {
  color: var(--slate-500);
  font-size: 0.95rem;
}

/* --- Process / Why -------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 36px;
}

.step .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.step h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.92rem;
  color: var(--slate-500);
}

.panel {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.panel h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.panel p {
  color: var(--slate-300);
  margin-bottom: 24px;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--slate-100);
}

.checklist li svg {
  flex-shrink: 0;
  color: #7da6ff;
  margin-top: 2px;
}

/* --- Theses (classification matrix) ------------------------------------ */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.thesis {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  text-align: center;
  background: var(--white);
  transition: 0.18s ease;
}

.thesis:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.thesis strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.thesis span {
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* --- CTA band ---------------------------------------------------------- */
.cta-band {
  background: radial-gradient(120% 140% at 20% 0%, var(--accent-strong), var(--navy-900) 70%);
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--slate-200);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* --- Contact form ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--slate-500);
  margin-bottom: 28px;
}

.contact-info .detail {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

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

.contact-info .detail span {
  font-size: 0.95rem;
  color: var(--navy-800);
  font-weight: 500;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 18px;
}

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

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy-900);
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field .err {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1em;
}

/* Honeypot — visually and from-assistive-tech hidden */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  font-size: 0.92rem;
  margin-top: 14px;
  min-height: 1.2em;
}

.form-feedback.ok {
  color: var(--success);
}

.form-feedback.error {
  color: var(--danger);
}

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-300);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid .brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--slate-300);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-about {
  max-width: 320px;
  font-size: 0.92rem;
  color: var(--slate-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.84rem;
  color: var(--slate-400);
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Reveal animation -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .thesis-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
  }

  .section {
    padding: 64px 0;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .thesis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-band,
  .form-card,
  .panel {
    padding: 30px 22px;
  }
}
