:root {
  --teal: #2bb6a4;
  --teal-bright: #34c2a8;
  --blue: #2e7bb0;
  --indigo: #3a55c0;
  --navy: #16324b;
  --ink: #1b2b3a;
  --muted: #5d7186;
  --line: #e4ebf1;
  --bg: #f6f9fb;
  --bg-soft: #eef4f8;
  --card: #ffffff;
  --white: #ffffff;

  --grad: linear-gradient(135deg, var(--teal-bright) 0%, var(--blue) 52%, var(--indigo) 100%);
  --grad-soft: linear-gradient(135deg, rgba(52,194,168,.14), rgba(58,85,192,.14));

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm: 0 2px 8px rgba(22,50,75,.06);
  --shadow-md: 0 14px 40px rgba(22,50,75,.10);
  --shadow-lg: 0 30px 70px rgba(22,50,75,.16);

  --maxw: 1160px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  background: var(--grad-soft);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 20px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 12px 26px rgba(46,123,176,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(46,123,176,.42); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #cdd9e2; }

/* ============================================================
   Header / Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,249,251,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(246,249,251,.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
.brand img { height: 75px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink);
  position: relative; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: #cdd9e2; }
.lang-toggle svg { transition: transform .25s ease; }
.lang.open .lang-toggle svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 168px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: background .15s ease;
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a[aria-current="true"] { color: var(--blue); font-weight: 700; }
.lang-flag { font-size: 17px; line-height: 1; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 5px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 84px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(680px 480px at 78% -8%, rgba(52,194,168,.20), transparent 60%),
    radial-gradient(720px 560px at 12% 8%, rgba(58,85,192,.16), transparent 62%),
    radial-gradient(560px 420px at 60% 90%, rgba(46,123,176,.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -.03em; }
.hero .lede { font-size: 19px; color: var(--muted); margin: 24px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--font-display); font-size: 30px; color: var(--navy); display: block; }
.hero-stats .stat span { font-size: 14px; color: var(--muted); }

/* Hero visual — floating phone with orbiting app icons */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.phone {
  position: relative; width: 270px; aspect-ratio: 852/1846; border-radius: 38px;
  background: var(--white); padding: 11px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); animation: float 7s ease-in-out infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.phone-slides { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; }
.phone-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 1.2s ease;
}
.phone-slide.is-active { opacity: 1; transform: scale(1); }
.orb {
  position: absolute; border-radius: 22px; box-shadow: var(--shadow-md); overflow: hidden;
  border: 3px solid var(--white); background: var(--white);
}
.orb img, .orb svg { width: 100%; height: 100%; display: block; }
.orb.a { width: 92px; height: 92px; top: 8%; left: -2%; animation: float 6s ease-in-out infinite; }
.orb.b { width: 76px; height: 76px; bottom: 16%; right: -4%; animation: float 5.4s ease-in-out .8s infinite; }
.orb.c { width: 64px; height: 64px; bottom: 4%; left: 8%; animation: float 6.6s ease-in-out .4s infinite; }
.hero-ring {
  position: absolute; width: 430px; height: 430px; border-radius: 50%;
  border: 1.5px dashed rgba(46,123,176,.28); z-index: -1;
}
.hero-ring.r2 { width: 560px; height: 560px; border-color: rgba(52,194,168,.18); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================================================
   About / Expertise
   ============================================================ */
.about { background: var(--white); border-block: 1px solid var(--line); }
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.exp-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.exp-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); margin-bottom: 18px; color: var(--blue);
}
.exp-icon svg { width: 28px; height: 28px; }
.exp-card h3 { font-size: 21px; margin-bottom: 10px; }
.exp-card p { color: var(--muted); font-size: 16px; }

/* ============================================================
   Applications (primary focus)
   ============================================================ */
.apps { background: var(--bg); }
.app-list { display: grid; gap: 30px; }
.app-card {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 32px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.app-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad);
  opacity: 0; transition: opacity .3s ease;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.app-card:hover::before { opacity: 1; }
