@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --background: 0 0% 100%;
  --foreground: 220 20% 10%;
  --card: 0 0% 98%;
  --card-foreground: 220 20% 10%;
  --primary: 0 85% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 15% 94%;
  --secondary-foreground: 220 20% 10%;
  --muted: 220 15% 94%;
  --muted-foreground: 220 10% 45%;
  --accent: 220 15% 94%;
  --accent-foreground: 220 20% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 220 13% 90%;
  --input: 220 13% 90%;
  --ring: 0 85% 50%;
  --radius: 0.75rem;
  --hero-bg: 220 25% 8%;
  --hero-foreground: 0 0% 100%;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.15; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Utilities ── */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px){ .container{ padding:0 2rem; } }

.text-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(0 75% 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Animations ── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.7s ease-out forwards;
}
.animate-fade-in {
  opacity: 0;
  animation: fade-in 0.5s ease-out forwards;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease-out;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 12px hsla(var(--primary)/.25); }

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--accent)); }

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(var(--hero-bg) / .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(var(--hero-foreground) / .1);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.navbar-logo img { height: 2.5rem; }
.navbar-links { display: none; align-items: center; gap: 2rem; }
@media(min-width:768px) { .navbar-links { display: flex; } }
.navbar-links a, .navbar-links button.nav-parent {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(var(--hero-foreground) / .8);
  transition: color 0.2s;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.25rem;
}
.navbar-links a:hover, .navbar-links button.nav-parent:hover { color: hsl(var(--primary)); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  width: 15rem;
  z-index: 60;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }
.dropdown-panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  padding: 0.5rem;
  animation: fade-in 0.2s ease-out forwards;
}
.dropdown-panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: calc(var(--radius) - 4px);
  color: hsl(var(--card-foreground));
  transition: background 0.15s;
}
.dropdown-panel a:hover { background: hsl(var(--accent)); }

/* Mobile menu */
.mobile-toggle { display: block; color: hsl(var(--hero-foreground)); background: none; border: none; }
@media(min-width:768px) { .mobile-toggle { display: none; } }
.mobile-menu {
  display: none;
  background: hsl(var(--hero-bg));
  border-top: 1px solid hsla(var(--hero-foreground) / .1);
  padding: 1rem;
  animation: fade-in 0.3s ease-out;
}
.mobile-menu.open { display: block; }
@media(min-width:768px) { .mobile-menu { display: none !important; } }
.mobile-menu a, .mobile-menu button.mobile-parent {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.5rem 0;
  font-size: 0.875rem; font-weight: 500;
  color: hsla(var(--hero-foreground) / .8);
  transition: color 0.2s;
  background: none; border: none; cursor: pointer;
}
.mobile-menu a:hover, .mobile-menu button.mobile-parent:hover { color: hsl(var(--primary)); }
.mobile-submenu { padding-left: 1rem; display: none; }
.mobile-submenu.open { display: block; }
.mobile-submenu a { color: hsla(var(--hero-foreground) / .6); padding: 0.375rem 0; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, hsla(var(--hero-bg)/.95), hsla(var(--hero-bg)/.80), hsla(var(--hero-bg)/.50));
}
.hero-content {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  max-width: 42rem;
}
.hero-eyebrow {
  color: hsl(var(--primary));
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--hero-foreground));
  margin-bottom: 1.5rem;
}
@media(min-width:768px) { .hero h1 { font-size: 3.75rem; } }
@media(min-width:1024px) { .hero h1 { font-size: 4.5rem; } }

/* ── About / Stats ── */
.section { padding: 6rem 0; }
.section-label {
  color: hsl(var(--primary));
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}
@media(min-width:768px) { .section-title { font-size: 3rem; } }
.section-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 48rem;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media(min-width:768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
@media(min-width:768px) { .stat-card { padding: 1.5rem; } }
.stat-card:hover { border-color: hsla(var(--primary)/.5); box-shadow: 0 8px 24px hsla(var(--primary)/.05); }
.stat-icon {
  width: 2rem; height: 2rem;
  color: hsl(var(--primary));
  margin: 0 auto 0.75rem;
}
@media(min-width:768px) { .stat-icon { width: 2rem; height: 2rem; margin-bottom: 1rem; } }
.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media(min-width:768px) { .stat-value { font-size: 1.5rem; } }
.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.3;
}
@media(min-width:768px) { .stat-label { font-size: 0.875rem; } }

