/* ===== RESET & BASE ===== */

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

html {
  scroll-behavior: smooth;
}

/* Scroll offset for sticky navbar */
[id] {
  scroll-margin-top: 100px;
}

/* ===== CSS CUSTOM PROPERTIES ===== */

:root {
  --accent: #2563eb;
  --accent-dark: #4f46e5;
}

body {
  --bg: #eef1f5;
  --bg-card: rgba(255,255,255,.82);
  --bg-card-solid: #ffffff;
  --bg-navbar: rgba(255,255,255,.50);
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #4b5563;
  --grid-line: rgba(100,100,100,.04);
  --shadow-light: rgba(0,0,0,.08);
  --shadow-medium: rgba(0,0,0,.12);
  --shadow-heavy: rgba(0,0,0,.2);
  --badge-bg: #dbeafe;
  --badge-text: #1d4ed8;
  --dashboard-bg: #111827;
  --dashboard-bar: #1f2937;
  --circle-inner: #dbeafe;
  --circle-outer: #eef1f5;
  --input-bg: rgba(255,255,255,.15);
  --input-border: rgba(255,255,255,.3);
  --footer-bg: #111827;
  --footer-text: #9ca3af;
  --footer-heading: #f1f5f9;

  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  color: var(--text-primary);
}

/* ===== DARK THEME ===== */

/* Applied instantly via inline script to prevent FOUC */
html.dark-init body,
body.dark {
  --bg: #0f172a;
  --bg-card: rgba(30,41,59,.82);
  --bg-card-solid: #1e293b;
  --bg-navbar: rgba(15,23,42,.8);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --grid-line: rgba(148,163,184,.04);
  --shadow-light: rgba(0,0,0,.25);
  --shadow-medium: rgba(0,0,0,.35);
  --shadow-heavy: rgba(0,0,0,.5);
  --badge-bg: rgba(37,99,235,.2);
  --badge-text: #60a5fa;
  --dashboard-bg: #1e293b;
  --dashboard-bar: #334155;
  --circle-inner: rgba(37,99,235,.15);
  --circle-outer: #0f172a;
  --input-bg: rgba(0,0,0,.25);
  --input-border: rgba(255,255,255,.15);
  --footer-bg: #020617;
  --footer-text: #64748b;
}

/* ===== BACKGROUND GRID ===== */

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
}

/* ===== PAGE CONTAINER ===== */

.page {
  max-width: 1280px;
  margin: auto;
  padding: 30px;
}

/* ===== NAVBAR ===== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 34px;
  background: var(--bg-navbar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 10px 30px var(--shadow-light);
  position: sticky;
  top: 20px;
  z-index: 100;
  transition: box-shadow .3s, background .3s;
}

.navbar.scrolled {
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo span:first-child {
  color: var(--accent);
}

.logo .logo-text {
  font-weight: 500;
}

/* Green dot — matches favicon */
.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: 1px;
  margin-right: 1px;
  vertical-align: super;
  position: relative;
  top: -2px;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color .3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
  transition: width .3s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav a:hover::after,
nav a:focus::after,
nav a.active::after {
  width: 100%;
}

.nav-mobile {
  display: none;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--grid-line);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text-primary);
  transition: background .3s, border-color .3s, transform .3s, color .3s;
}

.theme-toggle:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
  transform: rotate(20deg);
}

/* ===== FOCUS STATES (Accessibility) ===== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===== HERO ===== */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  padding: 90px 0 70px;
}

.badge {
  display: inline-flex;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 28px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: badge-shimmer 3.5s ease-in-out infinite;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 18px 28px;
  border-radius: 18px;
  font-weight: 700;
  font-family: inherit;
  font-size: 16px;
  transition: transform .3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card-solid);
  color: var(--text-primary);
  box-shadow: 0 10px 25px var(--shadow-light);
}

.btn-primary:hover  { transform: translateY(-2px); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 15px 35px var(--shadow-medium); }

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
  transition: transform 0.15s;
}

