:root {
  --bg: #07111f;
  --bg-soft: #0d1a2f;
  --surface: rgba(10, 24, 45, 0.72);
  --surface-strong: rgba(14, 30, 56, 0.92);
  --text: #f2f7ff;
  --muted: #98acc7;
  --line: rgba(129, 177, 255, 0.18);
  --brand: #208dff;
  --brand-strong: #0d6bff;
  --accent: #73d5ff;
  --accent-warm: #b7f3ff;
  --navy: #0a2247;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(28, 135, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(115, 213, 255, 0.2), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(22, 92, 214, 0.2), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #08192a 52%, #050d18 100%);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  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: 72px 72px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
  pointer-events: none;
  opacity: 0.22;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  position: relative;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(5, 13, 24, 0.56);
  border-bottom: 1px solid rgba(150, 197, 255, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.18rem;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem;
  box-shadow: 0 10px 30px rgba(32, 141, 255, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.8rem 1rem;
  color: var(--muted);
  border-radius: 999px;
  transition: 0.3s ease;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  transition: 0.3s ease;
}

/* ── HERO ── */
.hero,
.page-hero {
  position: relative;
  padding: 7rem 0 4rem;
}

.hero-home {
  padding-top: 8rem;
}

.hero-grid,
.solution-grid,
.demo-grid,
.contact-grid,
.detail-grid,
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.12fr 0.88fr;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1.05;
  max-width: 14ch;
  font-weight: 700;
}

.page-hero h1 {
  max-width: 16ch;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-warm);
}

.lead,
.section-heading p,
.hero-copy > p,
.detail-copy p,
.about-grid p,
.contact-info p,
.portfolio-panel p,
.case-study p,
.problem-card p,
.service-card p,
.testimonial-card p,
.timeline-step p,
.detail-card p,
.value-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.hero-actions,
.cta-actions,
.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ── BUTTONS ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand-strong) 100%);
  color: #031222;
  box-shadow: 0 18px 40px rgba(32, 141, 255, 0.3);
}

.button-primary:hover {
  box-shadow: 0 22px 50px rgba(32, 141, 255, 0.45);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4f);
  color: #fff;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.28);
}

.button-whatsapp:hover {
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.42);
}

.button-ghost {
  background: transparent;
  border-color: rgba(115, 213, 255, 0.35);
  color: var(--accent);
}

.button-ghost:hover {
  background: rgba(115, 213, 255, 0.08);
}

/* ── LISTS ── */
.hero-points,
.feature-list,
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.hero-points li,
.feature-list li,
.service-card li {
  position: relative;
  padding-left: 1.6rem;
  color: #d9e7fb;
}

.hero-points li::before,
.feature-list li::before,
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand) 100%);
  box-shadow: 0 0 18px rgba(115, 213, 255, 0.5);
}

/* ── GLASS / CARDS ── */
.glass-card,
.problem-card,
.service-card,
.testimonial-card,
.case-study,
.value-card,
.metrics-grid article,
.contact-card,
.info-stack article,
.portfolio-panel,
.commitment-card {
  background: linear-gradient(180deg, rgba(17, 32, 58, 0.78), rgba(10, 22, 40, 0.76));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.orbital-card {
  position: relative;
  padding: 1.5rem;
  min-height: 430px;
  overflow: hidden;
}

.orbital-card::before,
.orbital-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(115, 213, 255, 0.14);
}

.orbital-card::before {
  width: 280px;
  height: 280px;
  right: -30px;
  top: 70px;
}

.orbital-card::after {
  width: 420px;
  height: 420px;
  right: -100px;
  top: 0;
}

.pulse-line {
  height: 150px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(115, 213, 255, 0.12) 30%, rgba(13, 107, 255, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  position: relative;
}

.pulse-line::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 10%;
  width: 72%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--brand), transparent);
  box-shadow: 0 0 26px rgba(32, 141, 255, 0.65);
  animation: pulse 4s linear infinite;
}

@keyframes pulse {
  0% { transform: translateX(-6%); opacity: 0.4; }
  50% { transform: translateX(4%); opacity: 1; }
  100% { transform: translateX(-6%); opacity: 0.4; }
}

/* ── GRIDS ── */
.stat-row,
.dashboard-grid,
.metrics-grid,
.problem-grid,
.service-grid,
.testimonial-grid,
.footer-grid,
.values-grid,
.case-study-grid,
.commitment-grid {
  display: grid;
  gap: 1.25rem;
}

