:root {
  --bg-obsidian: #050a12;
  --bg-surface: #0b1422;
  --bg-glass: rgba(15, 25, 41, 0.72);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(16, 185, 129, 0.45);
  --mint-400: #34d399;
  --mint-500: #10b981;
  --cyan-400: #22d3ee;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

html[dir="ltr"] body {
  font-family: "Plus Jakarta Sans", "Cairo", sans-serif;
}

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* Ambient Background */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  top: -160px;
  inset-inline-start: -120px;
}

.orb-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: 10%;
  inset-inline-end: -180px;
  opacity: 0.22;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
}

/* Floating Pill Navbar */
.navbar-wrap {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding-top: 14px;
}

.navbar-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(9, 17, 30, 0.8);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mint-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--mint-400);
  background: rgba(16, 185, 129, 0.14);
}

.lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-400);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-glow {
  background: linear-gradient(135deg, var(--mint-400), var(--cyan-400));
  color: #050a12;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--border-glass);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-block {
  width: 100%;
  border-radius: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 64px 0 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--mint-400);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.2);
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.stat-pill span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Stage Terminal Card */
.stage-card {
  background: linear-gradient(160deg, rgba(16, 28, 46, 0.92), rgba(7, 13, 24, 0.96));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stage-dots {
  display: flex;
  gap: 7px;
}

.stage-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.stage-dots span:first-child {
  background: var(--mint-400);
}

.stage-dots span:nth-child(2) {
  background: var(--cyan-400);
}

.stage-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.stage-terminal {
  background: rgba(3, 7, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.term-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.term-prompt {
  color: var(--cyan-400);
  font-weight: 800;
}

.term-cmd {
  direction: ltr;
  font-family: monospace;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.term-line.success {
  color: var(--mint-400);
}

.term-line.info {
  color: var(--cyan-400);
}

.stage-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mod-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mod-label {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.mod-val {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 700;
}

/* Marquee */
.marquee-strip {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  animation: marquee 24s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mint-400);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
}

/* Flagship Portfolio: TWOMO */
.flagship-card {
  background: linear-gradient(145deg, rgba(13, 24, 41, 0.9), rgba(8, 15, 27, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.flagship-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: var(--mint-400);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyan-400);
  border: 1px solid var(--border-glass);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.flagship-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.flagship-desc {
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.flagship-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.ff-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ff-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--mint-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ff-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

.flagship-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flagship-stack span {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
}

/* Phone Mockup */
.flagship-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 295px;
  background: #060b14;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65);
}

.phone-notch {
  width: 96px;
  height: 18px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  margin: -14px auto 12px;
}

.phone-screen {
  background: linear-gradient(180deg, #0c1728 0%, #070e19 100%);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-logo-badge {
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--mint-400);
}

.app-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan-400);
}

.app-hero-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.app-mini-eyebrow {
  font-size: 0.72rem;
  color: var(--mint-400);
  font-weight: 700;
}

.app-hero-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.app-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.app-tab {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.app-tab.active {
  background: var(--mint-500);
  color: #050a12;
  border-color: transparent;
}

.app-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.route-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.route-cities {
  display: flex;
  flex-direction: column;
}

.route-cities strong {
  font-size: 0.84rem;
}

.route-cities span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.route-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--mint-400);
  white-space: nowrap;
}

/* Bento Grid Services */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.bento-card:hover {
  border-color: var(--mint-400);
  transform: translateY(-4px);
}

.bento-wide {
  grid-column: span 2;
}

.bento-accent {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bento-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--mint-400);
}

.bento-chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.bento-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.bento-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tags span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--mint-400);
}

/* Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.tl-step {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mint-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

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

/* Credentials Vault */
.cred-vault {
  background: linear-gradient(135deg, rgba(11, 37, 58, 0.7), rgba(9, 17, 30, 0.95));
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--mint-400);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-400);
}

.cred-vault-left h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cred-vault-left p {
  color: var(--text-secondary);
}

.cred-vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vault-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vault-cell.span-2 {
  grid-column: 1 / -1;
}

.vault-cell span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.vault-cell strong {
  font-size: 0.98rem;
  color: #ffffff;
}

.vault-cell .mono {
  font-variant-numeric: tabular-nums;
}

.vault-cell .active-txt {
  color: var(--mint-400);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.contact-copy p {
  color: var(--text-secondary);
  margin: 12px 0 26px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.c-card:hover {
  border-color: var(--mint-400);
}

.c-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.glass-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(5, 10, 18, 0.75);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mint-400);
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 22px;
}

.form-feedback.success {
  color: var(--mint-400);
}

.form-feedback.error {
  color: #f87171;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.footer-sep {
  margin-inline: 8px;
  color: var(--mint-400);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-layout,
  .flagship-card,
  .cred-vault,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .bento-wide,
  .bento-accent {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .navbar-pill {
    border-radius: 18px;
  }

  .nav-links {
    position: fixed;
    top: 86px;
    inset-inline: 4%;
    background: #0b1422;
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .bento-grid,
  .timeline-grid,
  .form-row,
  .cred-vault-grid,
  .stage-modules {
    grid-template-columns: 1fr;
  }

  .bento-wide,
  .bento-accent {
    grid-column: span 1;
  }

  .flagship-card,
  .cred-vault {
    padding: 24px;
  }
}
