:root {
  --bg: #f3f6fb;
  --bg-elevated: #ffffff;
  --bg-alt: #e7eef8;
  --text: #0f1724;
  --text-muted: #5b6b82;
  --border: rgba(15, 23, 36, 0.1);
  --accent: #1a5fff;
  --accent-ink: #0f3fcc;
  --accent-soft: rgba(26, 95, 255, 0.12);
  --accent-glow: rgba(26, 95, 255, 0.28);
  --copper: #3d8bfd;
  --hero-orb-a: rgba(26, 95, 255, 0.22);
  --hero-orb-b: rgba(61, 139, 253, 0.16);
  --phone-shell: #121a2a;
  --phone-screen: #0a1220;
  --on-accent: #f5f8ff;
  --shadow: 0 24px 60px rgba(15, 40, 90, 0.12);
  --radius: 18px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 64px;
  --mobile-cta-h: 72px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-elevated: #0e1524;
  --bg-alt: #0b1220;
  --text: #e8eefc;
  --text-muted: #93a4c0;
  --border: rgba(232, 238, 252, 0.1);
  --accent: #4d8bff;
  --accent-ink: #2c65e8;
  --accent-soft: rgba(77, 139, 255, 0.14);
  --accent-glow: rgba(77, 139, 255, 0.24);
  --copper: #7eb0ff;
  --hero-orb-a: rgba(77, 139, 255, 0.2);
  --hero-orb-b: rgba(61, 139, 253, 0.12);
  --phone-shell: #152036;
  --phone-screen: #081018;
  --on-accent: #061018;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

[data-theme="dark"] .grain {
  opacity: 0.06;
  mix-blend-mode: soft-light;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--copper)));
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle,
.nav-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.theme-icon::before {
  content: "◐";
  font-size: 1rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

body.nav-open .nav {
  display: flex;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body.nav-open .nav a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  min-height: auto;
  padding: 1.75rem clamp(1rem, 4vw, 3rem) 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 12s ease-in-out infinite;
}

.hero-orb-a {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -10%;
  right: 5%;
  background: var(--hero-orb-a);
}

.hero-orb-b {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  bottom: 5%;
  left: -5%;
  background: var(--hero-orb-b);
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 40%, transparent),
    transparent 70%
  );
  filter: blur(30px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 268px);
  height: 548px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #202638, #0d1120);
  box-shadow:
    0 40px 80px -30px rgba(20, 30, 80, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: phone-float 6s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0d1120;
  border-radius: 14px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f1f3fb);
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-top {
  padding: 34px 20px 14px;
  background: linear-gradient(140deg, var(--accent), var(--accent-ink));
  color: #fff;
}

.app-top .hi {
  font-size: 12px;
  opacity: 0.85;
}

.app-top .bal {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3px;
}

.app-chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.app-chips span {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.app-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #eef0f7;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 14px -10px rgba(30, 40, 90, 0.3);
}

.ci {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-display);
}

.cbars {
  flex: 1;
}

.cbars b {
  display: block;
  font-size: 12px;
  color: #10131f;
  font-weight: 700;
}

.cbars i {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: #eef0f7;
  margin-top: 6px;
  font-style: normal;
}

.cbars i::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: 6px;
  background: var(--accent);
}

.app-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 0 16px;
  background: #fff;
  border-top: 1px solid #eef0f7;
}

.app-nav span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #dfe3f0;
}

.app-nav span:first-child {
  background: var(--accent);
}

.strip {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.strip-inner > p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.strip-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip-inner li {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.service-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.service-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.process-step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
}

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.stat {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.stat p {
  margin: 0;
  color: var(--text-muted);
}

.contact-section {
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.contact-panel {
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 45%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-copy p:not(.eyebrow) {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-details a {
  color: var(--accent);
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  display: block;
}

.footer-brand p,
.footer-legal {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: 0.08s;
}
.reveal.delay-2 {
  transition-delay: 0.16s;
}
.reveal.delay-3 {
  transition-delay: 0.24s;
}
.reveal.delay-4 {
  transition-delay: 0.32s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(24px);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(15, 40, 90, 0.08);
}

.mobile-cta .btn {
  min-height: 2.85rem;
  width: 100%;
  font-size: 0.95rem;
}

/* Mobile-first refinements */
.site-header {
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
}

.hero h1 {
  font-size: clamp(2.05rem, 9vw, 3.4rem);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.hero-actions .btn {
  width: 100%;
  min-height: 3.1rem;
}

.hero-meta {
  gap: 0.55rem;
}

.hero-meta li {
  flex: 1 1 auto;
  min-width: calc(50% - 0.55rem);
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.phone {
  width: min(92vw, 248px);
  height: 508px;
}

.brand-text strong {
  font-size: 0.92rem;
}

.contact-details a,
.contact-details address {
  word-break: break-word;
  font-size: 1.02rem;
  line-height: 1.5;
}

.contact-details a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
}

.site-footer {
  padding-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    display: flex;
    width: auto;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-meta li {
    flex: initial;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.95rem;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
    font-size: 1.05rem;
  }

  .mobile-cta {
    display: none;
  }

  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    min-height: calc(100svh - var(--header-h));
    padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 3rem;
  }

  .phone {
    width: 268px;
    height: 548px;
  }

  .contact-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .process {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-step {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .phone,
  .hero-orb {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