/* Icon utility — replaces inline style */
.btn-icon {
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
}

.contact-icon {
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -2px;
}

/* ===== HERO GRAPHIC ===== */

.hero-graphic {
  position: relative;
  height: 560px;
}

/* Replaces inline style on hero-svg-container */
.hero-svg-container {
  height: calc(100% - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.circle {
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--circle-inner), var(--circle-outer) 70%);
  border-radius: 50%;
  right: 0;
  top: 20px;
}

.dashboard {
  position: absolute;
  background: var(--dashboard-bg);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 60px var(--shadow-heavy);
}

.main-dashboard {
  width: 100%;
  height: 340px;
  top: 90px;
  right: 0;
}

.mobile-dashboard {
  width: 250px;
  height: 180px;
  left: -40px;
  bottom: 20px;
}

.browser-bar {
  height: 44px;
  background: var(--dashboard-bar);
  position: relative;
}

.browser-bar::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  top: 16px;
  left: 18px;
  box-shadow: 20px 0 #f59e0b, 40px 0 #22c55e;
}

.bars {
  height: 100%;
  background:
    linear-gradient(to top, #2563eb 0 80%, transparent 80%),
    linear-gradient(to top, #22c55e 0 55%, transparent 55%),
    linear-gradient(to top, #ef4444 0 70%, transparent 70%),
    linear-gradient(to top, #f59e0b 0 45%, transparent 45%);
  background-size: 35px 100%;
  background-repeat: no-repeat;
  background-position: 30px bottom, 80px bottom, 130px bottom, 180px bottom;
}

/* ===== HERO SVG ANIMATIONS ===== */
/* Przeniesione z inline <style> w index.html */

.stroke-dark   { stroke: #1e3a8a; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fill-dark     { fill: #1e3a8a; }
.stroke-medium { stroke: #1e3a8a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.c-blue   { fill: #4285F4; }
.c-green  { fill: #34A853; }
.c-yellow { fill: #FBBC05; }
.c-red    { fill: #EA4335; }
.s-blue   { stroke: #4285F4; }
.s-green  { stroke: #34A853; }
.s-yellow { stroke: #FBBC05; }
.s-red    { stroke: #EA4335; }
.c-white     { fill: #FFFFFF; }
.c-grey      { fill: #E8EAED; }
.c-dark-grey { fill: #9AA0A6; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes float-rev {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}
@keyframes draw-line {
  0%   { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pop-in {
  0%   { transform: scale(0);   opacity: 0; }
  80%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes shoot-arrow {
  0%   { opacity: 0; transform: translate(30px, -30px); }
  20%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes badge-shimmer {
  0%   { transform: translateX(-166.66%); }
  40%  { transform: translateX(216.66%); }
  100% { transform: translateX(216.66%); }
}
@keyframes number-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes logo-slide-in {
  0%   { opacity: 0; transform: translateX(-18px); }
  100% { opacity: 1; transform: translateX(0); }
}

.anim-float-1 { animation: float 12s ease-in-out infinite; transform-origin: center; }
.anim-float-2 { animation: float-rev 14s ease-in-out infinite; transform-origin: center; }
.anim-float-3 { animation: float 10s ease-in-out infinite; transform-origin: center; }

.anim-draw        { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw-line 2s ease-out forwards; animation-delay: 0.5s; }
.anim-draw-shadow { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw-line 2s ease-out forwards; animation-delay: 0.5s; }

.anim-pop { opacity: 0; animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; transform-origin: center center; transform-box: fill-box; }
.delay-1  { animation-delay: 0.2s; }
.delay-2  { animation-delay: 0.4s; }
.delay-3  { animation-delay: 0.6s; }
.delay-4  { animation-delay: 0.8s; }
.delay-5  { animation-delay: 1.0s; }
.delay-6  { animation-delay: 2.2s; }

.anim-fade-up { opacity: 0; animation: fade-up 0.8s ease-out forwards; }
.anim-shoot-1 { opacity: 0; animation: shoot-arrow 0.6s ease-out forwards; animation-delay: 1.2s; }
.anim-shoot-2 { opacity: 0; animation: shoot-arrow 0.6s ease-out forwards; animation-delay: 1.6s; }
.anim-pulse   { animation: pulse 2s infinite; transform-origin: center; transform-box: fill-box; }

/* ===== SERVICES ===== */

.section-oferta {
  padding-top: 80px;
}

.section-oferta .section-title {
  margin-bottom: 40px;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.service {
  background: var(--bg-card);
  border-radius: 26px;
  padding: 34px 28px;
  box-shadow: 0 18px 40px var(--shadow-light);
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  user-select: none;
  /* will-change: transform; usunięte by uniknąć nadmiernego zużycia GPU */
}

.service::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 6px;
  left: 0;
  top: 0;
}

.service--blue::before   { background: var(--accent); }
.service--green::before  { background: #22c55e; }
.service--orange::before { background: #f59e0b; }
.service--purple::before { background: #8b5cf6; }

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--shadow-medium);
  }
}

.icon {
  display: inline-flex;
  color: inherit;
  margin-bottom: 18px;
}

/* Service icon: na hover → kolor akcentu + bounce */
.service .icon {
  color: currentColor;
  transition: color .3s, transform .3s cubic-bezier(.175,.885,.32,1.275);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover .icon                   { transform: scale(1.25) rotate(-6deg); }
  .service.service--blue:hover .icon     { color: var(--accent); }
  .service.service--green:hover .icon    { color: #22c55e; }
  .service.service--orange:hover .icon   { color: #f59e0b; }
  .service.service--purple:hover .icon   { color: #8b5cf6; }
}

/* Na ekranach dotykowych — ikony zawsze kolorowe */
@media (hover: none) {
  .service.service--blue .icon     { color: var(--accent); }
  .service.service--green .icon    { color: #22c55e; }
  .service.service--orange .icon   { color: #f59e0b; }
  .service.service--purple .icon   { color: #8b5cf6; }
}

.service h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.service p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PROCESS (JAK PRACUJEMY) ===== */

.process {
  padding: 80px 0 20px;
}

.section-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.process-step {
  background: var(--bg-card);
  border-radius: 26px;
  padding: 36px 30px;
  box-shadow: 0 18px 40px var(--shadow-light);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  user-select: none;
  /* will-change: transform; usunięte by uniknąć nadmiernego zużycia GPU */
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: 1;
  transition: opacity .35s;
}

@media (hover: hover) and (pointer: fine) {
  .process-step::before { opacity: 0; }
  .process-step:hover::before { opacity: 1; }
  .process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px var(--shadow-medium);
  }
}

.step-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* Process step number pop on reveal */
.process-step.revealed .step-number {
  animation: number-pop .5s cubic-bezier(.175,.885,.32,1.275) both;
}

/* ===== BACK TO TOP ===== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 10px 25px rgba(37,99,235,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 15px 35px rgba(37,99,235,.45);
  transform: translateY(-4px);
}

/* ===== CONTACT ===== */

.contact {
  padding: 80px 0 50px;
}

.contact-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 36px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(37,99,235,.25);
}

.contact-box h2 {
  font-size: 48px;
  margin-bottom: 18px;
}

.contact-box p {
  font-size: 18px;
  opacity: .95;
  margin-bottom: 35px;
}

.contact-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  font-size: 18px;
  font-weight: 500;
}

.contact-link {
  text-decoration: none;
  color: #fff;
  transition: opacity .3s;
}

.contact-link:hover {
  opacity: .8;
}

/* ===== CONTACT FORM ===== */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: .9;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .3s, background .3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.8);
}

.form-group input:focus,
.form-group textarea:focus {
  /* outline: none; usunięte by zachować focus-visible */
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 24px;
  cursor: pointer;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-group label a {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* reCAPTCHA */
.g-recaptcha {
  transform-origin: left center;
  line-height: 0;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 32px;
  background: #fff;
  color: #111827;
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .3s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,.2);
  }
}

.form-submit:active {
  transform: scale(0.97);
  transition: transform 0.15s;
}

.form-status {
  font-size: 14px;
  margin-top: 10px;
}

.form-status.success { color: #22c55e; }
.form-status.error   { color: #ef4444; }

/* ===== FOOTER ===== */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 30px 0;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 280px;
}

.footer .logo {
  font-size: 24px;
  color: var(--footer-heading);
}

.footer .logo span:first-child {
  color: var(--accent);
}

.footer-links h4 {
  color: var(--footer-heading);
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links a,
.footer-links span {
  display: block;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 12px;
  transition: color .3s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width .3s;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: #fff; }
  .footer-links a:hover::after { width: 100%; }
}

.footer-links a:active {
  color: #fff;
  opacity: 0.7;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color .3s;
}

@media (hover: hover) and (pointer: fine) {
  .footer-bottom-links a:hover { color: #fff; }
}

.footer-bottom-links a:active {
  color: #fff;
  opacity: 0.7;
}

/* ===== SCROLL REVEAL ===== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Stagger children */
.services .reveal:nth-child(2)       { transition-delay: .1s; }
.services .reveal:nth-child(3)       { transition-delay: .2s; }
.services .reveal:nth-child(4)       { transition-delay: .3s; }
.process-grid .reveal:nth-child(2)   { transition-delay: .1s; }
.process-grid .reveal:nth-child(3)   { transition-delay: .2s; }
.process-grid .reveal:nth-child(4)   { transition-delay: .3s; }

/* ===== MISC ANIMATIONS ===== */

.navbar .logo {
  animation: logo-slide-in .6s cubic-bezier(.175,.885,.32,1.275) both;
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .anim-float-1, .anim-float-2, .anim-float-3,
  .anim-draw, .anim-draw-shadow, .anim-pop,
  .anim-fade-up, .anim-shoot-1, .anim-shoot-2,
  .anim-pulse {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

  .badge::after,
  .step-number,
  .navbar .logo {
    animation: none;
  }

  .footer-links a::after,
  .footer-bottom-links a::after,
  nav a::after {
    transition: none;
  }

  .service:hover,
  .process-step:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* ===== RESPONSIVE: TABLET (≤1100px) ===== */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 50px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== RESPONSIVE: MOBILE (≤768px) ===== */

@media (max-width: 768px) {
  .page { padding: 18px; }

  .navbar { padding: 14px 18px; }
  nav { gap: 14px; }
  nav a { font-size: 14px; }
  .logo { font-size: 16px; }
  .theme-toggle { padding: 6px 10px; }

  .section-title { font-size: 32px; }

  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero-graphic { height: 460px; }
  .hero-buttons { flex-direction: column; gap: 12px; }

  .btn-primary,
  .btn-secondary { text-align: center; padding: 16px 24px; }

  .mobile-dashboard { left: 0; }

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

  .contact-box { padding: 40px 24px; }
  .contact-box h2 { font-size: 34px; }
  .contact-items { flex-direction: column; gap: 14px; font-size: 15px; }

  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
  .g-recaptcha { transform: scale(0.85); transform-origin: left center; }
  .form-submit { width: 100%; justify-content: center; margin-top: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== RESPONSIVE: VERY SMALL (≤480px) ===== */

@media (max-width: 480px) {
  .logo-text { display: none; }
  .nav-desktop { display: none; }
  .nav-mobile { display: inline; }
  nav { gap: 10px; }

  .hero h1 { font-size: 28px; letter-spacing: -0.03em; }
  .hero p { font-size: 15px; }
  .hero-graphic { height: 320px; }
  .main-dashboard { height: 220px; top: 50px; }
  .mobile-dashboard { width: 160px; height: 120px; }
  .circle { width: 280px; height: 280px; }

  .badge { font-size: 12px; padding: 10px 14px; }
  .contact-box h2 { font-size: 26px; }
  .section-title { font-size: 26px; }
  .step-number { font-size: 28px; }
}