:root {
  --navy: #031f63;
  --navy-2: #062a7d;
  --blue: #0a9ff5;
  --blue-2: #0569dc;
  --ink: #0f172a;
  --muted: #5f6f89;
  --line: #d9e7f7;
  --soft: #f5f9ff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(3, 31, 99, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 48%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 231, 247, 0.75);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

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

.site-nav a,
.menu-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 15px;
  color: #1c2f52;
  font: inherit;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(10, 159, 245, 0.24);
  color: var(--navy);
  background: #edf7ff;
}

.menu-button {
  display: none;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(300px, 1fr);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(38px, 7vw, 92px) clamp(20px, 6vw, 86px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 12% -18% auto auto;
  width: 58vw;
  height: 58vw;
  max-width: 760px;
  max-height: 760px;
  content: "";
  background: radial-gradient(circle, rgba(10, 159, 245, 0.18), rgba(10, 159, 245, 0) 68%);
  pointer-events: none;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.logo-pulse {
  width: min(48vw, 520px);
  min-width: 260px;
  filter: drop-shadow(0 24px 38px rgba(3, 31, 99, 0.18));
  animation: logoPulse 4.8s ease-in-out infinite;
  transform-origin: center;
}

.hero-content,
.page-hero {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.project-status {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.94;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  color: #334766;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: clamp(28px, 8vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-showcase h2 {
  max-width: 680px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
}

.app-showcase p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
}

.google-play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 232px;
  min-height: 78px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  padding: 10px 18px;
  color: #1f2937;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(3, 31, 99, 0.1);
}

.google-play-badge:hover {
  border-color: #9aa8b8;
  transform: translateY(-1px);
}

.google-play-badge strong,
.google-play-badge small {
  display: block;
  line-height: 1;
}

.google-play-badge strong {
  margin-top: 3px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.google-play-badge small {
  color: #111827;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.google-play-badge.compact {
  width: 206px;
  min-height: 64px;
  box-shadow: none;
}

.google-play-badge.compact strong {
  font-size: 1.18rem;
}

.play-triangle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 36px;
  height: 42px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(145deg, #00a0ff 0 30%, #00d084 30% 52%, #ffd54f 52% 74%, #ff3d5a 74% 100%);
}

.google-play-badge.compact .play-triangle {
  width: 30px;
  height: 35px;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  box-shadow: 0 14px 34px rgba(5, 105, 220, 0.22);
}

.button.secondary,
.button.ghost {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}

.section,
.page-hero,
.project-list,
.contact-grid,
.admin-form,
.admin-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 78px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.about-grid h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.about-grid p,
.capability-band p,
.project-card p,
.contact-panel p {
  color: var(--muted);
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 92px;
}

.capability-band article,
.project-card,
.contact-form,
.contact-panel,
.admin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.capability-band article {
  padding: 26px;
}

.capability-band span {
  color: var(--blue);
  font-weight: 900;
}

.capability-band h3,
.project-card h2,
.contact-panel h2,
.admin-section h2 {
  color: var(--navy);
}

.page-hero {
  padding: clamp(56px, 10vw, 118px) 0 42px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

.project-list {
  display: grid;
  gap: 20px;
  padding-bottom: 86px;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 5vw, 42px);
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.project-card.featured {
  border-color: rgba(10, 159, 245, 0.42);
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
}

.project-status.upcoming {
  color: #0b7f7f;
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--navy);
  background: #e7f7fb;
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.82fr;
  gap: 22px;
  padding-bottom: 86px;
}

.contact-form,
.contact-panel,
.admin-section {
  padding: clamp(22px, 4vw, 34px);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid rgba(10, 159, 245, 0.35);
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d9ee;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(10, 159, 245, 0.2);
  border-color: var(--blue);
}

.admin-form {
  display: grid;
  gap: 20px;
}

.admin-login {
  width: min(520px, calc(100% - 40px));
  margin: 0 auto 86px;
}

#adminPanel {
  display: none;
}

.admin-unlocked #loginPanel {
  display: none;
}

.admin-unlocked #adminPanel {
  display: grid;
}

.admin-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 86px;
}

.admin-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.admin-tab {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  color: #1c2f52;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: var(--navy);
  border-color: rgba(10, 159, 245, 0.22);
  background: #edf7ff;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-section {
  box-shadow: none;
}

fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 18px;
}

legend {
  padding: 0 8px;
  color: var(--navy);
  font-weight: 900;
}

.seo-grid {
  display: grid;
  gap: 18px;
}

.admin-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  border: 1px dashed #b7d5f4;
  border-radius: 8px;
  background: var(--soft);
}

.admin-preview img {
  width: min(260px, 72vw);
}

.save-status {
  min-height: 24px;
  color: var(--blue-2);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #52647f;
  border-top: 1px solid var(--line);
  background: var(--white);
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero,
  .about-grid,
  .capability-band,
  .contact-grid,
  .app-showcase,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-tab {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-mark {
    min-height: 250px;
    order: -1;
  }

  .logo-pulse {
    width: min(74vw, 390px);
  }

  .project-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.3rem);
  }

  .section,
  .page-hero,
  .project-list,
  .contact-grid,
  .admin-form,
  .admin-shell {
    width: min(100% - 28px, 1120px);
  }

  .admin-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions,
  .admin-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .google-play-badge,
  .google-play-badge.compact {
    width: 100%;
  }
}
