:root {
  --navy: #10182b;
  --navy-soft: #1b2740;
  --paper: #f5f7fb;
  --white: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e3e7ef;
  --green: #21b573;
  --green-dark: #118456;
  --blue: #4b7bec;
  --violet: #7a5af8;
  --orange: #f79045;
  --red: #e5484d;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(26, 36, 57, 0.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--white); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid rgba(227, 231, 239, .8); background: rgba(255,255,255,.92); backdrop-filter: blur(15px); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--violet), var(--blue)); color: white; font-size: 1.2rem; font-weight: 900; box-shadow: 0 8px 20px rgba(92, 92, 230, .25); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: .96rem; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
nav { display: flex; align-items: center; gap: 28px; font-size: .86rem; font-weight: 650; }
nav a:hover, nav a:focus-visible { color: var(--violet); }
.nav-cta { padding: 10px 17px; border-radius: 11px; background: var(--navy); color: white !important; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; min-height: 680px; padding-block: 72px 90px; }
.eyebrow { color: var(--violet); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green-dark); }
.hero .eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(33,181,115,.12); }
h1, h2 { letter-spacing: -.045em; line-height: 1.08; }
h1 { max-width: 650px; margin-top: 19px; font-size: clamp(3.5rem, 6.3vw, 5.8rem); }
h1 em { color: var(--violet); font-style: normal; }
h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); }
h3 { line-height: 1.25; }
.hero-text { max-width: 570px; margin-top: 24px; color: var(--muted); font-size: 1.13rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; border: 0; border-radius: 12px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.primary-button { background: linear-gradient(135deg, var(--violet), #625be9); color: white; box-shadow: 0 10px 24px rgba(103,84,225,.22); }
.primary-button:hover { box-shadow: 0 13px 28px rgba(103,84,225,.3); }
.secondary-button { border: 1px solid var(--line); background: white; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: var(--muted); font-size: .8rem; }
.hero-note span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #e7f8ef; color: var(--green-dark); font-weight: 900; }

.hero-dashboard { position: relative; padding: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; background: linear-gradient(145deg, var(--navy), #222f4f); color: white; box-shadow: 0 35px 70px rgba(19,30,53,.22); }
.hero-dashboard::before { position: absolute; width: 230px; height: 230px; top: -130px; right: -80px; border-radius: 50%; background: rgba(122,90,248,.38); content: ""; filter: blur(5px); }
.card-topline, .hero-stats, .mini-expenses > div { display: flex; align-items: center; justify-content: space-between; }
.card-topline { position: relative; font-size: .82rem; font-weight: 700; }
.live-pill { padding: 5px 9px; border-radius: 999px; background: rgba(33,181,115,.14); color: #7aebb4; font-size: .64rem; }
.hero-balance { margin-top: 25px; font-size: 3rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.muted { color: #aeb8cb; font-size: .75rem; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e8ebf1; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #55d99c); transition: width .3s ease, background .3s ease; }
.hero-progress { margin: 22px 0; background: rgba(255,255,255,.12); }
.hero-stats { padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats small { color: #9ca8be; font-size: .67rem; }
.hero-stats strong { margin-top: 3px; font-size: 1rem; }
.mini-expenses { margin-top: 10px; }
.mini-expenses > div { gap: 11px; padding-top: 14px; }
.mini-expenses p { display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
.mini-expenses strong, .mini-expenses b { font-size: .76rem; }
.mini-expenses small { color: #8f9bb1; font-size: .62rem; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); background: var(--paper); }
.trust-strip div { padding: 24px; text-align: center; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip strong { display: block; font-size: .85rem; }
.trust-strip span { color: var(--muted); font-size: .75rem; }
.section { padding-block: 105px; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; margin-bottom: 45px; }
.section-heading h2 { margin-top: 12px; }
.section-heading > p { max-width: 430px; color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.metric-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 35px rgba(30,42,68,.045); }
.metric-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.metric-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; font-size: .82rem; font-weight: 900; }
.violet { background: #efebff; color: var(--violet); }.blue { background: #e9f1ff; color: var(--blue); }.green { background: #e7f8ef; color: var(--green-dark); }
.metric-card > strong { display: block; margin-top: 22px; font-size: 2rem; letter-spacing: -.04em; }
.metric-card > small { color: var(--muted); font-size: .72rem; }
.remaining-card { border-color: #bcebd4; background: linear-gradient(145deg, #f6fffa, #eefbf5); }
.remaining-card.warning { border-color: #ffc8b5; background: #fff5f1; }
.remaining-card.warning .green { background: #ffe5dc; color: var(--red); }
.remaining-card.warning > strong { color: var(--red); }
.budget-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: end; margin-top: 26px; padding: 34px; border-radius: var(--radius); background: var(--navy); color: white; }
.budget-panel h3 { margin: 7px 0 8px; font-size: 1.45rem; }
.budget-panel p:last-child { max-width: 540px; color: #adb7c9; font-size: .86rem; }
.budget-panel .eyebrow { color: #9c8dff; }
.budget-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
label { display: block; margin-bottom: 7px; color: inherit; font-size: .76rem; font-weight: 750; }
.budget-form label { grid-column: 1 / -1; margin-bottom: 0; color: #b7c0d1; }
input, select { width: 100%; min-height: 49px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: white; color: var(--text); }
input { padding: 11px 14px; }
select { padding: 11px 36px 11px 13px; }
input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(122,90,248,.12); }
.money-input { position: relative; }
.money-input span { position: absolute; z-index: 1; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); }
.money-input input { padding-left: 31px; }
.alert { margin-top: 17px; padding: 14px 17px; border: 1px solid #ffc8b5; border-radius: 12px; background: #fff5f1; color: #9c342d; font-size: .86rem; font-weight: 700; }

.soft-section, .tips-section { background: var(--paper); }
.compact-heading { margin-bottom: 30px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.category-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; font-weight: 900; }
.category-icon.food { background: #fff0e5; color: #d66520; }.category-icon.transport { background: #e8f1ff; color: var(--blue); }.category-icon.activities { background: #efebff; color: var(--violet); }.category-icon.shopping { background: #e7f8ef; color: var(--green-dark); }.category-icon.other { background: #edf0f4; color: #667085; }
.category-card h3 { margin-top: 20px; font-size: .88rem; }
.category-card strong { display: block; margin-top: 7px; font-size: 1.25rem; }
.category-card small { color: var(--muted); font-size: .65rem; }
.expense-workspace { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: stretch; margin-top: 38px; }
.form-card, .expenses-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-card h2, .expenses-card h2 { margin-top: 6px; font-size: 1.75rem; }
.card-intro { margin: 8px 0 25px; color: var(--muted); font-size: .83rem; }
.form-card form > label { margin-top: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 14px; }
.full-button { width: 100%; margin-top: 20px; }
.expenses-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter-label { min-width: 145px; margin: 0; color: var(--muted); font-size: .67rem; }
.filter-label select { min-height: 38px; margin-top: 3px; padding-block: 6px; font-size: .74rem; }
.expense-list { list-style: none; }
.expense-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding-block: 15px; border-bottom: 1px solid var(--line); }
.expense-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.expense-info strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.expense-info small { color: var(--muted); font-size: .67rem; text-transform: capitalize; }
.expense-amount { font-size: .85rem; }
.delete-button { width: 31px; height: 31px; border: 0; border-radius: 9px; background: #f3f5f8; color: var(--muted); font-size: 1rem; }
.delete-button:hover, .delete-button:focus-visible { background: #ffe8e6; color: var(--red); }
.empty-state { padding: 55px 15px; text-align: center; }
.empty-state > span { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: #efebff; color: var(--violet); font-weight: 800; }
.empty-state h3 { font-size: .95rem; }.empty-state p { color: var(--muted); font-size: .77rem; }

.summary-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.summary-copy h2 { margin: 12px 0 20px; }.summary-copy > p:last-child { max-width: 470px; color: var(--muted); }
.summary-card { display: grid; grid-template-columns: auto 1fr; gap: 38px; align-items: center; padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-ring { position: relative; display: grid; width: 150px; height: 150px; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0%, #e9edf2 0); transition: background .3s ease; }
.summary-ring::before { position: absolute; width: 112px; height: 112px; border-radius: 50%; background: white; content: ""; }
.summary-ring div { z-index: 1; display: flex; flex-direction: column; text-align: center; }
.summary-ring strong { font-size: 1.65rem; line-height: 1; }.summary-ring span { color: var(--muted); font-size: .68rem; }
.summary-details div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.summary-details span { color: var(--muted); }.summary-details .summary-remaining { margin-top: 8px; border: 0; color: var(--green-dark); font-size: .9rem; }.summary-remaining span { color: inherit; }
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tips-grid article { padding: 25px; border-radius: 18px; background: white; }
.tips-grid span { display: inline-block; margin-bottom: 40px; color: var(--violet); font-size: .7rem; font-weight: 900; }
.tips-grid h3 { margin-bottom: 10px; font-size: 1rem; }.tips-grid p { color: var(--muted); font-size: .8rem; }
.assistant-section { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.assistant-icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 19px; background: linear-gradient(135deg, var(--violet), var(--blue)); color: white; font-size: 1.7rem; }
.assistant-section h2 { margin: 8px 0 10px; font-size: 2.2rem; }.assistant-section p:last-child { color: var(--muted); }
.coming-pill { padding: 8px 13px; border-radius: 999px; background: #efebff; color: var(--violet); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.final-cta { margin-bottom: 70px; padding: 75px 30px; border-radius: 28px; background: linear-gradient(135deg, #151e35, #24345a); color: white; text-align: center; }
.final-cta .eyebrow { color: #9c8dff; }.final-cta h2 { max-width: 740px; margin: 12px auto 18px; }.final-cta p:not(.eyebrow) { max-width: 590px; margin: 0 auto 28px; color: #b8c2d4; }
.light-button { background: white; color: var(--navy); }
footer { border-top: 1px solid var(--line); }.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; color: var(--muted); font-size: .75rem; }.footer-brand { color: var(--text); }

@media (max-width: 900px) {
  .hero, .section-heading, .budget-panel, .expense-workspace, .summary-section { grid-template-columns: 1fr; }
  .hero { gap: 50px; padding-top: 60px; }.section-heading, .budget-panel, .summary-section { gap: 30px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }.tips-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading > p { max-width: 650px; }.expense-workspace { align-items: start; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 28px, 1160px); }.site-header { min-height: 68px; padding-inline: 15px; }
  nav a:not(.nav-cta) { display: none; }.nav-cta { padding: 9px 13px; }.brand-mark { width: 37px; height: 37px; }
  .hero { min-height: auto; padding-block: 55px 65px; }h1 { font-size: clamp(3.1rem, 15vw, 4.4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }.hero-dashboard { padding: 22px; }.hero-balance { font-size: 2.5rem; }
  .trust-strip { grid-template-columns: 1fr; }.trust-strip div + div { border-top: 1px solid var(--line); border-left: 0; }
  .section { padding-block: 75px; }.overview-grid, .category-grid, .tips-grid { grid-template-columns: 1fr; }
  .budget-panel, .form-card, .expenses-card { padding: 23px; }.budget-form, .form-row { grid-template-columns: 1fr; }.budget-form label { grid-column: auto; }
  .category-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; }.category-card .category-icon { grid-row: 1 / 3; }.category-card h3, .category-card strong { margin: 0; }.category-card small { grid-column: 2 / 4; }
  .expenses-header { align-items: stretch; flex-direction: column; }.filter-label { width: 100%; }.expense-item { grid-template-columns: auto 1fr auto; }.expense-amount { grid-column: 2; }.delete-button { grid-column: 3; grid-row: 1 / 3; }
  .summary-card { grid-template-columns: 1fr; }.summary-ring { margin-inline: auto; }.assistant-section { grid-template-columns: 1fr; }.coming-pill { width: max-content; }
  .final-cta { width: calc(100% - 28px); padding: 55px 22px; }.footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
}

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