:root {
  --bg: #060d19;
  --ink: #fdf8ee;
  --muted: #a9b6cc;
  --orange: #f55d22;
  --yellow: #f9b12a;
  --line: rgba(253, 248, 238, .11);
  --accent: var(--yellow);
  --nav-bg: rgba(6, 13, 25, .72);
  --menu-bg: #08111f;
  --field: rgba(0, 0, 0, .28);
  --option: #0d1829;
  --pill: #fdf8ee;
  --pill-ink: #122b49;
  color-scheme: dark;
  --glass: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.022));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--ink); font: 16px/1.65 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand b { font-family: "Plus Jakarta Sans", Inter, sans-serif; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 130px) 0; }

.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 5%, rgba(245,93,34,.20), transparent 70%),
    radial-gradient(55vw 55vh at 0% 40%, rgba(46,100,200,.24), transparent 70%),
    radial-gradient(50vw 45vh at 80% 95%, rgba(249,177,42,.12), transparent 70%); }

.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-row { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgba(245,93,34,.35)); }
.brand b { display: block; font-size: 1.3rem; }
.brand em { font-style: normal; color: var(--orange); }
.brand small { display: block; font-size: .65rem; letter-spacing: .14em; color: var(--muted); }
#menu { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 500; }
#menu > a:not(.btn) { color: var(--muted); transition: color .2s; }
#menu > a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; font: 700 .95rem "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, #ff7a3d, var(--orange) 55%, #d9430d); color: #fff; box-shadow: 0 12px 34px -10px rgba(245,93,34,.75); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; }
.dot-amber { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.grad { background: linear-gradient(100deg, var(--yellow), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin: 20px 0 28px; }

.hero { padding: clamp(30px, 5vw, 70px) 0 40px; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 34px; }
.chips li { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

.stage { position: relative; min-width: 0; touch-action: pan-y; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage .fallback { position: absolute; inset: 0; margin: auto; width: 45%; border-radius: 28px; }
.stage.ready .fallback { display: none; }
.stage-hero { height: min(620px, 74vh); }
.stage-tailor, .stage-expense { height: 480px; }

.head { text-align: center; max-width: 1100px; margin: 0 auto 56px; }
.head p:not(.eyebrow) { max-width: 640px; margin-inline: auto; }
.head p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 14px; }

.grid { display: grid; gap: 22px; }
.three { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 26px; padding: 32px; box-shadow: 0 30px 60px -35px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07); }
.card p { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out, border-color .2s, opacity .7s; }
.tilt:hover { border-color: rgba(249,177,42,.4); }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; background: var(--glass); border: 1px solid var(--line); border-radius: 38px; padding: clamp(26px, 5vw, 64px); overflow: hidden; }
.status { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.app-id { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.app-id img { border-radius: 20px; box-shadow: 0 18px 34px -14px rgba(0,0,0,.8); }
.ticks { list-style: none; margin-bottom: 32px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffe3a1, var(--orange) 70%); }
.ticks b { color: var(--ink); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: start; }
.info { padding: 22px 26px; margin-bottom: 16px; }
.info small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--muted); }
.info > a:not(.link-btn) { display: block; font: 700 1.15rem "Plus Jakarta Sans", sans-serif; overflow-wrap: anywhere; }
.link-btn { display: inline-block; background: none; border: 0; color: var(--accent); font: 600 .85rem Inter, sans-serif; cursor: pointer; margin-top: 8px; }
.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-size: .75rem; font-weight: 600; color: var(--muted); min-width: 0; }
input, select, textarea { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; color: var(--ink); font: 400 .92rem Inter, sans-serif; }
select option { background: var(--option); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
.send { display: flex; flex-wrap: wrap; gap: 12px; }
.send[hidden] { display: none; }
.send p { width: 100%; margin: 0; }

footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: .82rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer b { color: var(--ink); }

.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; background: var(--pill); color: var(--pill-ink); padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: .85rem; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s; }
.toast.show { opacity: 1; transform: none; }

