/* Smart Flow Services — 2D Landing Page Styles (css/landing.css)
   Dark cyberpunk glass corporate aesthetic matching SmartFlow brand.
   Designed for fast SEO loading, fluid mobile/desktop scrolling, and zero WebGL overhead. */

:root {
  --bg-deep: #030712;
  --bg-card: rgba(10, 20, 35, 0.75);
  --bg-card-hover: rgba(16, 32, 54, 0.9);
  --border-cyan: rgba(102, 204, 240, 0.22);
  --border-cyan-glow: rgba(102, 204, 240, 0.6);
  --cyan-primary: #66ccf0;
  --cyan-glow: #38bdf8;
  --text-main: #f0f6fc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-gold: #fbbf24;
  --container-max: 1140px;
}

/* Day Mode UI Styling — Elegant transparent frosted glass instead of heavy dark blue */
[data-time="day"] {
  --bg-card: rgba(255, 255, 255, 0.12);
  --bg-card-hover: rgba(255, 255, 255, 0.18);
  --border-cyan: rgba(255, 255, 255, 0.28);
  --border-cyan-glow: rgba(255, 255, 255, 0.5);
  --text-muted: #e2e8f0;
  --text-dim: #cbd5e1;
}

[data-time="day"] .city-hud-header {
  background: rgba(15, 35, 60, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 32px rgba(10, 25, 45, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.1) !important;
}

[data-time="day"] .city-hero-card,
[data-time="day"] .city-info-card {
  background: rgba(15, 35, 60, 0.32) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 16px 48px rgba(10, 25, 45, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.08) !important;
}

[data-time="day"] .city-hero-card:hover,
[data-time="day"] .city-info-card:hover {
  background: rgba(15, 35, 60, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

[data-time="day"] .city-hud-footer {
  background: rgba(15, 35, 60, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-time="day"] .city-modal-backdrop {
  background: rgba(15, 30, 50, 0.45) !important;
}

[data-time="day"] .city-modal-dialog {
  background: linear-gradient(180deg, rgba(20, 45, 75, 0.65) 0%, rgba(15, 35, 60, 0.75) 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 24px 64px rgba(5, 15, 30, 0.5), 0 0 30px rgba(255, 255, 255, 0.1) !important;
}

[data-time="day"] .btn-lang-pill {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

[data-time="day"] .city-nav-btn {
  color: #e2e8f0 !important;
}

[data-time="day"] .city-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

[data-time="day"] .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #f8fafc !important;
}

[data-time="day"] .btn-ghost-muted {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-time="day"] .city-hud-footer-links a,
[data-time="day"] .city-hud-footer-links button {
  color: #cbd5e1 !important;
}

[data-time="day"] .city-hud-footer-links a:hover,
[data-time="day"] .city-hud-footer-links button:hover {
  color: #fff !important;
}

/* Page Reset & Base */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.landing-page {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 10% 85%, rgba(14, 165, 233, 0.07), transparent);
  color: var(--text-main);
  font-family: "Heebo", system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.landing-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Kicker */
.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--cyan-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.kicker::before {
  content: "// ";
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 40px 0;
}

/* Navbar */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-cyan);
  padding: 14px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand img {
  border-radius: 6px;
  border: 1px solid var(--border-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

.btn-tower-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-primary);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-tower-nav:hover {
  background: var(--cyan-primary);
  color: #030712;
  box-shadow: 0 0 15px rgba(102, 204, 240, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #66ccf0 0%, #38bdf8 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(102, 204, 240, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid var(--cyan-primary);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

.btn-tower-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed var(--cyan-primary);
  color: var(--cyan-primary);
  padding: 14px 24px;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-tower-hero:hover {
  background: rgba(102, 204, 240, 0.15);
  border-style: solid;
  transform: translateY(-2px);
}

/* Distant Tower Silhouette Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tower-silhouette-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 460px;
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.9) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(14, 165, 233, 0.1);
}

.tower-vector-bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0.25;
  pointer-events: none;
}

.tower-vector-bg svg {
  width: 80%;
  height: 90%;
}

.tower-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--cyan-primary);
}

.tower-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-primary);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 8px var(--cyan-primary)); }
}

.tower-card-content {
  position: relative;
  z-index: 2;
}

.tower-card-content h3 {
  font-size: 1.3rem;
  margin: 0 0 8px 0;
  color: var(--text-main);
}

.tower-card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

/* Services Grid */
.services-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 204, 240, 0.15);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(102, 204, 240, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--cyan-primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Proof & Portfolio Section */
.proof-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, rgba(10, 20, 35, 0.4) 100%);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

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

.project-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--cyan-primary);
}

.project-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--cyan-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-link:hover {
  text-decoration: underline;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.project-results {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.project-results li {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.project-results li::before {
  content: "✓";
  color: #10b981;
  font-weight: 700;
}

/* Process Section */
.process-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.step-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-primary);
  opacity: 0.7;
  margin-bottom: 12px;
}

.process-step-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
}

.process-step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}

.faq-accordion details {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 10px;
  padding: 18px 24px;
  transition: all 0.2s ease;
}

.faq-accordion details[open] {
  border-color: var(--border-cyan-glow);
  background: var(--bg-card-hover);
}

.faq-accordion summary {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  font-size: 1.3rem;
  color: var(--cyan-primary);
  transition: transform 0.2s ease;
}

.faq-accordion details[open] summary::after {
  content: "−";
}

.faq-accordion details p {
  margin: 14px 0 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* About & Authority Section */
.about-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.about-content h2 {
  font-size: 2rem;
  margin: 0 0 16px 0;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(102, 204, 240, 0.15);
  border-radius: 10px;
  padding: 20px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--cyan-primary);
}

.spec-val {
  color: #e2e8f0;
}

/* Contact Section */
.contact-section {
  padding: 90px 0 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(14, 165, 233, 0.12), transparent);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-field input,
.form-field textarea {
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid rgba(102, 204, 240, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(102, 204, 240, 0.3);
}

.field-error-msg {
  display: none;
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #f87171;
}

.form-field.has-error .field-error-msg {
  display: block;
}

.form-success-alert {
  display: none;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
}

.form-success-alert.visible {
  display: block;
}

.form-error-alert {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
}

.form-error-alert.visible {
  display: block;
}

/* Legal Footer */
.landing-footer {
  background: #02040a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 40px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin: 0 0 12px 0;
}

.footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin: 0 0 14px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* Mobile & Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .about-card,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .tower-silhouette-card {
    max-width: 100%;
    height: 320px;
  }

  .btn-tower-nav,
  .btn-tower-hero {
    display: none !important; /* Mobile stays on 2D landing only */
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; /* Keep header ultra clean on phones */
  }
  
  .hero-section {
    padding: 40px 0;
  }
  
  .services-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }
  
  .about-card,
  .contact-card {
    padding: 24px;
  }
}

/* ==========================================================================
   Single-Screen 2D City Landing Layout & Glass Modals
   ========================================================================== */

body.landing-city-single {
  margin: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

body.landing-city-single .city-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Glass HUD Overlay Layer */
.city-landing-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  padding: 24px 32px 20px 32px;
  box-sizing: border-box;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.city-landing-overlay > * {
  pointer-events: auto;
}

/* ==========================================================================
   Fly-in zoom transition → dive into the city, then full blackout fade
   ========================================================================== */
.city-zoom-flash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  background: #000;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.city-zooming {
  cursor: progress;
  overflow: hidden;
}

body.city-zooming .city-zoom-flash {
  opacity: 1;
  pointer-events: auto;
}

body.city-zooming .city-stage {
  transform-origin: 50% 65%;
  transform: scale(4.5) translateY(12%);
  filter: brightness(1.6) blur(3px);
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.3, 1),
    filter 0.7s ease-in;
}

body.city-zooming .city-landing-overlay {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Reverse Return Transition (arriving back from tower.html) */
body.city-return-init .city-zoom-flash {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

body.city-return-init .city-stage {
  transform-origin: 50% 65%;
  transform: scale(4.5) translateY(12%);
  filter: brightness(1.6) blur(3px);
  transition: none;
}

body.city-return-init .city-landing-overlay {
  opacity: 0;
  transform: scale(1.08);
  transition: none;
}

body.city-unzooming .city-zoom-flash {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.2, 0, 0.2, 1);
}

body.city-unzooming .city-stage {
  transform-origin: 50% 65%;
  transform: scale(1) translateY(0);
  filter: brightness(1) blur(0px);
  transition: transform 0.85s cubic-bezier(0.2, 0, 0.2, 1),
    filter 0.7s ease-out;
}

body.city-unzooming .city-landing-overlay {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.65s cubic-bezier(0.2, 0, 0.2, 1) 0.15s,
    transform 0.65s cubic-bezier(0.2, 0, 0.2, 1) 0.15s;
}

/* Top HUD Navigation Bar */
.city-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.city-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
}

.city-brand img {
  border-radius: 6px;
  border: 1px solid var(--border-cyan);
}

.city-nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-nav-btn:hover {
  background: rgba(102, 204, 240, 0.12);
  border-color: var(--border-cyan);
  color: var(--cyan-primary);
}

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

.btn-tower-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-primary);
  padding: 7px 16px;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
  transition: all 0.25s ease;
}