.app-icon { width: 132px; height: 132px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md); }
.app-icon img, .app-icon svg { width: 100%; height: 100%; object-fit: cover; }
.app-body { min-width: 0; }
.app-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.app-body h3 { font-size: 27px; }
.app-tagline { color: var(--blue); font-weight: 600; font-family: var(--font-display); font-size: 15px; margin-bottom: 10px; }
.app-body p { color: var(--muted); font-size: 16px; max-width: 560px; }
.badge {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.badge-free { background: rgba(43,182,164,.14); color: #18887a; }
.badge-sub { background: rgba(58,85,192,.12); color: var(--indigo); }
.app-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 168px; }
.store-btn {
  display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-radius: 14px;
  background: var(--navy); color: var(--white); transition: transform .2s ease, opacity .2s ease;
}
.store-btn:hover { transform: translateY(-2px); opacity: .92; }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn .s-small { display: block; font-size: 10px; opacity: .8; line-height: 1; }
.store-btn .s-big { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.2; }

.audience-note {
  margin-top: 34px; display: flex; align-items: center; gap: 12px; justify-content: center;
  color: var(--muted); font-size: 15px;
}
.audience-note svg { color: var(--teal); width: 20px; height: 20px; }

/* ============================================================
   Projects
   ============================================================ */
.projects { background: var(--navy); color: #d9e6f0; overflow: hidden; }
.projects::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(52,194,168,.18), transparent 60%),
    radial-gradient(500px 360px at 5% 90%, rgba(58,85,192,.22), transparent 60%);
}
.projects .wrap { position: relative; z-index: 1; }
.projects .eyebrow { background: rgba(255,255,255,.08); color: #7fe3d2; }
.projects .eyebrow::before { background: #7fe3d2; }
.projects .section-head h2 { color: var(--white); }
.projects .section-head p { color: #a9c1d4; }
.project-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl); padding: 44px;
}
.project-shot {
  background: linear-gradient(160deg, #0c1722, #14283a); border-radius: var(--r-lg);
  padding: 26px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08);
}
.project-shot img { border-radius: 10px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.project-info h3 { color: var(--white); font-size: 30px; margin-bottom: 14px; }
.project-info p { color: #b6cbdc; font-size: 16.5px; margin-bottom: 22px; }
.project-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.project-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #cfe0ec; }
.project-feats svg { color: #7fe3d2; flex: none; margin-top: 3px; }
.badge-api { background: rgba(127,227,210,.15); color: #7fe3d2; }

/* ============================================================
   Contacts
   ============================================================ */
.contacts { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card .c-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--blue); margin-bottom: 14px;
}
.contact-card .c-icon svg { width: 22px; height: 22px; }
.contact-card .c-label { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.contact-card .c-value { font-weight: 600; color: var(--navy); font-size: 16px; word-break: break-word; }
.contact-card .c-value.pending { color: var(--muted); font-weight: 500; font-style: italic; }
.contact-card a.c-value:hover { color: var(--blue); }
.contact-full { grid-column: 1 / -1; }

.contact-side { background: var(--grad); border-radius: var(--r-xl); padding: 44px; color: var(--white); position: relative; overflow: hidden; }
.contact-side::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.contact-side h3 { color: var(--white); font-size: 26px; margin-bottom: 14px; }
.contact-side p { color: rgba(255,255,255,.9); margin-bottom: 26px; }
.contact-side .btn-ghost { background: var(--white); color: var(--navy); }
.contact-side .side-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.contact-side .side-meta div { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.contact-side .side-meta svg { flex: none; opacity: .9; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: #9fb6c8; padding: 56px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 75px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: 14.5px; color: #8ba6ba; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: var(--white); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-display); }
.footer-col a { display: block; font-size: 14.5px; color: #9fb6c8; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: #7fe3d2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 420px; }
  .project-card { grid-template-columns: 1fr; gap: 32px; }
  .project-shot { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    gap: 4px; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 10px 0; }
  .expertise-grid { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; text-align: center; gap: 20px; justify-items: center; }
  .app-icon { width: 110px; height: 110px; }
  .app-title-row { justify-content: center; }
  .app-body p { margin-inline: auto; }
  .app-cta { width: 100%; max-width: 280px; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-ring { display: none; }
  .nav-actions .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