.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s, translate .7s, transform .18s ease-out; }
.js .reveal.in { opacity: 1; translate: 0 0; }

#menu > a[aria-current="page"]:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.page-top { padding-top: clamp(36px, 6vw, 80px); }
.app-id h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
#contact h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.stage-logo { height: 230px; margin-bottom: 24px; }
.stage-phone .fallback { width: 30%; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.app-card img { border-radius: 22px; margin-bottom: 14px; }
.app-card h3 { font-size: 1.6rem; margin-top: 12px; }
.app-card p { margin-top: 0; }
.more { color: var(--accent); font-weight: 600; margin-top: 14px; }
.cta { display: block; text-align: center; }
.cta .lead { margin-inline: auto; }

.banner { padding: clamp(30px, 6vw, 70px) 0 0; }
.banner + .section { padding-top: 40px; }
.banner h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.stage-banner { height: 400px; }
blockquote { font: 600 clamp(1.15rem, 2.2vw, 1.55rem)/1.55 "Plus Jakarta Sans", sans-serif; margin-bottom: 28px; }
.ceo { grid-template-columns: 1fr 2fr; }
.ceo-id { text-align: center; }
.ceo-id p { color: var(--muted); }
.avatar { width: 150px; height: 150px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font: 800 2.8rem "Plus Jakarta Sans", sans-serif; background: linear-gradient(140deg, var(--yellow), var(--orange) 60%, #7a2606); box-shadow: inset 0 0 0 6px rgba(255,255,255,.16), 0 30px 50px -20px rgba(245,93,34,.7); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.steps span { display: block; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.head .btn { margin-top: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 28px; margin-bottom: 34px; }
.foot-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.foot-grid a:hover { color: var(--accent); }

h1, h2, h3 { text-wrap: balance; }
.four { grid-template-columns: repeat(4, 1fr); }
.four .card { padding: 28px 24px; }
.muted { color: var(--muted); }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social > * { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: transform .2s, background .2s, color .2s; }
.social a:hover { transform: translateY(-3px); background: var(--orange); color: #fff; }
.social span { opacity: .6; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--pill); color: var(--pill-ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
@media (min-width: 901px) and (max-width: 1100px) { .four { grid-template-columns: repeat(2, 1fr); } }

.ceo-photo { width: min(100%, 300px); height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 auto 20px; border-radius: 28px; padding: 5px; background: linear-gradient(140deg, var(--yellow), var(--orange) 60%, #2e64c8); box-shadow: 0 34px 60px -28px rgba(245,93,34,.75); }
.foot-grid { grid-template-columns: 1.5fr 1.1fr 1fr .8fr 1.4fr; }
a.card { display: block; }
a.card.app-card { display: flex; }
.jump a { display: block; }
.jump li { padding: 0; }
.jump li a { padding: 7px 16px; }
.jump li:hover { border-color: var(--orange); color: var(--ink); }
.feature .lead { margin-top: 16px; }
@media (min-width: 901px) and (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .four { grid-template-columns: minmax(0, 1fr); }
  .ceo, .steps, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-banner { height: 300px; }
  .menu-btn { display: block; }
  #menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 18px; padding: 24px; background: var(--menu-bg); border-bottom: 1px solid var(--line); }
  #menu.open { display: flex; }
  .hero-grid, .feature, .contact-grid, .three, .two { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .stage-hero { height: 500px; }
  .stage-tailor, .stage-expense { height: 320px; }
  .feature-alt .stage { order: 2; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------- Theme switch ---------- */
.theme-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; margin-left: auto; }
.theme-btn:hover { color: var(--orange); border-color: var(--orange); }
.i-moon, html[data-theme="light"] .i-sun, .logo-on-light, html[data-theme="light"] .brand .logo-on-dark { display: none; }
html[data-theme="light"] .i-moon, html[data-theme="light"] .brand .logo-on-light { display: block; }
@media (min-width: 901px) { #menu { margin-left: auto; } .theme-btn { margin-left: 0; } }
@media (max-width: 400px) { .nav-row { gap: 10px; } .brand { gap: 8px; } .brand small { letter-spacing: .06em; } }

/* ---------- Light mode: the cream, navy, orange and yellow of the original site ---------- */
html[data-theme="light"] {
  --bg: #fdf8ee;
  --ink: #122b49;
  --muted: #4d5f7a;
  --line: rgba(18, 43, 73, .13);
  --glass: linear-gradient(160deg, #ffffff, #fffdf8);
  --accent: #b83c0a;
  --nav-bg: rgba(253, 248, 238, .9);
  --menu-bg: #fdf8ee;
  --field: rgba(253, 248, 238, .7);
  --option: #ffffff;
  --pill: #122b49;
  --pill-ink: #ffffff;
  color-scheme: light;
}
html[data-theme="light"] .aurora {
  background:
    radial-gradient(60vw 50vh at 85% 5%, rgba(245,93,34,.12), transparent 70%),
    radial-gradient(55vw 55vh at 0% 40%, rgba(249,177,42,.16), transparent 70%),
    radial-gradient(50vw 45vh at 80% 95%, rgba(244,234,211,.9), transparent 70%); }
html[data-theme="light"] .card,
html[data-theme="light"] .feature { box-shadow: 0 15px 35px -10px rgba(18,43,73,.10); }
html[data-theme="light"] .btn-ghost { background: #ffffff; border-color: rgba(18,43,73,.2); }
html[data-theme="light"] .btn-ghost:hover { background: #f4ead3; }
html[data-theme="light"] .chips li { background: #ffffff; }
html[data-theme="light"] .grad { background-image: linear-gradient(100deg, #f55d22, #d9430d); }
html[data-theme="light"] .app-id img,
html[data-theme="light"] .app-card img { box-shadow: 0 16px 30px -14px rgba(18,43,73,.35); }
html[data-theme="light"] footer { background: #f4ead3; }

/* ---------- "Start your project": glow pulse, light sweep and a nudging arrow ---------- */
.btn-live { position: relative;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.45) 50%, transparent 62%) 150% 0 / 250% 100% no-repeat,
    linear-gradient(120deg, #ff7a3d, var(--orange) 55%, #d9430d);
  animation: btn-sweep 3.2s ease-in-out infinite; }
.btn-live::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--orange); pointer-events: none; animation: btn-ring 2s ease-out infinite; }
.btn-live span { display: inline-block; animation: btn-nudge 1.2s ease-in-out infinite; }
@keyframes btn-sweep { 0% { background-position: 150% 0, 0 0; } 55%, 100% { background-position: -50% 0, 0 0; } }
@keyframes btn-ring { 0% { opacity: .75; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(1.14, 1.4); } }
@keyframes btn-nudge { 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .btn-live, .btn-live::after, .btn-live span { animation: none; } .btn-live::after { display: none; } }

/* ---------- CEO message: framed card with a large quote mark ---------- */
.ceo { border-top: 4px solid var(--orange); }
.quote-mark { display: block; font: 800 6rem/.8 "Plus Jakarta Sans", sans-serif; height: 3.4rem; color: var(--orange); }

/* ---------- Our own card icons: glossy gradient tiles, matching the hero set ---------- */
.ico { width: 62px; height: 62px; border-radius: 19px; display: grid; place-items: center; margin-bottom: 22px; color: #fff;
  background: linear-gradient(145deg, var(--from), var(--to));
  box-shadow: inset 0 2px 1px rgba(255,255,255,.45), inset 0 -4px 8px rgba(0,0,0,.2), 0 16px 26px -12px var(--to);
  transition: transform .3s; }
.ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.ico .a { stroke: #ffe58f; }
.card:hover .ico { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.ico-green { --from: #4ade80; --to: #0f8f6e; }
.ico-blue { --from: #4fa8ff; --to: #1d4ed8; }
.ico-purple { --from: #a97bff; --to: #4b2fd6; }
.ico-orange { --from: #ff9150; --to: #d9430d; }
.ico-amber { --from: #ffc14d; --to: #d97706; }
.ico-amber .a { stroke: #122b49; }
