:root {
  --bg: #0a1120;
  --bg-2: #0d1628;
  --card: #111c31;
  --card-2: #15223b;
  --line: #1f2d47;
  --text: #f3f6fb;
  --muted: #9aa6bd;
  --blue: #1f7cff;
  --blue-2: #3d8fff;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 34px; height: 34px; stroke: var(--blue-2); stroke-width: 1.6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(31,124,255,.8); }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(10,17,32,.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 10px 20px; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.header.scrolled { background: rgba(10,17,32,.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 84px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.brand-name b { color: var(--blue-2); font-weight: 700; }
.brand-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #d5dbe7; margin-top: 2px; }
.menu { display: flex; gap: 36px; margin-left: auto; }
.menu a { font-size: 15px; font-weight: 500; color: #e6ebf3; padding: 6px 0; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue-2); transform: scaleX(0); transition: transform .2s; }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: 680px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,17,32,.85) 0%, rgba(10,17,32,.45) 50%, rgba(10,17,32,.1) 100%),
    linear-gradient(180deg, rgba(10,17,32,.4) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; padding-top: 130px; }
.hero-text { padding-bottom: 64px; }
.hello { color: var(--blue-2); font-size: 20px; font-weight: 500; margin: 0 0 6px; }
h1 { margin: 0 0 22px; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
h1 span { display: block; font-size: .72em; margin-top: 8px; }
.lead { font-size: 18px; color: #dbe2ee; max-width: 30em; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.stack-label { margin: 44px 0 14px; font-size: 13px; color: #b7c1d3; }
.stack { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 30px; }
.stack li { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #fff; }
.stack svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.portrait { position: relative; align-self: end; justify-self: center; width: min(100%, 300px); aspect-ratio: 4 / 5; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.portrait-fallback {
  position: absolute; left: 8%; right: 8%; bottom: 0; top: 10%;
  border-radius: 220px 220px 0 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(170deg, #2a64c9 0%, #133063 60%, #0d1b38 100%);
  border: 1px solid rgba(255,255,255,.12); border-bottom: 0;
  display: grid; place-items: center;
  font-size: clamp(90px, 10vw, 140px); font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,.92);
  box-shadow: 0 -30px 80px -30px rgba(31,124,255,.6);
}

/* Sections */
.section { padding: 56px 0; }
.kicker { color: var(--blue-2); text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .06em; margin: 0 0 10px; }
.kicker-lg { font-size: 15px; margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 18px; font-weight: 700; }
h3 { margin: 0; font-size: 17px; font-weight: 600; }

/* About */
.about { padding-top: 40px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; padding: 0 64px; }
.about .body { color: #c8d0de; font-size: 15px; max-width: 34em; margin: 0 0 22px; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: 14px; color: #dbe2ee; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts .ico { color: var(--blue-2); width: 16px; height: 16px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 30px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.8); }
.info-row { display: flex; gap: 20px; align-items: center; padding: 20px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .ico { width: 26px; height: 26px; color: var(--blue-2); stroke-width: 1.6; }
.info-row div { display: flex; flex-direction: column; font-size: 14px; }
.info-row b { font-weight: 600; }
.info-row span, .info-row a { color: var(--muted); }
.info-row a:hover { color: var(--blue-2); }

/* Services */
.center-head { text-align: center; margin-bottom: 36px; }
.center-head h2 { margin-bottom: 14px; }
.underline { display: block; width: 44px; height: 2px; background: var(--blue); margin: 0 auto; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; transition: transform .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); border-color: #2c4470; }
.service h3 { margin: 18px 0 10px; }
.service p { margin: 0; font-size: 14px; color: var(--muted); }

/* My apps */
.row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.app-feature {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(108, 92, 255, .22), transparent 60%),
    var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px 36px 28px; overflow: hidden;
}
.app-shot { display: block; transition: transform .3s; }
.app-shot:hover { transform: scale(1.02); }
.app-shot img { width: 100%; height: auto; }
.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px -10px rgba(108,92,255,.8); }
.app-cat { margin: 0 0 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #a99cff; }
.app-info h3 { font-size: 26px; letter-spacing: -.01em; }
.app-tagline { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.app-desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #d5dbe7; }
.app-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* CTA */
.cta { position: relative; margin-top: 40px; overflow: hidden; background: linear-gradient(180deg, #1a2f55 0%, #2a3f6a 55%, #3d4a72 100%); text-align: center; }
.cta-bg { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(10,17,32,.55), transparent 70%); z-index: 1; }
.cta .cta-inner { position: relative; z-index: 2; padding-top: 44px; padding-bottom: 48px; }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0 0 22px; color: #dbe2ee; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.footer .brand-name { font-size: 17px; }
.footer .brand-sub { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.copy { margin: 0; font-size: 13px; color: var(--muted); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--card); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social svg { width: 16px; height: 16px; fill: #fff; }

/* Responsive */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about-grid { padding: 0; gap: 48px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 70px; gap: 16px; }
  .menu { gap: 22px; }

  .hero { min-height: 0; }
  .hero .hero-inner { grid-template-columns: 1fr; padding-top: 110px; gap: 0; }
  .hero-text { padding-bottom: 28px; }
  .portrait { width: min(55%, 210px); }
  .about-grid { grid-template-columns: 1fr; }
  .app-feature { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer .brand { align-items: center; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .services, .facts { grid-template-columns: 1fr; }
  .stack { gap: 20px; }
  .info-card { padding: 4px 20px; }
  .row-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* When the photo loads, the arch becomes a soft glow behind it */
.portrait.has-photo { aspect-ratio: 1056 / 1100; }
.portrait.has-photo .portrait-fallback { color: transparent; border: 0; border-radius: 50%; inset: 8% 0 10%; background: radial-gradient(circle at 50% 45%, rgba(61,143,255,.55), rgba(31,124,255,.18) 45%, transparent 70%); box-shadow: none; }
.portrait img { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 10px; }
  .menu { gap: 16px; }
  .menu a { font-size: 14px; }
}
