:root {
  --bg: #07070f;
  --bg-surface: #0d0d1a;
  --bg-card: #111120;
  --accent: #ff6b1a;
  --accent-dim: rgba(255, 107, 26, 0.15);
  --accent-border: rgba(255, 107, 26, 0.3);
  --text: #eeeef8;
  --text-muted: #7777a0;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }
a { text-decoration: none; color: inherit; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 100px 0; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Glow blobs ── */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7,7,15,0.92) 0%, rgba(7,7,15,0) 100%);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

#nav.scrolled {
  background: rgba(7, 7, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), #ff9a4a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 107, 26, 0.4);
}

.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); background: var(--border); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 0 20px rgba(255, 107, 26, 0.3) !important;
}

.nav-cta:hover { opacity: 0.9 !important; box-shadow: 0 0 30px rgba(255, 107, 26, 0.5) !important; }

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

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(255, 107, 26, 0.12);
  top: -100px;
  right: -200px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(100, 60, 255, 0.08);
  bottom: 0;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

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

.hero-title { margin-bottom: 1.5rem; }
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 107, 26, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(255, 107, 26, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── GRID DECORATION ── */
.hero-grid {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.4;
}

.hero-grid svg { width: 500px; height: 500px; }

/* ── SECTION HEADER ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title { margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; max-width: 540px; }

/* ── ABOUT ── */
#about {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

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

.about-visual {
  position: relative;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

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

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat { text-align: center; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.about-text p { margin-bottom: 1.2rem; font-size: 1.05rem; }

/* ── SERVICES ── */
#services { position: relative; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 26, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.95rem; line-height: 1.6; }

/* ── PORTAL CTA ── */
#portal-cta {
  padding: 80px 0;
  background: var(--bg-surface);
}

.portal-cta-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.portal-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.portal-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 107, 26, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.portal-cta-text h2 { margin-bottom: 0.6rem; }

/* ── CONTACT ── */
#contact { position: relative; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  margin-top: 3.5rem;
  align-items: start;
}

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

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

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.95rem; color: var(--text); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-border);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

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

.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1rem; }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── PORTAL PAGE ── */
.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.portal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 15, 0.8);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.portal-blob {
  width: 500px;
  height: 500px;
  background: rgba(255, 107, 26, 0.07);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.portal-heading {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.portal-heading h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.6rem; }
.portal-heading p { font-size: 1rem; }

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.system-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(255, 107, 26, 0.12);
}

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

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

.system-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.system-name { font-size: 1.3rem; font-weight: 700; }
.system-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.system-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.system-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.system-card.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.system-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

/* ── RESPONSIVE ── */
/* ── LANG SWITCH ── */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.lang-opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
}

.lang-opt.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(255,107,26,0.4);
}

.lang-opt:not(.active):hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  section { padding: 70px 0; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portal-cta-inner { flex-direction: column; text-align: center; padding: 2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-grid { display: none; }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
  }
  .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
  }
}

@media (min-width: 901px) {
  .mobile-menu-btn { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .nav-inner { padding: 0.9rem 1.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
  .portal-cta-inner { padding: 1.5rem; }
}