.btn-tower-pill:hover {
  background: var(--cyan-primary);
  color: #030712;
  box-shadow: 0 0 25px rgba(102, 204, 240, 0.6);
  transform: translateY(-1px);
}

.btn-lang-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lang-pill:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

/* Middle Floating Glass Cards Layout */
.city-hud-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  pointer-events: none;
}

.city-hud-middle > * {
  pointer-events: auto;
}

/* Primary Floating Hero Glass Card */
.city-hero-card {
  width: 100%;
  max-width: 540px;
  background: rgba(4, 9, 20, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(102, 204, 240, 0.06);
}

.city-hero-card .kicker {
  font-size: 0.78rem;
}

.city-hero-title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.22;
  margin: 6px 0 12px 0;
}

.city-hero-title .highlight {
  background: linear-gradient(135deg, #66ccf0 0%, #38bdf8 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.city-hero-desc {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 18px;
}

.city-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.city-hero-badges .badge {
  font-size: 0.78rem;
  padding: 4px 10px;
}

.city-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Center Floating 3D Tower Gateway Portal */
.city-tower-portal-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  margin: 0 auto;
}

.btn-tower-portal {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: rgba(3, 7, 18, 0.04);
  border: 2px solid rgba(102, 204, 240, 0.9);
  color: #fff;
  padding: 28px 64px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 0 60px rgba(14, 165, 233, 0.6), inset 0 0 35px rgba(102, 204, 240, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: portalPulse 3.5s infinite ease-in-out;
}

.btn-tower-portal:hover {
  background: rgba(102, 204, 240, 0.2);
  color: #fff;
  border-color: #cffafe;
  box-shadow: 0 0 90px rgba(102, 204, 240, 1), inset 0 0 45px rgba(102, 204, 240, 0.5);
  transform: translateY(-5px) scale(1.05);
}

.portal-pulse-icon {
  font-size: 2.5rem;
}

.portal-arrow {
  font-size: 2.2rem;
  transition: transform 0.2s ease;
}

.btn-tower-portal:hover .portal-arrow {
  transform: translateX(-4px);
}

html[lang="en"] .btn-tower-portal:hover .portal-arrow {
  transform: translateX(4px);
}

@keyframes portalPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.35), inset 0 0 10px rgba(102, 204, 240, 0.15);
    border-color: var(--cyan-primary);
  }
  50% {
    box-shadow: 0 0 35px rgba(102, 204, 240, 0.65), inset 0 0 20px rgba(102, 204, 240, 0.35);
    border-color: #66ccf0;
  }
}

