/* ==========================================================================
   TAYS Automation — site stylesheet
   Plain CSS, no build step. Sections:
   1. Tokens & reset   2. Layout   3. Typography   4. Buttons & chips
   5. Navbar & search  6. Hero     7. Cards & content blocks
   8. Page-specific    9. Forms & modal   10. Footer   11. Animations
   ========================================================================== */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --purple: #c084fc;
  --green: #4ade80;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Colour "tones": --t is the RGB triplet for tints/borders, --tt the solid text colour */
.tone-primary { --t: 14, 165, 233; --tt: #0ea5e9; }
.tone-accent  { --t: 6, 182, 212;  --tt: #06b6d4; }
.tone-purple  { --t: 168, 85, 247; --tt: #c084fc; }
.tone-green   { --t: 34, 197, 94;  --tt: #4ade80; }

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

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

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.5;
  color: #f1f5f9;
  background: var(--slate-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font); }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Anchored sections sit below the fixed navbar */
[id] { scroll-margin-top: 5rem; }

/* ---------- 2. Layout ---------- */
.container { position: relative; z-index: 1; width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.container--lg { max-width: 56rem; }
.container--md { max-width: 56rem; }

.section { position: relative; padding: 6rem 0; }
.section--900 { background: var(--slate-900); }
.section--950 { background: var(--slate-950); }
.section--clip { overflow: hidden; }
.section--bordered { border-top: 1px solid var(--slate-900); }
.section__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--slate-950), var(--slate-900)); }

.circuit {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}
.circuit--10 { opacity: 0.1; }
.circuit--20 { opacity: 0.2; }
.circuit--30 { opacity: 0.3; }

.grid { display: grid; gap: 2rem; }
.grid--center { align-items: center; }
.grid--tight { gap: 1.5rem; }
.grid--2-fixed { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.text-center { text-align: center; }
.inline { display: inline; }
.block { display: block; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-purple { color: var(--purple); }

.order-1 { order: 1; }
.order-2 { order: 2; }

.btn-row { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }

/* Icon sizes */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }
.icon-2xl { width: 2rem; height: 2rem; }
.icon-fab { width: 1.75rem; height: 1.75rem; }

/* ---------- 3. Typography ---------- */
.title { font-size: 2.25rem; line-height: 1.2; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.title--xl { font-size: 2.25rem; }
.title--md { font-size: 1.875rem; }
.title--sm { font-size: 1.5rem; }
.lead { font-size: 1.125rem; line-height: 1.625; color: var(--slate-400); margin-bottom: 1.5rem; }
.cta-text { font-size: 1.125rem; color: var(--slate-400); margin-bottom: 2rem; }

.prose-lg { font-size: 1.125rem; line-height: 1.625; color: var(--slate-400); margin-bottom: 2rem; }
.prose-lg p { margin-top: 1rem; }
.prose-lg p + p { margin-top: 0.75rem; }

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head .title { margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; color: var(--slate-400); }
.section-head--sm { margin-bottom: 3rem; }
.section-head--tight p { margin-bottom: 2rem; }

.gradient-text {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Page banner used by every inner page */
.page-header { position: relative; padding: 8rem 0 5rem; background: var(--slate-900); overflow: hidden; }
.page-header__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5), var(--slate-900)); }
.page-header h1 { font-size: 3rem; line-height: 1; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.page-header__lead { font-size: 1.25rem; color: var(--slate-400); max-width: 48rem; margin: 0 auto; }
.page-header__note { font-size: 0.875rem; color: var(--slate-500); margin-top: 1rem; }

/* ---------- 4. Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; border: 0; border-radius: 0.5rem;
  font-weight: 600; color: #fff; background: var(--slate-800);
  transition: all 0.3s ease;
}
.btn--sm { padding: 0.75rem 1.5rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--primary); box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25); }
.btn--primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--purple { background: #a855f7; }
.btn--purple:hover { background: #9333ea; }
.btn--green { background: #22c55e; }
.btn--green:hover { background: #16a34a; }
.btn--dark { background: var(--slate-800); border: 1px solid var(--slate-700); }
.btn--dark:hover { background: var(--slate-700); }
.btn--outline { background: transparent; border: 1px solid var(--slate-700); color: var(--slate-300); }
.btn--outline:hover { border-color: var(--primary); color: #fff; }
.btn--ghost {
  background: rgba(15, 23, 42, 0.5); border: 1px solid var(--slate-600); color: var(--slate-300);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--primary); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; margin-bottom: 1.5rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  color: var(--tt); background: rgba(var(--t), 0.1); border: 1px solid rgba(var(--t), 0.2);
}
.pill--lg { padding: 0.5rem 1rem; border-color: rgba(var(--t), 0.3); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem;
  color: var(--slate-400); background: var(--slate-800); border: 1px solid var(--slate-700);
}
.tag--tone { color: var(--tt); background: rgba(var(--t), 0.1); border-color: rgba(var(--t), 0.2); }
.badge {
  padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem;
  color: var(--tt); background: rgba(var(--t), 0.2); border: 1px solid rgba(var(--t), 0.3);
}

.meta { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--slate-500); }
.meta span { display: flex; align-items: center; gap: 0.25rem; }
.meta--wrap { flex-wrap: wrap; margin-bottom: 1.5rem; }

.icon-tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--tt, var(--primary)); }
.icon-tile--sm { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(var(--t), 0.2); }
.icon-tile--lg { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; }
.icon-tile--tinted { background: rgba(var(--t), 0.1); }
.icon-tile--round { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(var(--t), 0.2); }
.icon-tile--bordered {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; margin-bottom: 1.5rem;
  background: var(--slate-900); border: 1px solid var(--slate-800); transition: border-color 0.3s;
}
.icon-tile--md { width: 3rem; height: 3rem; border-radius: 0.5rem; margin-bottom: 0; }

.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green); }
.dot--pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ---------- 5. Navbar & search ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.4);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.is-scrolled { background: rgba(2, 6, 23, 0.95); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
.navbar__inner { display: flex; align-items: center; height: 5rem; }
.navbar__logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar__links { display: none; flex: 1; justify-content: center; gap: 3rem; }
.navbar__link { font-weight: 500; color: var(--slate-300); transition: color 0.2s; }
.navbar__link:hover, .navbar__link.is-active { color: var(--primary); }
.navbar__burger { margin-left: auto; background: none; border: 0; padding: 0; color: var(--slate-300); }
.navbar__burger:hover { color: #fff; }
.navbar__burger svg { width: 1.5rem; height: 1.5rem; }
.navbar__mobile { background: var(--slate-900); border-bottom: 1px solid var(--slate-800); }
.navbar__mobile-inner { padding: 0.5rem 1rem 1rem; max-width: 80rem; margin: 0 auto; }
.navbar__mobile-link { display: block; padding: 0.5rem 0.75rem; margin-top: 0.5rem; border-radius: 0.375rem; color: var(--slate-300); }
.navbar__mobile-link:hover, .navbar__mobile-link.is-active { color: var(--primary); background: var(--slate-800); }

.search { position: relative; }
.search--desktop { display: none; align-items: center; flex-shrink: 0; }
.search--mobile { margin-bottom: 0.75rem; }
.search__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border: 0; border-radius: 0.5rem;
  background: none; color: var(--slate-400); transition: all 0.2s;
}
.search__toggle:hover { color: var(--primary); background: var(--slate-800); }
.search__toggle svg { width: 1.25rem; height: 1.25rem; }
.search__box { position: relative; }
.search__icon {
  position: absolute; left: 0.75rem; top: 1.1rem; transform: translateY(-50%);
  width: 1rem; height: 1rem; color: var(--slate-400); pointer-events: none;
}
.search__input {
  width: 14rem; padding: 0.5rem 1rem 0.5rem 2.25rem;
  background: var(--slate-900); border: 1px solid var(--slate-700); border-radius: 0.5rem;
  font-size: 0.875rem; color: #fff; transition: border-color 0.2s;
}
.search__input::placeholder { color: var(--slate-500); }
.search__input:focus { outline: none; border-color: var(--primary); }
.search--mobile .search__input { width: 100%; background: var(--slate-950); border-color: var(--slate-800); }
.search__results {
  position: absolute; top: 100%; right: 0; z-index: 50; width: 18rem; margin-top: 0.5rem;
  background: var(--slate-900); border: 1px solid var(--slate-700); border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4); overflow: hidden;
}
.search--mobile .search__results { position: static; width: 100%; margin-top: 0.25rem; background: var(--slate-950); border-color: var(--slate-800); }
.search__result { display: block; padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--slate-300); transition: all 0.2s; }
.search__result:hover { background: var(--slate-800); color: var(--primary); }
.search__none { padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--slate-500); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding-top: 5rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.hero__shade { position: absolute; inset: 0; }
.hero__shade--x { background: linear-gradient(to right, var(--slate-950), rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.5)); }
.hero__shade--y { background: linear-gradient(to top, var(--slate-950), transparent, rgba(2, 6, 23, 0.8)); }
.hero__grid { display: grid; gap: 3rem; align-items: center; min-height: 80vh; }
.hero__text { text-align: center; }
.hero h1 { font-size: 3rem; line-height: 1.15; font-weight: 700; color: #fff; margin: 1.25rem 0 1.5rem; }
.hero__tagline { max-width: 48rem; margin: 0 auto 2rem; font-size: 1.25rem; font-weight: 500; color: var(--slate-300); }
.hero__actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 1.25rem; padding-top: 2rem; border-top: 1px solid rgba(30, 41, 59, 0.5);
}
.stat__value { font-size: 1.875rem; line-height: 1.2; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.stat__label { font-size: 0.875rem; color: var(--slate-500); }
.hero__visual { display: none; position: relative; min-height: 600px; }
.hero__scroll { display: none; position: absolute; z-index: 2; bottom: 2.5rem; left: 50%; margin-left: -0.75rem; color: var(--slate-400); animation: bounce 1s infinite; }
.hero__scroll svg { width: 1.5rem; height: 1.5rem; }

.float-card {
  position: absolute; padding: 1rem;
  background: rgba(15, 23, 42, 0.9); border: 1px solid var(--slate-700); border-radius: 0.75rem;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: float 6s ease-in-out infinite;
}
.float-card--ai { top: 5rem; right: 0; }
.float-card--scada { bottom: 10rem; left: 2.5rem; }
.float-card--plc { top: 50%; right: 2.5rem; }
.float-card__row { display: flex; align-items: center; gap: 0.75rem; }
.float-card__row--spaced { margin-bottom: 0.75rem; }
.float-card--ai .float-card__row { margin-bottom: 0.5rem; }
.float-card__title { font-size: 0.875rem; font-weight: 600; color: #fff; }
.float-card__sub { font-size: 0.75rem; color: var(--slate-400); }
.float-card__sub--online { display: flex; align-items: center; gap: 0.25rem; color: var(--green); }
.float-card__sub--online .dot { width: 0.375rem; height: 0.375rem; }
.float-card__meter-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.75rem; color: var(--slate-400); }
.float-card__meter-label span:last-child { color: #fff; }
.bars { display: flex; gap: 0.25rem; margin-top: 0.5rem; }
.bars span { display: block; height: 0.25rem; border-radius: 9999px; background: var(--primary); }
.meter { width: 8rem; height: 0.375rem; border-radius: 9999px; background: var(--slate-800); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 9999px; background: linear-gradient(to right, var(--primary), var(--accent)); }

.ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--slate-800); }
.ring--lg { width: 24rem; height: 24rem; opacity: 0.3; }
.ring--md { width: 18rem; height: 18rem; border-color: var(--slate-700); opacity: 0.4; }
.ring--sm { width: 12rem; height: 12rem; border-color: rgba(14, 165, 233, 0.3); opacity: 0.5; }

/* ---------- 7. Cards & content blocks ---------- */
.service-card, .project-card {
  position: relative; overflow: hidden;
  background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 1rem;
  transition: all 0.3s ease;
}
.service-card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.service-card { padding: 2rem; }
.service-card__glow {
  position: absolute; top: 0; right: 0; width: 8rem; height: 8rem; border-radius: 50%;
  background: rgba(var(--t), 0.1); filter: blur(64px); transition: background 0.3s;
}
.service-card:hover .service-card__glow { background: rgba(var(--t), 0.2); }
.service-card:hover .icon-tile--bordered { border-color: rgba(var(--t), 0.5); }
.service-card h3 { position: relative; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.service-card p { position: relative; color: var(--slate-400); line-height: 1.625; margin-bottom: 1.5rem; }
.service-card__link { position: relative; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--tt); transition: gap 0.3s; }
.service-card:hover .service-card__link { gap: 0.75rem; }

.glow-frame { position: relative; }
.glow-frame__glow {
  position: absolute; inset: 0; border-radius: 1.5rem; filter: blur(64px);
  background: linear-gradient(to right, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.2));
  transition: filter 0.3s;
}
.glow--pa { background: linear-gradient(to bottom right, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.2)); }
.glow--ap { background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2)); }
.glow--pp { background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2)); }
.glow--ga { background: linear-gradient(to bottom right, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.2)); }
.glow-frame:hover .glow-frame__glow--hover { filter: blur(40px); }

