/* System & Software Srl - Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #070a13;
  --bg-secondary: #0f1422;
  --bg-card: rgba(15, 20, 34, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --color-primary: #3b328a; /* Deep blue-purple from logo */
  --color-primary-light: #5247b9;
  --color-accent: #10b981; /* Emerald green from logo */
  --color-accent-glow: rgba(16, 185, 129, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-family: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

section {
  padding: 100px 20px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-subtitle span {
  color: var(--color-accent);
  font-weight: 500;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.sticky {
  background-color: rgba(7, 10, 19, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1250px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.logo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
}

.logo-img {
  height: 36px;
  object-fit: contain;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(59, 50, 138, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 50, 138, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #070a13;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at 80% 20%, rgba(59, 50, 138, 0.15) 0%, rgba(7, 10, 19, 1) 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 10, 19, 0) 80%, rgba(7, 10, 19, 1) 100%);
  pointer-events: none;
}

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

.hero-content {
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(59, 50, 138, 0.2);
  border: 1px solid rgba(59, 50, 138, 0.4);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.hero-tag span {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-accent);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 80%, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  animation: float 6s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  filter: brightness(0.85) contrast(1.1);
  transition: var(--transition-slow);
}

.hero-img-wrapper:hover .hero-img {
  transform: scale(1.05);
}

.hero-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Chi Siamo Section */
.about {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 35px;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background-color: rgba(59, 50, 138, 0.05);
  border-color: rgba(59, 50, 138, 0.3);
  transform: translateY(-5px);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image-wrapper {
  position: relative;
}

.about-img {
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.about-img-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 50, 138, 0.12) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Servizi Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(59, 50, 138, 0.15);
  border: 1px solid rgba(59, 50, 138, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--color-accent);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--color-accent);
  color: #070a13;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Partners Section */
.partners {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.partners-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.partner-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 50, 138, 0.3);
}

.partner-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent, rgba(16, 185, 129, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.partner-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: var(--color-accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.partner-logo-box {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}

.partner-logo {
  max-height: 100%;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: var(--transition-smooth);
}

.partner-card:hover .partner-logo {
  transform: scale(1.05);
}

.partner-name {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.partner-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 25px;
  max-width: 440px;
  line-height: 1.6;
}

.partner-bullets {
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
}

.partner-bullet-item {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-bullet-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(59, 50, 138, 0.15);
  border: 1px solid rgba(59, 50, 138, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-form-box h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-form-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background-color: rgba(7, 10, 19, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  background-color: rgba(7, 10, 19, 0.8);
}

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

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.form-privacy-note svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.form-status {
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 20px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-accent);
}

.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Privacy Map Block (Cookie-free) */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 250px;
  position: relative;
  background-color: rgba(255,255,255,0.01);
}

.privacy-map-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 50, 138, 0.25) 0%, rgba(7, 10, 19, 0.9) 100%), 
              repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 20px),
              repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.map-glow-dot {
  width: 14px;
  height: 14px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 0 10px var(--color-accent);
}

.map-glow-dot::before {
  content: '';
  position: absolute;
  top: -13px;
  left: -13px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: pulse-ring 2s infinite ease-out;
  opacity: 0;
}

@keyframes pulse-ring {
  0% { transform: scale(0.3); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

.privacy-map-fallback h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.privacy-map-fallback p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 320px;
}

/* Footer */
.footer {
  background-color: #03050a;
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 30px 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  object-fit: contain;
  align-self: flex-start;
  background-color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.footer-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
}

.footer-motto {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 300px;
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav-link:hover {
  color: var(--text-primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.footer-legal-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-piva {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-cookie-free {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-accent);
  background-color: var(--color-accent-glow);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  font-weight: 500;
}

.footer-cookie-free svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 15px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
  
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 79px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 79px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }

  .nav-link {
    color: var(--text-secondary);
  }

  .nav-link:hover, .nav-link.active {
    color: var(--text-primary);
  }

  .nav-menu.active {
    left: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    align-items: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

/* Professional visual refinement */
:root {
  --bg-primary: #07101c;
  --bg-secondary: #0b1625;
  --bg-card: rgba(13, 27, 45, 0.78);
  --border-color: rgba(148, 163, 184, 0.16);
  --color-primary: #3730a3;
  --color-primary-light: #4f46e5;
  --color-accent: #20c997;
  --color-accent-glow: rgba(32, 201, 151, 0.12);
  --text-primary: #f8fafc;
  --text-secondary: #b5c0ce;
  --text-muted: #7f8da0;
}

body {
  background:
    radial-gradient(circle at 85% 5%, rgba(79, 70, 229, 0.08), transparent 28rem),
    var(--bg-primary);
  font-size: 16px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 7px;
  background: #fff;
  color: #07101c;
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.header {
  background: rgba(7, 16, 28, 0.9);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

.header-container {
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-link {
  padding: 7px 13px;
  border-radius: 8px;
}

.logo-img {
  height: 38px;
}

.nav-menu {
  gap: 27px;
}

.nav-link {
  color: #c3ccd8;
  font-size: 0.9rem;
}

.nav-cta {
  margin-left: 4px;
  padding: 10px 17px;
  color: #04110d;
}

.btn {
  min-height: 46px;
  border-radius: 7px;
  letter-spacing: 0.01em;
}

.btn:focus-visible,
.nav-link:focus-visible,
.logo-link:focus-visible,
.hamburger:focus-visible,
.footer-nav-link:focus-visible {
  outline: 3px solid rgba(32, 201, 151, 0.5);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  box-shadow: 0 10px 24px rgba(55, 48, 163, 0.28);
}

.btn-accent {
  background: #20c997;
  box-shadow: 0 10px 24px rgba(32, 201, 151, 0.18);
}

.hero {
  min-height: 820px;
  padding-top: 155px;
  padding-bottom: 100px;
  background:
    linear-gradient(90deg, rgba(7, 16, 28, 0.98) 0%, rgba(7, 16, 28, 0.88) 52%, rgba(7, 16, 28, 0.3) 100%),
    radial-gradient(circle at 80% 25%, rgba(79, 70, 229, 0.16), transparent 30rem);
}

.hero::before {
  background:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 78px;
}

.hero-content {
  position: relative;
}

.hero-tag {
  margin-bottom: 28px;
  padding: 7px 13px;
  border-color: rgba(32, 201, 151, 0.26);
  border-radius: 7px;
  background: rgba(32, 201, 151, 0.07);
  color: #8ee5c9;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-tag span {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.hero-title {
  max-width: 720px;
  margin-bottom: 24px;
  background: none;
  color: #f8fafc;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(3rem, 5vw, 4.65rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-desc {
  max-width: 640px;
  margin-bottom: 34px;
  color: #b9c5d3;
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 680px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--border-color);
}

.hero-proof > div {
  padding: 0 22px;
  border-right: 1px solid var(--border-color);
}

.hero-proof > div:first-child {
  padding-left: 0;
}

.hero-proof > div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.2rem;
}

.hero-proof span {
  display: block;
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.4;
}

.hero-img-wrapper {
  overflow: visible;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  animation: none;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.38);
}

.hero-img-wrapper::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid rgba(32, 201, 151, 0.22);
  border-radius: 14px;
}

.hero-img {
  min-height: 530px;
  border-radius: 13px;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8) contrast(1.08);
}

.hero-img-wrapper:hover .hero-img {
  transform: none;
}

.hero-image-caption {
  position: absolute;
  right: -28px;
  bottom: 26px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(7, 16, 28, 0.94);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.hero-image-caption strong,
.hero-image-caption small {
  display: block;
}

.hero-image-caption strong {
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.hero-image-caption small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(32, 201, 151, 0.1);
  flex: 0 0 auto;
}

.trust-bar {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: #091421;
}

.trust-bar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.trust-bar-inner > span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d5dce6;
}

.trust-items strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.trust-items span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #425166;
}

section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #66dcb8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-eyebrow-center {
  display: block;
  text-align: center;
}

.section-title {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  background: none;
  color: var(--text-primary);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.035em;
}

.section-title-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-subtitle {
  max-width: 680px;
  color: #9fabb9;
  line-height: 1.75;
}

.about {
  background: #0a1523;
}

.about-grid {
  grid-template-columns: 0.92fr 1.08fr;
  gap: 88px;
}

.about-image-wrapper::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 70%;
  height: 70%;
  z-index: -1;
  border-right: 1px solid rgba(32, 201, 151, 0.24);
  border-bottom: 1px solid rgba(32, 201, 151, 0.24);
  border-radius: 0 0 16px 0;
}

.about-img {
  min-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(0.8);
}

.about-lead {
  color: #c8d2de !important;
  font-size: 1.15rem !important;
  line-height: 1.6;
}

.about-text p {
  color: #9fabb9;
  line-height: 1.8;
}

.about-stats {
  gap: 14px;
}

.stat-card {
  padding: 22px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.stat-card:hover {
  transform: none;
}

.stat-num {
  font-size: 1.55rem;
}

.stat-label {
  color: #9da9b8;
  font-size: 0.72rem;
  line-height: 1.45;
}

.services {
  background:
    radial-gradient(circle at 0 60%, rgba(55, 48, 163, 0.09), transparent 30rem),
    var(--bg-primary);
}

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

.service-card {
  min-height: 345px;
  padding: 32px 28px;
  border-radius: 10px;
  background: rgba(11, 25, 41, 0.82);
  backdrop-filter: none;
  counter-increment: service;
}

.service-card::after {
  content: "0" counter(service);
  position: absolute;
  top: 30px;
  right: 28px;
  color: #516074;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-card::before {
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 201, 151, 0.28);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

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

.service-icon-box {
  width: 52px;
  height: 52px;
  margin-bottom: 36px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.11);
}

.service-card:hover .service-icon-box {
  background: rgba(32, 201, 151, 0.12);
  color: var(--color-accent);
  box-shadow: none;
  transform: none;
}

.service-title {
  font-size: 1.22rem;
}

.service-desc {
  color: #98a6b7;
  line-height: 1.72;
}

.partners {
  background: #0a1523;
}

.partner-card {
  align-items: flex-start;
  padding: 42px;
  border-radius: 12px;
  background: #07101c;
  text-align: left;
}

.partner-card:hover {
  transform: translateY(-3px);
}

.partner-card::after {
  display: none;
}

.partner-badge {
  margin-bottom: 24px;
  border-radius: 5px;
}

.partner-logo-box {
  height: 72px;
  justify-content: flex-start;
  margin-bottom: 25px;
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, #111e2e, #09131f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.partner-logo {
  max-width: 220px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

.partner-card:hover .partner-logo {
  transform: none;
}

.partner-name {
  font-size: 1.55rem;
}

.partner-desc {
  max-width: none;
  color: #9eabb9;
  line-height: 1.75;
}

.partner-bullets {
  max-width: none;
}

.contact {
  background:
    radial-gradient(circle at 90% 70%, rgba(32, 201, 151, 0.06), transparent 28rem),
    var(--bg-primary);
}

.contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.contact-details {
  gap: 12px;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: rgba(11, 25, 41, 0.56);
}

.contact-icon {
  width: 43px;
  height: 43px;
  border-radius: 7px;
}

.contact-label {
  margin-bottom: 4px;
  font-size: 0.7rem;
}

.contact-value {
  font-size: 0.98rem;
}

.contact-form-box {
  padding: 46px;
  border-radius: 12px;
  background: #0b1929;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
}

.form-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form-box h3 {
  font-size: 1.9rem;
  letter-spacing: -0.025em;
}

.form-label {
  color: #c2ccd8;
  font-size: 0.78rem;
}

.form-control {
  min-height: 50px;
  border-color: rgba(148, 163, 184, 0.2);
  border-radius: 7px;
  background: #071421;
}

.form-control:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.12);
}

.form-submit {
  width: 100%;
  color: #04110d;
  font-weight: 700;
}

.map-container {
  height: 230px;
  border-radius: 10px;
}

.privacy-map-fallback {
  background:
    radial-gradient(circle at 50% 50%, rgba(55, 48, 163, 0.22), rgba(7, 16, 28, 0.94)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 22px);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.8rem;
}

.footer {
  background: #040a12;
}

.footer-top {
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .hero-grid {
    gap: 45px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

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

@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: 145px;
    text-align: left;
  }

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

  .hero-desc {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-image-container {
    max-width: 680px;
  }

  .hero-img {
    min-height: 420px;
  }

  .about-grid,
  .contact-grid {
    gap: 55px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 86px 18px;
  }

  .header-container {
    min-height: 70px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
    gap: 30px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero {
    padding-top: 125px;
    padding-bottom: 75px;
  }

  .hero-title {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .hero-desc {
    font-size: 1.02rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 38px;
  }

  .hero-proof > div,
  .hero-proof > div:first-child {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-proof > div:last-child {
    border-bottom: 0;
  }

  .hero-img {
    min-height: 350px;
  }

  .hero-image-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .hero-img-wrapper::before {
    display: none;
  }

  .trust-bar {
    padding: 25px 18px;
  }

  .trust-bar-inner,
  .trust-items {
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-bar-inner {
    gap: 16px;
  }

  .trust-items {
    gap: 12px 18px;
  }

  .about-grid {
    gap: 48px;
  }

  .about-img {
    min-height: 340px;
  }

  .about-stats,
  .services-grid,
  .partner-bullets {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .partner-card,
  .contact-form-box {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