/* ── Services Grid ── */
.bg-secondary-half { background: hsla(var(--secondary) / .5); }
.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media(min-width:768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: block;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: hsla(var(--primary)/.5);
  box-shadow: 0 12px 32px hsla(var(--primary)/.05);
  transform: translateY(-4px);
}
.service-icon-wrap {
  width: 3rem; height: 3rem;
  border-radius: calc(var(--radius) - 4px);
  background: hsla(var(--primary)/.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}
.service-card:hover .service-icon-wrap { background: hsla(var(--primary)/.2); }
.service-icon-wrap svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.service-card h3 {
  font-size: 1.125rem; font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ── Values ── */
.values-section {
  padding: 6rem 0;
  background: hsl(var(--hero-bg));
  color: hsl(var(--hero-foreground));
  text-align: center;
}
.values-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
@media(min-width:768px) { .values-section h2 { font-size: 3rem; } }
.values-section p {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: hsla(var(--hero-foreground) / .7);
  font-size: 1.125rem;
  line-height: 1.7;
}
.values-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--primary));
}
.values-phone:hover { text-decoration: underline; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  gap: 4rem;
}
@media(min-width:1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-info-item + .contact-info-item { margin-top: 1.5rem; }
.contact-icon-wrap {
  width: 2.5rem; height: 2.5rem;
  border-radius: calc(var(--radius) - 4px);
  background: hsla(var(--primary) / .1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon-wrap svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.contact-info-label { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.contact-info-value { font-weight: 500; color: hsl(var(--foreground)); }

.contact-form-wrapper {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group + .form-group { margin-top: 1.25rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsla(var(--ring)/.2);
}
.form-input.error, .form-textarea.error, .form-select.error {
  border-color: hsl(var(--destructive));
}
.form-input.error:focus, .form-textarea.error:focus, .form-select.error:focus {
  box-shadow: 0 0 0 2px hsla(var(--destructive)/.2);
}
.form-textarea { resize: none; min-height: 6rem; }
.form-error { color: hsl(var(--destructive)); font-size: 0.75rem; margin-top: 0.25rem; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ── Footer ── */
.footer {
  background: hsl(var(--hero-bg));
  border-top: 1px solid hsla(var(--hero-foreground) / .1);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media(min-width:768px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer img { height: 2rem; }
.footer p { color: hsla(var(--hero-foreground)/.5); font-size: 0.875rem; }

/* ── Service Detail Pages ── */
.detail-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: hsl(var(--hero-bg));
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsla(var(--hero-foreground)/.6);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: hsl(var(--primary)); }
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.detail-icon-wrap {
  width: 4rem; height: 4rem;
  border-radius: var(--radius);
  background: hsla(var(--primary) / .1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.detail-icon-wrap svg { width: 2rem; height: 2rem; color: hsl(var(--primary)); }
.detail-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--hero-foreground));
  margin-bottom: 1rem;
}
@media(min-width:768px) { .detail-header h1 { font-size: 3rem; } }
.detail-header p {
  color: hsla(var(--hero-foreground) / .7);
  font-size: 1.125rem;
  max-width: 48rem;
  line-height: 1.7;
}

.features-benefits {
  display: grid;
  gap: 3rem;
}
@media(min-width:1024px) { .features-benefits { grid-template-columns: 1fr 1fr; } }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.feature-item + .feature-item { margin-top: 1rem; }
.feature-dot-wrap {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: hsla(var(--primary)/.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.feature-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--primary));
}
.benefit-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.benefit-card + .benefit-card { margin-top: 1rem; }
.benefit-card:hover { border-color: hsla(var(--primary)/.5); }
.benefit-card p { font-weight: 500; color: hsl(var(--foreground)); }

.detail-cta {
  padding: 4rem 0;
  background: hsla(var(--secondary) / .5);
  text-align: center;
}
.detail-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media(min-width:768px) { .detail-cta h2 { font-size: 2.25rem; } }
.detail-cta p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.detail-nav {
  padding: 2.5rem 0;
  border-top: 1px solid hsl(var(--border));
}
.detail-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  transition: color 0.2s;
}
.detail-nav a:hover { color: hsl(var(--primary)); }

/* ── Cybersecurity Pillars ── */
.value-props-grid {
  display: grid;
  gap: 1rem;
}
@media(min-width:640px) { .value-props-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .value-props-grid { grid-template-columns: repeat(4, 1fr); } }
.value-prop-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.value-prop-card svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; margin-top: 0.125rem; }
.value-prop-card p { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); text-align: left; }

.pillar-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.pillar-bar { height: 0.375rem; }
.pillar-content { padding: 2rem; }
.pillar-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media(min-width:768px) { .pillar-header { flex-direction: row; align-items: flex-start; } }
.pillar-logo { width: 5rem; height: 5rem; object-fit: contain; flex-shrink: 0; }
.pillar-title { font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.pillar-subtitle { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.pillar-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; margin-bottom: 1.25rem; }

.pillar-services {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
}
.pillar-services.expanded {
  opacity: 1;
  max-height: 2000px;
}
.pillar-services-inner {
  padding: 0.5rem 2rem 2rem;
  border-top: 1px solid hsl(var(--border));
}
.pillar-services-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media(min-width:768px) { .pillar-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .pillar-services-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-svc-card {
  background: hsla(var(--secondary)/.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.pillar-svc-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pillar-svc-bar { position: absolute; top: 0; left: 0; width: 0.25rem; height: 100%; }
.pillar-svc-card h4 { font-weight: 700; font-size: 0.875rem; color: hsl(var(--foreground)); margin-bottom: 0.5rem; padding-left: 0.75rem; }
.pillar-svc-card p { font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.5; padding-left: 0.75rem; }

/* ── Chevron icon rotation ── */
.chevron-icon { transition: transform 0.3s; }
.chevron-icon.rotated { transform: rotate(180deg); }

/* ── SVG icon default ── */
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 100;
  animation: fade-in-up 0.3s ease-out;
  max-width: 20rem;
}
.toast-title { font-weight: 600; font-size: 0.875rem; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.toast-desc { font-size: 0.8rem; color: hsl(var(--muted-foreground)); }

/* ── Pillar + card spacing on detail pages ── */
.pillar-card + .pillar-card { margin-top: 1.5rem; }