.industries-img {
  position: relative; width: 100%; height: 20rem; object-fit: cover;
  border-radius: 1.5rem; opacity: 0.5; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.panel { position: relative; padding: 2rem; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 1.5rem; }
.panel__img { width: 100%; height: 16rem; object-fit: cover; border-radius: 1rem; margin-bottom: 1.5rem; }
.mini-stat { padding: 1rem; text-align: center; background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 0.75rem; }
.mini-stat svg { margin: 0 auto 0.5rem; }
.mini-stat__title { font-size: 1.125rem; font-weight: 700; color: #fff; }
.mini-stat__sub { font-size: 0.75rem; color: var(--slate-500); }

.feature-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.feature { display: flex; align-items: flex-start; gap: 1rem; }
.feature h4 { font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.feature p { font-size: 0.875rem; color: var(--slate-400); }

.status-list { display: flex; flex-direction: column; gap: 0.75rem; }
.status-row {
  display: flex; align-items: center; justify-content: space-between; padding: 0.75rem;
  background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 0.5rem;
  font-size: 0.875rem; color: var(--slate-400);
}
.status-row strong { font-weight: 400; color: #fff; }
.status-row__online { display: flex; align-items: center; gap: 0.25rem; color: var(--green); }

.box { padding: 1.5rem; margin-bottom: 2rem; background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 1rem; }
.box h4 { font-weight: 600; color: #fff; margin-bottom: 1rem; }

.checklist { display: flex; flex-direction: column; gap: 0.75rem; color: var(--slate-400); }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; }
.checklist svg { color: var(--tt); margin-top: 0.125rem; }
.checklist--lg { gap: 0.75rem; margin-bottom: 2rem; color: var(--slate-300); }
.checklist--lg li { align-items: center; }
.checklist--lg svg { margin-top: 0; }
.checklist--sm { gap: 0.5rem; font-size: 0.875rem; }
.checklist--sm li { gap: 0.5rem; }

.benefit-grid { margin-bottom: 2rem; gap: 1rem; }
.benefit { padding: 1.25rem; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 0.75rem; }
.benefit svg { margin-bottom: 0.75rem; }
.benefit h4 { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.benefit p { font-size: 0.875rem; color: var(--slate-400); }

.quote-box { padding: 1.5rem; background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 0.75rem; }
.quote-box__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.quote-box__name { font-weight: 600; color: #fff; }
.quote-box__role { font-size: 0.875rem; color: var(--slate-400); }
.quote-box__quote { font-size: 0.875rem; font-style: italic; color: var(--slate-400); }
.quote-box__by { margin-top: 1rem; font-size: 0.875rem; color: var(--slate-500); }

.industry-card { padding: 1.5rem; background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 1rem; transition: all 0.3s; }
.industry-card:hover { border-color: rgba(var(--t), 0.5); }
.industry-card .icon-tile { margin-bottom: 1rem; transition: background 0.2s; }
.industry-card:hover .icon-tile { background: rgba(var(--t), 0.2); }
.industry-card h3 { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.industry-card p { font-size: 0.875rem; color: var(--slate-400); }

/* Brand logo strips */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; opacity: 0.6; filter: grayscale(1); transition: filter 0.5s; }
.logos:hover { filter: grayscale(0); }
.logos img { object-fit: contain; }
.logos--home { margin-top: 2.5rem; }
.logos--home img { width: 200px; }
.logos--projects { margin-top: 2rem; }
.logos--projects img { width: 190px; }

/* Home: project previews */
.project-previews { margin: 5rem 0 3rem; }
.project-card__media { position: relative; height: 16rem; overflow: hidden; background: linear-gradient(to bottom right, var(--slate-800), var(--slate-900)); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--slate-950), transparent); }
.project-card__body { padding: 2rem; }
.project-card .tags { margin-bottom: 1rem; }
.project-card h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; transition: color 0.2s; }
.project-card:hover h3 { color: var(--tt); }
.project-card p { color: var(--slate-400); margin-bottom: 1rem; }

/* ---------- 8. Page-specific ---------- */
/* Projects page */
.tech-strip { padding: 4rem 0; background: var(--slate-950); border-bottom: 1px solid var(--slate-900); }
.eyebrow { margin-bottom: 2rem; text-align: center; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); }
.project--spaced { margin-bottom: 6rem; }
.project__media { position: relative; overflow: hidden; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 12px; }
.project__media img { width: 100%; height: 20rem; object-fit: cover; }
.project__media-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--slate-950), transparent 60%); }
.project__media-tags { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; display: flex; gap: 0.5rem; }
.project__number { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.project__number span { font-size: 3rem; line-height: 1; font-weight: 700; color: var(--slate-800); }
.project__number div { flex: 1; height: 1px; background: var(--slate-700); }
.stat-boxes { gap: 1rem; margin-bottom: 2rem; }
.stat-box { padding: 1rem; background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 0.75rem; }
.stat-box__value { font-size: 1.5rem; font-weight: 700; color: var(--tt); margin-bottom: 0.25rem; }
.stat-box__label { font-size: 0.875rem; color: var(--slate-500); }
.big-stat { padding: 1.5rem; }
.big-stat__value { font-size: 3rem; line-height: 1; font-weight: 700; color: var(--tt); margin-bottom: 0.5rem; }
.big-stat__label { color: var(--slate-400); }

/* Careers page */
.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job { padding: 1.5rem; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 1rem; transition: all 0.3s; }
.job:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.job__head { display: flex; flex-direction: column; gap: 1rem; list-style: none; cursor: pointer; }
.job__head::-webkit-details-marker { display: none; }
.job__head h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.job__toggle { align-self: flex-start; }
.job__toggle svg { transition: transform 0.3s; }
.job[open] .job__toggle svg { transform: rotate(180deg); }
.job__body { display: grid; gap: 2rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-800); }
.job__body h4 { font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.job__body p { font-size: 0.875rem; color: var(--slate-400); margin-bottom: 1rem; }
.job__body .btn { margin-top: 1.5rem; }

.empty-state { padding: 3rem 0; text-align: center; }
.empty-state__icon { display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--slate-800); color: var(--slate-500); }
.empty-state h3 { font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.empty-state p { color: var(--slate-400); }

/* Privacy policy page */
.policy { display: flex; flex-direction: column; gap: 3rem; }
.policy h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.policy p, .policy li { line-height: 1.625; color: var(--slate-400); }
.policy p + p { margin-top: 0.75rem; }
.policy ul { margin-top: 0.75rem; list-style: disc inside; }
.policy li + li { margin-top: 0.5rem; }
.policy ul + p { margin-top: 0.75rem; }
.policy strong { font-weight: 500; color: #fff; }
.policy a { color: var(--primary); }
.policy a:hover { text-decoration: underline; }
.policy__footer { padding-top: 1rem; border-top: 1px solid var(--slate-800); }

/* ---------- 9. Forms, contact & modal ---------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-info .title { margin-bottom: 1.5rem; }
.contact-info__intro { margin-bottom: 2rem; color: var(--slate-400); }
.contact-info__items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 0.75rem; }
.contact-item__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 3rem; height: 3rem; background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 0.5rem; }
.contact-item__icon svg { width: 1.5rem; height: 1.5rem; }
.contact-item h4 { font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.875rem; color: var(--slate-400); }

.form-card { padding: 2rem; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 1rem; }
.form-card h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.form-card__intro { margin-bottom: 2rem; color: var(--slate-400); }
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; }
.field label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--slate-300); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 1rem; color: #fff;
  background: var(--slate-950); border: 1px solid var(--slate-800); border-radius: 0.5rem;
  transition: border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-600); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.consent { display: flex; align-items: flex-start; gap: 0.75rem; }
.consent input { width: 1rem; height: 1rem; margin-top: 0.25rem; accent-color: var(--primary); }
.consent label { font-size: 0.875rem; color: var(--slate-400); }
.link-button { padding: 0; border: 0; background: none; color: var(--primary); }
.link-button:hover { text-decoration: underline; }

.alert { margin-bottom: 1.5rem; padding: 1rem; border-radius: 0.5rem; font-size: 0.875rem; }
.alert--success { color: #4ade80; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); }
.alert--error { color: #f87171; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }

.modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(2, 6, 23, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal__dialog {
  display: flex; flex-direction: column; width: 100%; max-width: 42rem; max-height: 80vh;
  background: var(--slate-900); border: 1px solid var(--slate-700); border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--slate-800); }
.modal__head h2 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.modal__close { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 0; border-radius: 0.5rem; background: none; color: var(--slate-400); transition: all 0.2s; }
.modal__close:hover { color: #fff; background: var(--slate-800); }
.modal__body { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem; overflow-y: auto; font-size: 0.875rem; line-height: 1.625; color: var(--slate-400); }
.modal__body h3 { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.modal__body a { color: var(--primary); }
.modal__body a:hover { text-decoration: underline; }
.modal__foot { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1.5rem; border-top: 1px solid var(--slate-800); }

/* ---------- 10. Footer & floating button ---------- */
.footer { padding: 3rem 0; background: var(--slate-950); border-top: 1px solid var(--slate-900); }
.footer__grid { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 1.25rem; }
.footer__about p { max-width: 24rem; margin-top: 1rem; font-size: 0.875rem; line-height: 1.625; color: var(--slate-500); }
.footer h4 { font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--slate-400); }
.footer ul a:hover { color: var(--primary); }
.footer__contact { gap: 0.75rem; }
.footer__contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer__contact svg { margin-top: 0.125rem; }
.footer__bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--slate-900); }
.footer__bottom p { font-size: 0.875rem; color: var(--slate-600); }
.footer__legal { display: flex; align-items: center; gap: 1rem; }
.footer__legal > a:first-child { font-size: 0.875rem; color: var(--slate-500); transition: color 0.2s; }
.footer__legal > a:first-child:hover { color: var(--primary); }
.footer__social {
  display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; color: var(--slate-400); background: var(--slate-900); border: 1px solid var(--slate-800); transition: all 0.2s;
}
.footer__social:hover { color: var(--primary); border-color: var(--primary); }

