:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #0c172a;
  --muted: #5b6b85;
  --line: rgba(14, 37, 72, 0.12);
  --primary: #136bff;
  --primary-2: #00a6ff;
  --accent: #6f7cff;
  --success: #13b981;
  --shadow: 0 24px 70px rgba(10, 37, 64, 0.13);
  --radius: 8px;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: rgba(11, 24, 42, 0.78);
  --surface-strong: #0d1a2c;
  --text: #f6f9ff;
  --muted: #a8b6cc;
  --line: rgba(208, 225, 255, 0.15);
  --primary: #55a2ff;
  --primary-2: #00c2ff;
  --accent: #9ba6ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 5%, rgba(43, 133, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, var(--bg) 100%);
  color: var(--text);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 5%, rgba(43, 133, 255, 0.24), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-full-logo {
  width: 168px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.footer-grid .brand-full-logo {
  width: 260px;
}

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

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(19, 107, 255, 0.08);
}

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

.icon-btn,
.menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 38px rgba(19, 107, 255, 0.25);
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 92px 0 68px;
}

.hero-cover {
  position: relative;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 14, 30, 0.3) 0%, rgba(7, 23, 45, 0.16) 40%, rgba(8, 28, 56, 0.04) 100%),
    linear-gradient(180deg, rgba(5, 14, 30, 0.05), rgba(5, 14, 30, 0.22)),
    url("assets/appjourney-hero-right.png") center / cover no-repeat fixed;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 38%, rgba(19, 107, 255, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 58%, rgba(0, 198, 255, 0.18), transparent 28rem);
}

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

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.hero h1 {
  margin-top: 18px;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 880px;
  color: white;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff, #88b8ff 48%, #35d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 24px;
  max-width: 670px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
  max-width: 620px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  align-self: start;
  margin-top: 24px;
}

.hero-visual img {
  width: 100%;
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.glass-note {
  position: absolute;
  left: -18px;
  bottom: 24px;
  width: min(260px, 50%);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 42px rgba(10, 37, 64, 0.16);
}

html[data-theme="dark"] .glass-note {
  background: rgba(9, 21, 38, 0.72);
  border-color: var(--line);
}

.glass-note strong { display: block; margin-bottom: 4px; }
.glass-note span { color: var(--muted); font-size: 14px; line-height: 1.45; }

section {
  padding: 82px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p,
.page-hero p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

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

.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  padding: 24px;
  box-shadow: 0 10px 34px rgba(10, 37, 64, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 107, 255, 0.38);
  box-shadow: var(--shadow);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 18px;
}

.service-icon {
  width: 58px;
  height: 58px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.86) 0 8%, transparent 9%),
    linear-gradient(135deg, var(--primary), var(--accent));
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  border-radius: 4px;
}

.icon-android::before,
.icon-ios::before {
  width: 19px;
  height: 30px;
  left: 19px;
  top: 14px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 8px;
}

.icon-android::after {
  width: 10px;
  height: 3px;
  left: 24px;
  top: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.72), 0 16px 0 rgba(255, 255, 255, 0.52);
}

.icon-ios::after {
  width: 5px;
  height: 5px;
  left: 27px;
  top: 37px;
  border-radius: 50%;
  background: white;
}

.icon-cross::before {
  width: 24px;
  height: 30px;
  left: 12px;
  top: 15px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.icon-cross::after {
  width: 24px;
  height: 16px;
  right: 9px;
  top: 23px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
}

.icon-web::before {
  width: 34px;
  height: 24px;
  left: 12px;
  top: 15px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 5px;
}

.icon-web::after {
  width: 22px;
  height: 2px;
  left: 18px;
  top: 45px;
  background: white;
  box-shadow: 5px -8px 0 -1px rgba(255, 255, 255, 0.64);
}

.icon-saas::before {
  width: 31px;
  height: 21px;
  left: 13px;
  top: 24px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.13);
}

.icon-saas::after {
  width: 22px;
  height: 10px;
  left: 18px;
  top: 13px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px 8px 3px 3px;
  border-bottom: 0;
}

.icon-ai::before {
  width: 28px;
  height: 28px;
  left: 15px;
  top: 15px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 50%, white 0 11%, transparent 12%),
    radial-gradient(circle at 30% 31%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 31%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%);
}

