:root {
  --bg: #0a0a0c;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-secondary: #98989d;
  --text-tertiary: #636366;
  --green: #30d158;
  --green-hover: #34e45f;
  --green-dim: rgba(48, 209, 88, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: contain;
}

.btn-appstore-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-appstore-sm:hover {
  background: var(--surface-3);
  border-color: rgba(255,255,255,0.22);
  text-decoration: none;
}

.btn-appstore-sm svg { flex-shrink: 0; }

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(48, 209, 88, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

.btn-appstore-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: #000;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 16px;
}

.btn-appstore-lg:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-sub-note {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ── App Window Mockup ── */
.hero-visual {
  margin-top: 72px;
  display: flex;
  justify-content: center;
}

.app-window {
  width: 100%;
  max-width: 680px;
  background: #1c1c1e;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 60px 120px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,0,0,0.5);
  overflow: hidden;
  text-align: left;
}

.window-titlebar {
  background: #242426;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.traffic-lights {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tl.red    { background: #ff5f57; }
.tl.yellow { background: #febc2e; }
.tl.grn    { background: #28c840; }

.window-title-text {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.titlebar-pills {
  display: flex;
  gap: 6px;
}

.tb-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 20px;
  color: var(--text-secondary);
  background: transparent;
}

.tb-pill.active {
  background: var(--surface-3);
  color: var(--text);
}

.window-body {
  padding: 32px 28px 28px;
}

.salary-display {
  text-align: right;
  margin-bottom: 32px;
}

.salary-amount {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -3px;
  color: var(--text);
  line-height: 1;
}

.salary-currency {
  font-size: 42px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-left: 8px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.result-card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.result-card-text { flex: 1; }

.result-card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.result-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.result-card-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.window-table-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.wtab {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text);
}

.wtab.inactive {
  background: transparent;
  color: var(--text-secondary);
}

.window-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.window-table thead th {
  text-align: right;
  color: var(--text-secondary);
  padding-bottom: 8px;
  font-weight: 500;
  font-size: 12px;
}

.window-table thead th:first-child { text-align: left; }

.window-table tbody tr {
  border-top: 1px solid var(--border);
}

.window-table tbody td {
  padding: 9px 0;
  text-align: right;
  color: var(--text-secondary);
}

.window-table tbody td:first-child {
  text-align: left;
  color: var(--text);
}

.window-table tbody td.bold {
  font-weight: 700;
  color: var(--text);
}

/* ── Features ── */
.features {
  padding: 100px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 60px;
  max-width: 560px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: #212123;
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: var(--green-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(48, 209, 88, 0.2);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Profile Section ── */
.profile-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(48,209,88,0.03) 50%, transparent 100%);
}

.profile-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.profile-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.profile-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.profile-tag {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Tax profile window mockup */
.profile-window {
  background: #1c1c1e;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 40px 80px rgba(0,0,0,0.7);
  overflow: hidden;
}

.profile-window .window-titlebar {
  justify-content: flex-start;
}

.modal-body {
  padding: 24px;
}

.modal-section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.profile-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.profile-type-btn {
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-type-btn.active {
  border-color: var(--green);
  color: var(--text);
  background: rgba(48,209,88,0.08);
}

.profile-type-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-tertiary);
  margin: 0 auto 8px;
}

.profile-type-btn.active .dot {
  border-color: var(--green);
  background: var(--green);
}

.modal-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.mock-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--surface-3);
  flex-shrink: 0;
  background: transparent;
}

.modal-subsection {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.modal-subsection-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
}

.stepper-btn.minus { background: var(--surface-3); color: var(--text-secondary); }
.stepper-btn.plus  { background: var(--green); color: #000; font-weight: 600; }

.stepper-value { font-weight: 600; font-size: 15px; min-width: 20px; text-align: center; }

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 36px;
}

.cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-note {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Legal pages ── */
.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.legal-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-content {
  max-width: 720px;
  padding-bottom: 100px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 48px 0 14px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  margin: 10px 0 18px 20px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content a { color: var(--green); }

.legal-highlight {
  background: var(--green-dim);
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.legal-highlight strong { color: var(--green); }

/* ── Responsive ── */
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 { letter-spacing: -1.5px; }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo-text { display: none; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-box { padding: 48px 24px; }

  .salary-amount { font-size: 42px; }
  .salary-currency { font-size: 30px; }

  .profile-type-grid { grid-template-columns: 1fr; }
}
