:root {
  color-scheme: light;
  --bg: #eef5ef;
  --bg-strong: #ddeae0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: rgba(240, 247, 241, 0.92);
  --text: #173228;
  --muted: #587163;
  --line: rgba(26, 63, 44, 0.12);
  --green: #0e8a53;
  --green-deep: #0a6c41;
  --green-soft: #dff4e8;
  --gold: #b08b34;
  --shadow: 0 18px 60px rgba(21, 60, 39, 0.12);
  --shadow-soft: 0 10px 34px rgba(21, 60, 39, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(15, 138, 83, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(176, 139, 52, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #f5faf6 0%, var(--bg) 38%, #f2f7f3 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-orb {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.44;
  pointer-events: none;
}

.bg-orb--left {
  top: -10rem;
  left: -12rem;
  background: radial-gradient(
    circle,
    rgba(18, 148, 87, 0.32),
    rgba(18, 148, 87, 0)
  );
}

.bg-orb--right {
  right: -12rem;
  bottom: -12rem;
  background: radial-gradient(
    circle,
    rgba(176, 139, 52, 0.22),
    rgba(176, 139, 52, 0)
  );
}

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.topbar,
.panel,
.hero-card,
.glass-card,
.metric,
.action-tile,
.account-card,
.timeline-item,
.notice,
.floating-badge {
  backdrop-filter: blur(16px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green) 0%, #22b167 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(14, 138, 83, 0.24);
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle,
.eyebrow,
.panel-kicker,
.caption,
.meta,
.muted,
.timeline-time,
.field-hint,
.helper,
.fineprint,
.status,
.pill,
.balance-label {
  color: var(--muted);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.ghost-button,
.pill-button,
.service-button,
.primary-button,
.secondary-button,
.link-button {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-link,
.ghost-button,
.pill-button,
.secondary-button,
.link-button {
  text-decoration: none;
  color: var(--text);
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-link.active {
  background: rgba(223, 244, 232, 0.92);
  color: var(--green-deep);
}

.nav-link:hover,
.ghost-button:hover,
.pill-button:hover,
.primary-button:hover,
.secondary-button:hover,
.service-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.ghost-button,
.pill-button,
.secondary-button,
.service-button,
.primary-button {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(145deg, var(--green) 0%, #1eb86a 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(14, 138, 83, 0.24);
}

.secondary-button,
.ghost-button,
.pill-button {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.link-button {
  background: transparent;
  padding: 0;
  font-weight: 700;
  color: var(--green-deep);
}

.layout-grid {
  display: grid;
  gap: 20px;
}

.landing-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.hero,
.panel,
.glass-card,
.account-card,
.timeline-item,
.metric,
.action-tile,
.notice {
  border-radius: var(--radius-xl);
}

.hero {
  padding: 32px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(242, 250, 244, 0.9) 100%
  );
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 98, 58, 0.1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(14, 138, 83, 0.12);
}

.hero h1,
.section-title,
.panel-title,
.feature-title,
.form-title,
.dashboard-title {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  max-width: 10ch;
  margin-top: 16px;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.inline-actions,
.toolbar,
.form-actions,
.dashboard-toolbar,
.account-actions,
.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 26px;
}

.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  padding: 18px;
}

.stat-value {
  display: block;
  margin-top: 12px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-aside {
  display: grid;
  gap: 20px;
  align-self: start;
}

.hero-aside > .panel {
  height: fit-content;
}

.hero-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 138, 83, 0.18), transparent 68%);
}

.floating-badge {
  position: absolute;
  right: 22px;
  top: 22px;
  padding: 10px 14px;
  border-radius: 18px;
  font-weight: 700;
}

.hero-card h2 {
  margin: 68px 0 10px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.hero-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.panel {
  padding: 24px;
}

.features-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  min-height: 180px;
}

.feature-icon,
.service-icon,
.account-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 1.25rem;
}

.feature-title,
.panel-title,
.form-title,
.dashboard-title {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.feature-copy,
.form-copy,
.panel-copy,
.dashboard-copy,
.service-copy,
.account-copy,
.activity-copy {
  color: var(--muted);
  line-height: 1.65;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 20px;
  align-items: start;
}

.form-panel {
  padding: 30px;
  align-self: start;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(241, 248, 243, 0.92)
  );
}

.form-card {
  padding: 30px;
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 67, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(14, 138, 83, 0.5);
  box-shadow: 0 0 0 4px rgba(14, 138, 83, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.panel-stack,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.notice {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(223, 244, 232, 0.9);
  color: var(--green-deep);
  font-weight: 600;
}

.notice--warning {
  background: rgba(249, 242, 221, 0.92);
  color: #7d5b13;
}

.dashboard-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.summary-card {
  padding: 28px;
}

.summary-top,
.account-top,
.activity-top,
.service-top,
.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.balance {
  display: grid;
  gap: 6px;
}

.balance-amount {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.balance-label,
.timeline-time,
.meta,
.caption,
.field-hint,
.fineprint {
  font-size: 0.92rem;
}

.account-list,
.timeline,
.service-list {
  display: grid;
  gap: 14px;
}

.account-card {
  padding: 20px;
}

.account-card--accent {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(223, 244, 232, 0.96) 100%
  );
}

.account-number {
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.account-balance {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 800;
}

.pill-row,
.account-meta,
.toolbar,
.service-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.pill--success {
  color: var(--green-deep);
  background: rgba(223, 244, 232, 0.9);
}

.pill--muted {
  color: var(--muted);
}

.service-list {
  margin-top: 18px;
}

.service-button,
.action-tile {
  width: 100%;
}

.action-tile {
  padding: 18px;
  text-align: left;
}

.service-title {
  margin: 0;
  font-size: 1rem;
}

.service-copy {
  margin: 8px 0 0;
}

.timeline-item {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.timeline-title {
  font-weight: 700;
}

.split-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 50;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(20, 30, 23, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.helper-row,
.panel-footer,
.auth-footer,
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.accent-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 138, 83, 0.35),
    transparent
  );
  margin: 10px 0;
}

@media (max-width: 1024px) {
  .landing-layout,
  .form-shell,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .hero-stats,
  .split-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .topbar {
    border-radius: 28px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .panel,
  .summary-card,
  .form-card,
  .form-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-stats,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .summary-top,
  .account-top,
  .activity-top,
  .service-top,
  .panel-top,
  .helper-row,
  .panel-footer,
  .auth-footer,
  .footer-note {
    flex-direction: column;
    align-items: stretch;
  }
}

.no-no-no-link {
  text-decoration: none;
  color: inherit;
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
}
