/* MENIXA Gateway - Official Enterprise Portal Stylesheet */
:root {
  --gw-bg: #07111f;
  --gw-surface: #0e1b2e;
  --gw-surface-hover: #14243b;
  --gw-border: rgba(56, 189, 248, 0.15);
  --gw-border-glow: rgba(56, 189, 248, 0.4);
  --gw-primary: #0284c7;
  --gw-primary-glow: rgba(2, 132, 199, 0.35);
  --gw-accent: #38bdf8;
  --gw-cyan: #06b6d4;
  --gw-text: #f8fafc;
  --gw-text-muted: #94a3b8;
  --gw-card-bg: rgba(14, 27, 46, 0.7);
}

html[data-theme="light"] {
  --gw-bg: #f8fafc;
  --gw-surface: #ffffff;
  --gw-surface-hover: #f1f5f9;
  --gw-border: rgba(14, 165, 233, 0.2);
  --gw-border-glow: rgba(14, 165, 233, 0.5);
  --gw-primary: #0284c7;
  --gw-primary-glow: rgba(2, 132, 199, 0.2);
  --gw-accent: #0369a1;
  --gw-cyan: #0891b2;
  --gw-text: #0f172a;
  --gw-text-muted: #64748b;
  --gw-card-bg: rgba(255, 255, 255, 0.85);
}

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

body {
  font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--gw-bg);
  color: var(--gw-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background digital ambient glow */
.gw-ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gw-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.gw-orb-1 {
  width: 500px;
  height: 500px;
  background: #0284c7;
  top: -150px;
  right: -100px;
}

.gw-orb-2 {
  width: 450px;
  height: 450px;
  background: #06b6d4;
  bottom: 10%;
  left: -150px;
}

.gw-orb-3 {
  width: 350px;
  height: 350px;
  background: #6366f1;
  top: 40%;
  right: 20%;
  opacity: 0.15;
}

/* Top Navbar */
.gw-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gw-border);
  padding: 12px 24px;
}

html[data-theme="light"] .gw-navbar {
  background: rgba(255, 255, 255, 0.85);
}

.gw-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.gw-brand-logo {
  width: 34px;
  height: auto;
  display: block;
}

.gw-brand-title {
  display: flex;
  flex-direction: column;
}

.gw-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gw-text);
  line-height: 1.1;
}

.gw-brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--gw-accent);
  letter-spacing: 0.02em;
}

.gw-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: inherit;
}

.gw-btn-primary {
  background: linear-gradient(135deg, #0284c7, #025680);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--gw-primary-glow);
}

.gw-btn-primary:hover {
  background: linear-gradient(135deg, #0396e2, #026698);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--gw-primary-glow);
}

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

.gw-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gw-border-glow);
  transform: translateY(-1px);
}

.gw-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gw-border);
  color: var(--gw-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gw-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gw-border-glow);
}

/* Main Content Shell */
.gw-main {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Hero Section */
.gw-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 64px;
}

.gw-slogan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--gw-accent);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.gw-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: gwPulse 2s infinite;
}

@keyframes gwPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.gw-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .gw-hero-title {
  background: linear-gradient(135deg, #0f172a 30%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gw-hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--gw-text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 500;
  line-height: 1.6;
}

.gw-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Flagship Products Section */
.gw-section {
  margin-bottom: 72px;
}

.gw-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.gw-section-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gw-accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.gw-section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.gw-section-desc {
  font-size: 15px;
  color: var(--gw-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* High-Tech Product Cards Grid */
.gw-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gw-card {
  background: var(--gw-card-bg);
  border: 1px solid var(--gw-border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.gw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gw-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gw-card:hover {
  transform: translateY(-4px);
  border-color: var(--gw-border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.gw-card:hover::before {
  opacity: 1;
}

.gw-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gw-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gw-accent);
}

.gw-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gw-badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gw-badge-ai {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.gw-badge-tech {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.gw-badge-beta {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.gw-card-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--gw-text);
}

.gw-card-desc {
  font-size: 13.5px;
  color: var(--gw-text-muted);
  line-height: 1.6;
}

/* Contact & Enterprise Inquiries Section */
.gw-contact-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(14, 27, 46, 0.8));
  border: 1px solid var(--gw-border-glow);
  border-radius: 22px;
  padding: 46px 32px;
  text-align: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
  max-width: 860px;
  margin: 0 auto 40px;
}

html[data-theme="light"] .gw-contact-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(255, 255, 255, 0.95));
}

.gw-contact-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gw-accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.gw-contact-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.gw-contact-desc {
  font-size: 15px;
  color: var(--gw-text-muted);
  max-width: 640px;
  margin: 0 auto 24px;
}

.gw-contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border-glow);
  border-radius: 14px;
  color: var(--gw-text);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.gw-contact-email-btn:hover {
  border-color: var(--gw-accent);
  color: var(--gw-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gw-primary-glow);
}

.gw-email-icon {
  width: 22px;
  height: 22px;
  color: var(--gw-accent);
}

/* Footer */
.gw-footer {
  border-top: 1px solid var(--gw-border);
  padding: 36px 24px;
  background: rgba(7, 17, 31, 0.9);
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .gw-footer {
  background: rgba(255, 255, 255, 0.9);
}

.gw-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.gw-footer-copy {
  font-size: 13px;
  color: var(--gw-text-muted);
}

.gw-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.gw-footer-link {
  color: var(--gw-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gw-footer-link:hover {
  color: var(--gw-accent);
}
