/* ============================================
   AFTER DARK SYSTEMS — DESIGN SYSTEM v2
   Dark Cybersecurity Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Barlow:wght@300;400;500;600&display=swap');

/* === DESIGN TOKENS === */
:root {
  --bg-base:       #070b14;
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0d1117;
  --bg-card:       #111827;
  --bg-card-hover: #141e2e;
  --bg-elevated:   #1a2235;

  --cyan:          #00d4ff;
  --cyan-dim:      rgba(0, 212, 255, 0.1);
  --cyan-border:   rgba(0, 212, 255, 0.25);
  --blue:          #0066ff;
  --blue-dim:      rgba(0, 102, 255, 0.12);
  --green:         #00ff88;
  --green-dim:     rgba(0, 255, 136, 0.12);
  --orange:        #ff6b35;
  --orange-dim:    rgba(255, 107, 53, 0.12);
  --purple:        #8b5cf6;

  --text-primary:  #f0f6fc;
  --text-secondary:#8899aa;
  --text-muted:    #4a5568;

  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-visible:rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 212, 255, 0.3);

  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 40px rgba(0, 212, 255, 0.1);
  --shadow-glow-strong: 0 0 60px rgba(0, 212, 255, 0.18);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Barlow', -apple-system, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --nav-height:    72px;
  --section-pad:   96px;
  --container-max: 1200px;

  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --transition:    0.2s var(--ease);
  --transition-slow: 0.4s var(--ease);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { color: var(--text-secondary); line-height: 1.7; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--font-mono); }

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad) 0; }

.section-alt { background: var(--bg-secondary); }
.section-dark { background: var(--bg-base); }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.875rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.875rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-visible) 50%, transparent);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.97);
  border-bottom-color: var(--border-visible);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 0.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0,102,255,0.4);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Login btn */
.btn-nav {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-visible);
  border-radius: 6px;
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
  margin-left: 0.5rem;
  display: inline-block;
}

.btn-nav:hover {
  color: var(--cyan);
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav-links, .btn-nav { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(7,11,20,0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.125rem;
    backdrop-filter: blur(24px);
  }

  .nav-links.open a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--bg-base);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(rgba(0,212,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 22s linear infinite;
  will-change: transform;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(64px); }
}

/* Orbs: translate-only animation so the GPU-cached blur layer is never invalidated.
   Scale was the killer — blur + scale forces a repaint every frame. */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,102,255,0.22), transparent 70%);
  top: -150px; left: -150px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(0,212,255,0.18), transparent 70%);
  bottom: -50px; right: 5%;
  animation: orbFloat2 14s ease-in-out infinite;
  animation-delay: -6s;
}
.hero-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  top: 40%; right: 25%;
  animation: orbFloat1 18s ease-in-out infinite;
  animation-delay: -10s;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(25px, -35px); }
  66%       { transform: translate(-20px, 25px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-25px, 35px); }
  66%       { transform: translate(20px, -25px); }
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    transparent, transparent 3px,
    rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(0,255,136,0); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,102,255,0.3);
  border: 1px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,102,255,0.45);
  color: #fff;
}

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

.btn-cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}
.btn-cyan:hover {
  background: rgba(0,212,255,0.18);
  box-shadow: 0 0 24px rgba(0,212,255,0.2);
  color: var(--cyan);
}

.btn-sm  { font-size: 0.8rem;  padding: 0.5rem 1rem;   border-radius: 6px; }
.btn-lg  { font-size: 1rem;    padding: 0.875rem 2rem; }
.btn-xl  { font-size: 1.05rem; padding: 1rem 2.25rem;  }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.125rem;
  flex-shrink: 0;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.625rem; font-weight: 600; }
.card p  { font-size: 0.875rem; line-height: 1.65; }

/* === BADGES & TAGS === */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  white-space: nowrap;
}

.badge-live   { color: var(--green);  border-color: rgba(0,255,136,0.3);   background: rgba(0,255,136,0.08); }
.badge-soon   { color: var(--orange); border-color: rgba(255,107,53,0.3);  background: rgba(255,107,53,0.08); }
.badge-lab    { color: var(--text-muted); border-color: var(--border-subtle); background: transparent; }
.badge-oss    { color: var(--purple); border-color: rgba(139,92,246,0.3);  background: rgba(139,92,246,0.08); }

/* === FEATURE PILLARS === */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.pillar {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition);
  position: relative;
}

.pillar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.pillar:hover { background: var(--bg-card-hover); }
.pillar:hover::after { opacity: 1; }

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  display: block;
}

.pillar h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.pillar p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px)  { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }

/* === APPLIANCE ANNOUNCEMENT === */
.appliance-section {
  position: relative;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.appliance-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(0,102,255,0.07) 0%, transparent 65%);
}

.appliance-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.appliance-announce {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.appliance-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.appliance-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.vs-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.vs-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.vs-check { color: var(--green); flex-shrink: 0; margin-top: 0.05rem; }

.market-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem;
}

.market-box-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.market-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all var(--transition);
}

.market-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.market-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.market-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .appliance-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* === PRODUCT CARDS === */
.products-category { margin-bottom: 3.5rem; }

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.category-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* === SERVICES PAGE === */
.page-hero {
  background: var(--bg-base);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.service-card > p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.service-list li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
}

.service-list li::before {
  content: '→';
  color: var(--cyan);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
}

/* Expertise tags */
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.expertise-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Cloud row */
.cloud-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cloud-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  border: 1px solid var(--border-visible);
  background: var(--bg-card);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
}

.cloud-chip:hover {
  border-color: var(--cyan-border);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* === OPEN SOURCE === */
.oss-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.oss-hero-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.oss-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all var(--transition);
}

.oss-card:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 0 30px rgba(139,92,246,0.08);
}

.oss-card-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.oss-card p { font-size: 0.825rem; }

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.5rem;
}

.contact-form-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrap > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color var(--transition);
}

.contact-info-card:hover { border-color: var(--border-accent); }

.contact-info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* === FORMS === */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-visible);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-select {
  cursor: pointer;
  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='%238899aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.75rem;
}

.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

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

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Alert messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.alert-success {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--green);
}

.alert-error {
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.25);
  color: var(--orange);
}

/* === TRUST / CLOUD LOGOS === */
.trust-section { padding: 48px 0; border-top: 1px solid var(--border-subtle); }

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.4rem 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-card);
  transition: all var(--transition);
}

.trust-logo:hover {
  color: var(--text-secondary);
  border-color: var(--border-visible);
}

/* === CTA SECTION === */
.cta-section {
  position: relative;
  background: var(--bg-base);
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.1) 0%, transparent 70%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.125rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* === RESPONSIVE SECTION PADDING === */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-content { padding: 40px 0; }
  .hero-stats { gap: 1.5rem; }

  .page-hero { padding: 110px 0 60px; }
  .page-hero h1 { font-size: 2.25rem; }
}