.whatsapp-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50;
  display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem;
  border-radius: 50%; color: #fff; background: #25d366;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); transition: all 0.3s;
}
.whatsapp-fab:hover { background: #1ebe5d; transform: scale(1.1); box-shadow: 0 20px 25px -5px rgba(37, 211, 102, 0.4); }

/* ---------- 11. Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card, .hero__scroll, .dot--pulse { animation: none; }
}

/* ==========================================================================
   Responsive — mobile first. Breakpoints: 640 (sm), 768 (md), 1024 (lg)
   ========================================================================== */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .hero h1 { margin-top: 1rem; }
  .hero__actions { flex-direction: row; }
  .btn-row { flex-direction: row; }
  .grid--2-sm { grid-template-columns: repeat(2, 1fr); }
  .project__media img { height: 25rem; }
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .search--desktop { display: flex; }
  .navbar__burger, .navbar__mobile { display: none !important; }

  .page-header h1 { font-size: 3.75rem; }
  .hero h1 { font-size: 3.75rem; line-height: 1.25; }
  .hero__tagline { font-size: 1.5rem; }
  .title--xl { font-size: 3rem; }
  .title--md { font-size: 2.25rem; }
  .industries-img { height: 31.25rem; }

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

  .form__row { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 2.5rem; }
  .job { padding: 2rem; }
  .job__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .job__body { grid-template-columns: repeat(2, 1fr); }


  .footer__grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 2rem; }
  .footer__about { grid-column: span 2; }
  .footer__bottom { flex-direction: row; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--gap-lg { gap: 4rem; }
  .grid--gap-md { gap: 3rem; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }

  .hero__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__text { text-align: left; }
  .hero__tagline { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__visual, .hero__scroll { display: block; }

  .contact-grid { grid-template-columns: 1fr 2fr; }
}
