/* --- Root Design Tokens & Reset --- */
:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --accent: #06b6d4;
  --dark-bg: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #f8fafc;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --border-dark: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* --- Deployment / Status Banner --- */
.deployment-banner {
  background: #0b1120;
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  z-index: 1001;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.banner-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.banner-close:hover {
  color: #fff;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.6rem;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.btn-nav {
  padding: 0.5rem 1.2rem;
  background: var(--dark-bg);
  color: var(--text-light) !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-nav:hover {
  background: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.06), transparent 50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

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

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.trust-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

/* --- Terminal Visual --- */
.code-terminal {
  background: var(--dark-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.terminal-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid var(--border-dark);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  margin-left: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.terminal-body {
  padding: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 0.4rem;
}

.term-prompt {
  color: var(--accent);
  font-weight: bold;
}

.text-muted { color: var(--text-muted); }
.text-info { color: #38bdf8; }
.text-success { color: #34d399; font-weight: 600; }
.text-highlight { color: #fbbf24; font-weight: bold; margin-top: 0.5rem; }

/* --- Section Shared Styles --- */
.section {
  padding: 5rem 0;
}

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

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Services Grid --- */
.services-section {
  background: #f1f5f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-box {
  background: var(--bg-white);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 0.8rem;
}

.service-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.service-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.service-features {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.2rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* --- Metrics Section --- */
.metrics-section {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 4rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* --- Diagnostics Section --- */
.diagnostics-section {
  background: var(--bg-white);
}

.diag-card {
  max-width: 900px;
  margin: 0 auto;
  background: #0b1120;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.diag-header h3 {
  font-size: 1.3rem;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.diag-item {
  background: #1e293b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
}

.diag-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.diag-val {
  font-family: monospace;
  font-size: 0.95rem;
  color: #38bdf8;
  word-break: break-all;
}

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.diag-footer {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.2rem;
}

.diag-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.diag-status-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
}

.diag-tips {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.diag-tips code {
  background: #1e293b;
  color: #fbbf24;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* --- Team Section --- */
.team-section {
  background: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.team-card {
  background: #fff;
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.team-card .role {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-section {
  background: var(--bg-white);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.info-item strong {
  display: block;
  font-size: 0.95rem;
}

.info-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* --- Footer --- */
.site-footer {
  background: #0b1120;
  color: var(--text-muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.server-tag {
  color: #64748b;
  font-family: monospace;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
  }
}