.stat-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.stat-label,
.chip,
.dashboard-grid span,
.case-label,
.case-metrics span,
.metrics-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-row strong,
.dashboard-grid strong,
.metrics-grid strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.chip {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid article,
.metrics-grid article {
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── SECTIONS ── */
.section {
  padding: 2.5rem 0 5rem;
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 10% 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115, 213, 255, 0.36), transparent);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.detail-copy h2,
.about-grid h2,
.contact-grid h2,
.case-study h2 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
}

.problem-grid,
.service-grid,
.testimonial-grid,
.values-grid,
.case-study-grid,
.commitment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-card,
.service-card,
.testimonial-card,
.value-card,
.case-study,
.contact-card,
.detail-card,
.portfolio-panel,
.commitment-card {
  padding: 1.7rem;
}

.service-card,
.case-study {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.case-study::before {
  content: "";
  position: absolute;
  inset: auto -10% -24% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(115, 213, 255, 0.22), transparent 70%);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  color: #031222;
  font-weight: 800;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  font-size: 1.1rem;
}

.service-card h3,
.problem-card h3,
.testimonial-card strong,
.value-card h3,
.detail-card h3,
.contact-info h3,
.footer-grid h3,
.commitment-card h3 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.22rem;
}

.service-card a {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--accent-warm);
  font-weight: 700;
  transition: 0.2s ease;
}

.service-card a:hover {
  color: var(--accent);
}

.solution-grid,
.demo-grid,
.contact-grid,
.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
  padding: 1.4rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1rem 0;
}

.timeline-step + .timeline-step {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-step span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-warm);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.timeline-step h3 {
  font-family: "Playfair Display", serif;
  margin: 0 0 0.4rem;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

/* ── VIDEO DEMO ── */
.video-placeholder {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.video-placeholder:hover {
  border-color: rgba(115, 213, 255, 0.4);
}

.video-placeholder .upload-hint {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.play-button {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 22px 40px rgba(32, 141, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.video-placeholder:hover .play-button {
  transform: scale(1.08);
  box-shadow: 0 28px 50px rgba(32, 141, 255, 0.5);
}

.play-button::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-36%, -50%);
  border-left: 24px solid #031222;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.video-wrapper {
  width: 100%;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  display: block;
}

.video-change-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* ── FINAL CTA ── */
.final-cta {
  padding-bottom: 6rem;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(21, 69, 146, 0.86), rgba(7, 24, 43, 0.94));
  border: 1px solid rgba(146, 203, 255, 0.2);
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

/* ── COMMITMENT SECTION ── */
.commitment-card {
  position: relative;
  overflow: hidden;
}

.commitment-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -24% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(115, 213, 255, 0.15), transparent 70%);
}

.commitment-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  background: rgba(115, 213, 255, 0.1);
  border: 1px solid rgba(115, 213, 255, 0.2);
}

/* ── FOOTER ── */
.site-footer {
  padding: 1rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 2rem 0;
}

.footer-grid a,
.footer-grid p {
  color: var(--muted);
  margin: 0.45rem 0;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── DETAIL ── */
.detail-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.detail-copy h2 {
  font-family: "Playfair Display", serif;
}

.case-metrics,
.info-stack,
.contact-form {
  display: grid;
  gap: 1rem;
}

/* ── CONTACT ── */
.contact-form label {
  display: grid;
  gap: 0.55rem;
  color: #dce9fb;
  font-weight: 600;
  font-size: 0.93rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 24px) calc(50% - 2px) / 8px 8px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 18px) calc(50% - 2px) / 8px 8px no-repeat,
    #0d1a2f;
  padding-right: 3rem;
  color: var(--text);
}

.contact-form select option {
  color: #eaf3ff;
  background-color: #0d1a2f;
}

.modal-form select {
  background-color: #0d1a2f;
  color: var(--text);
}

.modal-form select option {
  background-color: #0d1a2f;
  color: #eaf3ff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(115, 213, 255, 0.45);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(214, 228, 247, 0.45);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.info-stack article {
  padding: 1.3rem;
}

.info-stack article h3 {
  font-family: "Playfair Display", serif;
}

.contact-direct {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-direct-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, rgba(17, 32, 58, 0.78), rgba(10, 22, 40, 0.76));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease;
}

