/* ============================================
   3BLOCKS — Ciberseguridad & IA
   Pure CSS conversion from Tailwind template
   ============================================ */

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

/* --- Variables --- */
:root {
  --black: #0a0a0a;
  --dark: #111111;
  --accent: #00ff94;
  --blue: #00b8ff;
  --orange: #f97316;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;

  --container: 1280px;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: #e5e5e5;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: var(--black);
}

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-blue { color: var(--blue); }

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

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes slideInBanner {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__logo-icon {
  height: 28px;
  width: auto;
}

.navbar__logo-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.navbar__logo-cursor {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.navbar__link {
  color: var(--gray-300);
  transition: color 0.25s;
}

.navbar__link:hover {
  color: var(--accent);
}

.navbar__cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.navbar__cta:hover {
  background: var(--accent);
  color: var(--black);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-300);
  transition: all 0.3s;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--white {
  background: var(--white);
  color: var(--black);
}
.btn--white:hover {
  background: #e5e5e5;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn--glow {
  background: var(--accent);
  color: var(--black);
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
  box-shadow: 0 0 20px rgba(0, 255, 148, 0.3);
  transition: all 0.3s;
}
.btn--glow:hover {
  background: var(--white);
  transform: scale(1.05);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #1a1a1a 1px, transparent 1px),
    linear-gradient(to bottom, #1a1a1a 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--blue {
  top: 0;
  right: 0;
  background: rgba(0, 184, 255, 0.1);
}
.hero__glow--green {
  bottom: 0;
  left: 0;
  background: rgba(0, 255, 148, 0.1);
}

.hero__inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: slideUp 0.8s ease-out;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 255, 148, 0.3);
  background: rgba(0, 255, 148, 0.05);
  align-self: flex-start;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero__badge-text {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Title */
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero__title-gradient {
  background: linear-gradient(to right, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 255, 148, 0.15);
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

/* Hero Image */
.hero__image {
  position: relative;
  display: none;
}

.hero__image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-radius: 1rem;
  filter: blur(20px);
  opacity: 0.2;
  transform: rotate(3deg);
}

.hero__img {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  filter: grayscale(1);
  transition: all 0.5s;
}
.hero__img:hover {
  filter: grayscale(0);
  transform: scale(1.01);
}

.hero__status-badge {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 148, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 6rem 0;
  background: var(--black);
}

.services__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.services__title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.services__subtitle {
  color: var(--gray-400);
  font-size: 1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* --- Cards --- */
.card {
  position: relative;
  background: var(--dark);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  overflow: hidden;
}

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

.card--green:hover  { border-color: rgba(0, 255, 148, 0.5); }
.card--blue:hover   { border-color: rgba(0, 184, 255, 0.5); }
.card--orange:hover { border-color: rgba(249, 115, 22, 0.5); }

.card__bg-icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  opacity: 0.1;
  transition: opacity 0.3s;
}
.card:hover .card__bg-icon {
  opacity: 1;
}

.card--green .card__bg-icon  { color: var(--accent); }
.card--blue .card__bg-icon   { color: var(--blue); }
.card--orange .card__bg-icon { color: var(--orange); }

.card__icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card__icon--green  { color: var(--accent); }
.card__icon--blue   { color: var(--blue); }
.card__icon--orange { color: var(--orange); }

.card__title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card__desc {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card__list {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card__list-arrow--green  { color: var(--accent); }
.card__list-arrow--blue   { color: var(--blue); }
.card__list-arrow--orange { color: var(--orange); }

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--black), var(--dark));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.experience__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.experience__title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.experience__subtitle {
  color: var(--gray-400);
  font-size: 1rem;
}

/* Highlight */
.experience__highlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto 4rem;
  max-width: 600px;
  padding: 2rem 2.5rem;
  background: var(--dark);
  border: 1px solid rgba(0, 255, 148, 0.15);
  border-radius: 0.75rem;
}

.experience__highlight-value {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.experience__highlight-label {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Content */
.experience__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.experience__content--single {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.experience__text p {
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 1rem;
}


@media (max-width: 767px) {
  .experience__highlight {
    flex-direction: column;
    text-align: center;
  }

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

/* ============================================
   ISO SECTION
   ============================================ */
.iso {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--black), var(--dark));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.iso__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.iso__img {
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 184, 255, 0.2);
  filter: grayscale(1);
  transition: all 0.5s;
}
.iso__img:hover {
  filter: grayscale(0);
}

.iso__title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.iso__text {
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.iso__checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-top: 2rem;
}

.iso__check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-300);
}

.iso__check-item svg {
  flex-shrink: 0;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 148, 0.03);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta__title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.cta__text {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.cta__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

/* ============================================
   TERMINAL WIDGET
   ============================================ */
.terminal {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 148, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  margin: 3rem auto 0;
  max-width: 540px;
  text-align: left;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1a2235;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal__dot--red    { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green  { background: #28c840; }

.terminal__bar-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
}

.terminal__body {
  background: #0c1220;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

.terminal__body p {
  min-height: 1.5em;
  overflow: hidden;
  opacity: 0;
}

.terminal__body p.visible {
  opacity: 1;
  animation: fadeIn 0.3s ease-out;
}

.terminal__body .t-green  { color: #28c840; }
.terminal__body .t-cyan   { color: #2dd4bf; }
.terminal__body .t-yellow { color: #febc2e; }

.terminal__cursor {
  animation: cursorBlink 1s step-end infinite;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer__logo-icon {
  height: 22px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer__logo-cursor {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--gray-400);
}

.footer__links a {
  transition: color 0.25s;
}
.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-family: var(--font-mono);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--dark);
  border-top: 1px solid rgba(0, 255, 148, 0.2);
  padding: 1rem;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.5s;
}

.cookie-banner.visible {
  animation: slideInBanner 0.5s forwards;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cookie-banner__inner p {
  color: var(--gray-400);
  font-size: 0.875rem;
  text-align: center;
}

.cookie-banner__btn {
  padding: 0.5rem 1.5rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
}
.cookie-banner__btn:hover {
  background: var(--accent);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Hide/show correct icon */
.theme-toggle__sun  { display: none; }
.theme-toggle__moon { display: block; }

[data-theme="light"] .theme-toggle__sun  { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
  --black: #f5f5f5;
  --dark: #e8e8e8;
  --white: #111111;
  --gray-300: #374151;
  --gray-400: #4b5563;
  --gray-500: #6b7280;
  --gray-600: #9ca3af;
  --accent: #00c46f;
  /* --blue stays */
}

/* Body text */
[data-theme="light"] body {
  color: #333333;
}

/* Selection */
[data-theme="light"] ::selection {
  background: var(--accent);
  color: #ffffff;
}

/* Navbar */
[data-theme="light"] .navbar {
  background: rgba(245, 245, 245, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar__toggle span {
  background: var(--gray-300);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--gray-400);
}

/* Mobile nav dropdown */
@media (max-width: 767px) {
  [data-theme="light"] .navbar__links {
    background: var(--dark);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
}

/* Hero */
[data-theme="light"] .hero__bg-grid {
  background-image:
    linear-gradient(to right, #d4d4d4 1px, transparent 1px),
    linear-gradient(to bottom, #d4d4d4 1px, transparent 1px);
  opacity: 0.4;
}

[data-theme="light"] .hero__glow--blue {
  background: rgba(0, 184, 255, 0.06);
}

[data-theme="light"] .hero__glow--green {
  background: rgba(0, 196, 111, 0.06);
}

[data-theme="light"] .hero__img {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hero__status-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 196, 111, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Buttons */
[data-theme="light"] .btn--white {
  background: #111111;
  color: #ffffff;
}

[data-theme="light"] .btn--white:hover {
  background: #333333;
}

[data-theme="light"] .btn--outline {
  color: #111111;
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn--outline:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn--glow {
  box-shadow: 0 0 20px rgba(0, 196, 111, 0.25);
}

[data-theme="light"] .btn--glow:hover {
  background: #111111;
  color: #ffffff;
}

/* Cards */
[data-theme="light"] .card {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card__icon {
  background: rgba(0, 0, 0, 0.04);
}

/* Experience */
[data-theme="light"] .experience {
  background: linear-gradient(to bottom, var(--black), var(--dark));
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .experience__highlight {
  border-color: rgba(0, 196, 111, 0.2);
}


/* ISO */
[data-theme="light"] .iso {
  background: linear-gradient(to bottom, var(--black), var(--dark));
  border-top-color: rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .iso__img {
  border-color: rgba(0, 184, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* CTA */
[data-theme="light"] .cta__bg {
  background: rgba(0, 196, 111, 0.04);
}

/* Terminal */
[data-theme="light"] .terminal {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal__bar {
  background: #e2e8f0;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .terminal__bar-title {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .terminal__body {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.55);
}

/* Footer */
[data-theme="light"] .footer {
  background: #e0e0e0;
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Cookie Banner */
[data-theme="light"] .cookie-banner {
  border-top-color: rgba(0, 196, 111, 0.2);
}

[data-theme="light"] .cookie-banner__btn {
  background: #111111;
  color: #ffffff;
}

[data-theme="light"] .cookie-banner__btn:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-hero {
  padding: 10rem 0 4rem;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #1a1a1a 1px, transparent 1px),
    linear-gradient(to bottom, #1a1a1a 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  pointer-events: none;
}

.legal-hero__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.legal-hero__title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.legal-hero__meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

.legal-body {
  padding: 5rem 0 6rem;
  background: var(--black);
}

.legal-body__inner {
  max-width: 780px;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.legal-section__title {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.legal-section p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-section ul li {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}

.legal-section ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.legal-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: var(--accent);
}

.legal-section strong {
  color: var(--gray-300);
  font-weight: 600;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.legal-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table td {
  padding: 0.75rem 1rem;
  color: var(--gray-400);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.6;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--accent);
}

/* Light theme adjustments for legal pages */
[data-theme="light"] .legal-table th {
  background: var(--dark);
}

[data-theme="light"] .legal-table td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .legal-section {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* sm (640px) */
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }

  .cookie-banner__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-banner__inner p {
    text-align: left;
  }
}

/* md (768px) */
@media (min-width: 768px) {
  .navbar__toggle { display: none; }

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

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* lg (1024px) */
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero__image {
    display: block;
  }

  .hero__status-badge {
    display: flex;
  }

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

  .iso__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .iso__image {
    order: -1;
  }
}

/* xl (1280px) */
@media (min-width: 1280px) {
  .hero__status-badge {
    display: flex;
  }
}

/* Mobile nav dropdown */
@media (max-width: 767px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem 1.5rem;
    gap: 0;
    animation: fadeIn 0.25s ease-out;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__link,
  .navbar__cta {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.625rem 1rem;
    border-left: 2px solid transparent;
  }

  .navbar__link:hover {
    border-left-color: var(--accent);
  }

  .navbar__cta {
    border: none;
    color: var(--accent);
    font-weight: 700;
    padding-left: 1rem;
  }
  .navbar__cta::before {
    content: '>> ';
  }
  .navbar__cta:hover {
    background: transparent;
    color: var(--accent);
  }
}