/* Secondary Floating Highlights Glass Card (Opposite side) */
.city-info-card {
  width: 100%;
  max-width: 460px;
  background: rgba(4, 9, 20, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(102, 204, 240, 0.06);
}

.city-info-card .kicker {
  font-size: 0.78rem;
}

.city-info-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 4px 0 14px 0;
  color: var(--text-main);
  line-height: 1.3;
}

.city-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.city-info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.city-info-icon {
  font-size: 1.1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.city-info-item strong {
  display: block;
  font-size: 0.92rem;
  color: #f0f6fc;
  margin-bottom: 2px;
}

.city-info-item p {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.city-info-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.btn-ghost-cyan {
  background: rgba(102, 204, 240, 0.1);
  border: 1px solid rgba(102, 204, 240, 0.3);
  color: var(--cyan-primary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost-cyan:hover {
  background: rgba(102, 204, 240, 0.2);
  border-color: var(--cyan-primary);
  transform: translateY(-1px);
}

.btn-ghost-muted {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost-muted:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* Bottom Glass Bar */
.city-hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.city-hud-footer-links {
  display: flex;
  gap: 16px;
}

.city-hud-footer-links a,
.city-hud-footer-links button {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Keep the chat + WhatsApp FABs clear of the bottom HUD footer bar so they
   never cover the footer links (About / FAQ / Contact / Blog). */
body.landing-city-single .chat-widget {
  bottom: 76px;
}

.city-hud-footer-links a:hover,
.city-hud-footer-links button:hover {
  color: var(--cyan-primary);
}

/* ==========================================================================
   Full-Screen / Pop-Over Glass Modals
   ========================================================================== */

.city-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  box-sizing: border-box;
}

.city-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.city-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.city-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  background: linear-gradient(180deg, rgba(9, 20, 36, 0.95) 0%, rgba(4, 9, 20, 0.98) 100%);
  border: 1px solid var(--border-cyan-glow);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 30px rgba(102, 204, 240, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-modal.is-open .city-modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 4px 0 0 0;
  color: var(--text-main);
}

.modal-close-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.modal-body {
  overflow-y: auto;
  padding-inline-end: 8px;
  margin-inline-end: -8px;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--cyan-primary);
  border-radius: 3px;
}

/* Responsive adjustments for City Landing */
@media (max-width: 1200px) {
  .city-hud-middle {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    overflow-y: auto;
    max-height: 80vh;
    padding: 10px 0;
  }

  .city-hero-card,
  .city-info-card {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .city-nav-pills {
    display: none; /* Keep clean on tablets/mobile */
  }

  .city-landing-overlay {
    padding: 16px;
  }

  .city-hero-card,
  .city-info-card {
    max-width: 100%;
    padding: 20px 22px;
  }

  .btn-tower-pill {
    display: none !important;
  }

  .city-modal-dialog {
    max-height: 94vh;
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  .city-hero-title {
    font-size: 1.5rem;
  }

  .city-hero-desc {
    font-size: 0.92rem;
  }

  .city-hero-ctas .btn-primary,
  .city-hero-ctas .btn-tower-hero {
    width: 100%;
    text-align: center;
  }

  .city-hud-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* The footer stacks into two rows on phones — keep the FABs clear of it. */
  body.landing-city-single .chat-widget {
    bottom: 132px;
  }
}