.contact-direct-card:hover {
  border-color: rgba(115, 213, 255, 0.35);
}

.contact-direct-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-direct-icon.wa {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.contact-direct-icon.em {
  background: rgba(32, 141, 255, 0.15);
  border: 1px solid rgba(32, 141, 255, 0.25);
}

.contact-direct-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-direct-text span {
  font-weight: 700;
  font-size: 0.98rem;
}

/* ── PORTFOLIO ── */
.portfolio-panel {
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
  background: rgba(115, 213, 255, 0.1);
  border-color: rgba(115, 213, 255, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 32, 58, 0.78), rgba(10, 22, 40, 0.76));
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  aspect-ratio: 16 / 10;
}

.gallery-item:hover {
  border-color: rgba(115, 213, 255, 0.35);
  transform: translateY(-3px);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 24, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.gallery-item-cat {
  font-size: 0.78rem;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.gallery-item-delete {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.gallery-item:hover .gallery-item-delete {
  opacity: 1;
}

.gallery-item-type-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.gallery-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.gallery-empty h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 24, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: linear-gradient(180deg, rgba(17, 32, 58, 0.98), rgba(10, 22, 40, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  transform: translateY(24px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-form {
  display: grid;
  gap: 1rem;
}

.modal-form label {
  display: grid;
  gap: 0.45rem;
  color: #dce9fb;
  font-weight: 600;
  font-size: 0.9rem;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  outline: none;
  border-color: rgba(115, 213, 255, 0.45);
}

.modal-form select option {
  background: #0d1a2f;
}

.upload-drop-zone {
  border: 2px dashed rgba(115, 213, 255, 0.28);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
  border-color: rgba(115, 213, 255, 0.55);
  background: rgba(115, 213, 255, 0.06);
}

.upload-drop-zone .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.upload-drop-zone p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-drop-zone strong {
  color: var(--accent);
}

.upload-preview {
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  max-height: 160px;
}

.upload-preview img,
.upload-preview video {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-info {
  margin-top: 1rem;
  text-align: center;
}

.lightbox-info h3 {
  font-family: "Playfair Display", serif;
  margin: 0 0 0.25rem;
}

.lightbox-info span {
  font-size: 0.82rem;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: grid;
  gap: 0.75rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(180deg, rgba(17, 32, 58, 0.98), rgba(10, 22, 40, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  font-size: 0.92rem;
  font-weight: 600;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-left: 3px solid #25d366; }
.toast.error { border-left: 3px solid #ff5050; }
.toast.info { border-left: 3px solid var(--accent); }

/* ── SERVICE ANCHOR NAV ── */
.service-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-anchor-nav a {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.service-anchor-nav a:hover {
  color: var(--text);
  background: rgba(115, 213, 255, 0.1);
  border-color: rgba(115, 213, 255, 0.3);
}

/* ── SERVICE STAT STACK (detail cards) ── */
.service-stat-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.service-stat {
  padding: 0.9rem 1rem;
  background: rgba(115, 213, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(115, 213, 255, 0.15);
}

.service-stat strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.service-stat span {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.15rem;
  display: block;
}

/* ── CAPABILITIES GRID ── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.cap-group {
  background: linear-gradient(180deg, rgba(17, 32, 58, 0.78), rgba(10, 22, 40, 0.76));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cap-group h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--accent-warm);
}

.cap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.cap-group li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cap-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

@media (max-width: 980px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .service-anchor-nav {
    gap: 0.4rem;
  }
}

/* ── REVEAL ANIMATIONS ── */
.reveal,
.reveal-delay,
.reveal-delay-2 {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay {
  transition-delay: 0.14s;
}

.reveal-delay-2 {
  transition-delay: 0.28s;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-grid,
  .solution-grid,
  .demo-grid,
  .contact-grid,
  .detail-grid,
  .about-grid,
  .cta-banner,
  .footer-grid,
  .problem-grid,
  .service-grid,
  .testimonial-grid,
  .values-grid,
  .case-study-grid,
  .metrics-grid,
  .commitment-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-home {
    padding-top: 6.5rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(6, 15, 27, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero,
  .page-hero {
    padding: 6rem 0 2.4rem;
  }

  .section {
    padding: 2rem 0 4rem;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .brand span {
    display: none;
  }

  .orbital-card {
    min-height: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 1.5rem;
  }

  .cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