.icon-ai::after {
  width: 36px;
  height: 2px;
  left: 11px;
  top: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 9px 0 rgba(255, 255, 255, 0.48);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.process {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.step {
  position: relative;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-strong);
}

.step span {
  color: var(--primary);
  font-weight: 850;
  font-size: 13px;
}

.step strong {
  display: block;
  margin-top: 18px;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.shot {
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, rgba(19, 107, 255, 0.12), rgba(0, 198, 255, 0.1));
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-ui {
  height: 100%;
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
  display: grid;
  grid-template-rows: 36px 1fr;
  overflow: hidden;
}

.shot-bar {
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #7aa9ff; }

.shot-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}

.mock-list,
.mock-chart {
  border-radius: 8px;
  background: #eef6ff;
}

.mock-chart {
  background: linear-gradient(180deg, #eaf3ff, #fff);
  position: relative;
  overflow: hidden;
}

.mock-chart::after {
  content: "";
  position: absolute;
  inset: 35% 10% 18% 10%;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(135deg, rgba(19,107,255,0.22), rgba(0,198,255,0.5));
}

.portfolio-copy { padding: 22px; }

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 750;
}

.why-list {
  display: grid;
  gap: 12px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.check::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  margin-top: 2px;
  background: radial-gradient(circle at 50% 50%, white 0 23%, transparent 25%), linear-gradient(135deg, var(--success), var(--primary-2));
}

.testimonial-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.testimonials {
  display: flex;
  transition: transform 420ms ease;
}

.quote {
  flex: 0 0 100%;
  padding: 34px;
}

.quote p {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  color: var(--text);
}

.quote cite {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  padding: 0 34px 28px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0;
}

.price strong { font-size: 38px; }

.faq details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
}

.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin-top: 12px; color: var(--muted); line-height: 1.65; }

.cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(19, 107, 255, 0.94), rgba(0, 166, 255, 0.78)),
    var(--primary);
  color: white;
  overflow: hidden;
  position: relative;
}

.cta h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; }
.cta p { color: rgba(255, 255, 255, 0.84); margin-top: 14px; max-width: 680px; line-height: 1.65; }
.cta .btn { margin-top: 24px; color: var(--text); background: white; }

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  min-height: 46px;
  padding: 12px 13px;
  outline: none;
}

textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); }

.page-hero {
  padding: 76px 0 26px;
}

.page-hero p {
  margin-top: 18px;
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.band {
  border-top: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px repeat(4, minmax(120px, 1fr));
  gap: clamp(18px, 4vw, 52px);
  align-items: start;
}

.footer-grid-compact {
  max-width: 1060px;
}

.footer-brand-col {
  max-width: 260px;
}

.footer-grid strong {
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid .brand {
  margin: 0;
}

.footer-grid .brand-full-logo {
  width: 230px;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 107, 255, 0.36);
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.12);
}

.social-link img {
  width: 22px;
  height: 22px;
}

.footer-tagline {
  max-width: 1060px;
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 22px;
  background: linear-gradient(135deg, #126fb7, #168ee4);
  color: white;
  box-shadow: 0 -12px 34px rgba(18, 111, 183, 0.16);
}

.footer-bottom-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-weight: 700;
}

.footer-bottom-inner p {
  margin: 0;
  line-height: 1.45;
}

.footer-bottom-inner strong {
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-brand-col {
    grid-row: span 2;
  }

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

  .hero-cover {
    min-height: calc(100vh - 66px);
    background:
      linear-gradient(180deg, rgba(5, 14, 30, 0.72), rgba(5, 14, 30, 0.58)),
      url("assets/appjourney-hero-right.png") center / cover no-repeat;
  }

  .process,
  .grid.four,
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: 74px 16px auto 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: grid;
  }

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .nav { height: 66px; }
  .nav-links { top: 66px; }
  .nav-actions .btn { display: none; }
  .hero h1 { font-size: 46px; }
  .hero-metrics,
  .process,
  .grid.two,
  .grid.three,
  .grid.four,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    min-height: 96px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  .footer-brand-col {
    grid-row: auto;
  }

  .footer-grid .brand-full-logo {
    width: 220px;
  }

  .footer-tagline {
    text-align: left;
    line-height: 1.6;
  }

  .glass-note {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  section { padding: 58px 0; }
  .quote { padding: 24px; }
  .carousel-controls { padding: 0 24px 24px; }
}
