/* ============================================
   Xmade Systems – Premium IT Website
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --dark-900: #0a0f1a;
  --dark-800: #0f1629;
  --dark-700: #151e35;
  --dark-600: #1c2844;
  --dark-500: #243352;
  --surface: #111a2e;
  --surface-alt: #0d1424;
  --white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
  --text-on-dark: #e2e8f0;
  --border: rgba(255, 255, 255, .08);
  --border-dark: #334155;
  --success: #10b981;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .3), 0 2px 4px -2px rgba(0, 0, 0, .2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .35), 0 4px 6px -4px rgba(0, 0, 0, .25);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .4), 0 8px 10px -6px rgba(0, 0, 0, .3);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, .2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--dark-900);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  background: var(--dark-900);
  color: var(--text-on-dark);
}

.section-dark {
  background: var(--surface-alt);
  color: var(--text-on-dark);
}

.section-alt {
  background: var(--dark-800);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label i { font-size: .65rem; }

.section-dark .section-label { color: var(--accent); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

.section-dark .section-subtitle { color: var(--text-light); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .45);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .25);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 22, 40, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .15);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}

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

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

.nav a {
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 24px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .4) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--dark-900) 0%, var(--dark-800) 40%, var(--dark-700) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 30%, rgba(37, 99, 235, .12), transparent),
    radial-gradient(ellipse 600px 400px at 20% 70%, rgba(6, 182, 212, .08), transparent);
  pointer-events: none;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(37, 99, 235, .2);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.5px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat p {
  font-size: .82rem;
  color: var(--text-light);
  margin: 6px 0 0;
}

/* Hero Visual (right side) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-float-card {
  background: rgba(26, 39, 68, .6);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.hero-float-card:hover { transform: translateY(-4px); }

.hero-main-card {
  padding: 32px;
}

.hero-main-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.card-icon-lg {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.card-header p {
  font-size: .82rem;
  color: var(--text-light);
  margin: 2px 0 0;
}

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric {
  background: rgba(255, 255, 255, .04);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.metric-label {
  font-size: .72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.metric-value.success { color: var(--success); }
.metric-value.accent { color: var(--accent); }

.hero-side-card {
  position: absolute;
  width: 220px;
  padding: 18px;
}

.hero-side-card.top-right {
  top: -20px;
  right: -30px;
  animation: float 6s ease-in-out infinite;
}

.hero-side-card.bottom-left {
  bottom: -10px;
  left: -30px;
  animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mini-stat { display: flex; align-items: center; gap: 12px; }

.mini-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

.mini-stat-icon.blue { background: rgba(37, 99, 235, .15); color: var(--primary-light); }
.mini-stat-icon.green { background: rgba(16, 185, 129, .15); color: var(--success); }

.mini-stat h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}

.mini-stat p {
  font-size: .72rem;
  color: var(--text-light);
  margin: 2px 0 0;
}

/* ============================================
   SERVICES / LEISTUNGEN
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(37, 99, 235, .1);
  border-color: rgba(37, 99, 235, .2);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(6, 182, 212, .15));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-light);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  font-size: .92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* ============================================
   ABOUT / ÜBER UNS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-label { text-align: left; }

.about-content .section-title {
  text-align: left;
  color: var(--white);
}

.about-text {
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-feature i {
  margin-top: 3px;
  font-size: .85rem;
  color: var(--success);
  flex-shrink: 0;
}

.about-feature span {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-on-dark);
}

/* About Visual */
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat-card {
  background: rgba(26, 39, 68, .5);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.about-stat-card:nth-child(2) { margin-top: 30px; }
.about-stat-card:nth-child(3) { margin-top: -30px; }

.about-stat-card:hover {
  background: rgba(37, 99, 235, .1);
  border-color: rgba(37, 99, 235, .2);
  transform: translateY(-4px);
}

.about-stat-card i {
  font-size: 1.6rem;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.about-stat-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.about-stat-card p {
  font-size: .82rem;
  color: var(--text-light);
}

/* ============================================
   TRUST / VORTEILE
   ============================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(37, 99, 235, .1);
  border-color: rgba(37, 99, 235, .2);
}

.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(6, 182, 212, .15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-light);
  transition: var(--transition);
}

.trust-card:hover .trust-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  transform: scale(1.1);
}

.trust-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.trust-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #4f46e5);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 20% 50%, rgba(255, 255, 255, .08), transparent),
    radial-gradient(circle 300px at 80% 50%, rgba(255, 255, 255, .05), transparent);
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 0;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   CONTACT / KONTAKT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.contact-info > p {
  font-size: .95rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-methods { display: flex; flex-direction: column; gap: 20px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(6, 182, 212, .15));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--white);
}

.contact-method p {
  font-size: .88rem;
  color: var(--text-light);
}

/* Contact Form */
.contact-form-card {
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

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

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

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
  background: var(--dark-900);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}

.form-note {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

.form-note a {
  color: var(--primary-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #060a14;
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0 48px;
}

.footer-brand .logo { margin-bottom: 20px; }

.footer-brand p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: .5px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: .88rem;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}

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

.footer-bottom-links a {
  color: var(--text-light);
  transition: var(--transition);
}

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

/* ============================================
   PAGE HERO (Impressum / Datenschutz)
   ============================================ */
.page-hero {
  background: linear-gradient(160deg, var(--dark-900), var(--dark-800));
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-light);
}

.legal-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 20px;
  color: var(--white);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-on-dark);
}

.legal-content p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--primary-light);
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
  z-index: 999;
}

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

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card-stack { max-width: 380px; margin: 0 auto; }
  .hero-side-card.top-right { right: -10px; top: -10px; }
  .hero-side-card.bottom-left { left: -10px; bottom: -5px; }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-content { text-align: center; }
  .about-content .section-label,
  .about-content .section-title { text-align: center; }
  .about-visual { max-width: 400px; margin: 0 auto; }

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

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

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile Nav */
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-900);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 0;
    transition: right .35s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
  }

  .nav.open { right: 0; }

  .nav a {
    padding: 14px 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }

  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-side-card { display: none; }
  .hero-stats { gap: 24px; }
  .hero-stat h3 { font-size: 1.4rem; }

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

  .about-features { grid-template-columns: 1fr; }

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

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

  .footer-main { grid-template-columns: 1fr; gap: 36px; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-content { padding: 60px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .contact-form-card { padding: 24px; }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-800);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform .5s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: .88rem;
  color: var(--text-light);
  flex: 1;
  min-width: 280px;
}

.cookie-inner a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-accept:hover { background: var(--primary-dark); }

.cookie-decline {
  background: rgba(255, 255, 255, .08);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, .1);
}

.cookie-decline:hover {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
}
