:root {
  --clr-primary: #7460f0;
  --clr-primary-light: #bbacff;
  --clr-primary-dark: #7460f0;
  --clr-accent: #ff9f00;
  --clr-accent-dark: #ed980c;
  --clr-bg-light: #f8fbfc;
  --clr-text: #1a1a1a;

  --radius-lg: 1.5rem;
  --radius-sm: 0.75rem;

  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.05);

  --font-heading: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
}

/* Utility for logo image height */
.logo-img { height: 5rem; }
/* @media (min-width: 768px) { .logo-img { height: 2.5rem; } } */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 2rem;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn:hover {
	background: var(--clr-accent-dark);
	box-shadow: var(--shadow-lg);
}

.signup {
	font-size: 1.2rem;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 9rem 1.5rem 7rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.08;
  pointer-events: none;   /* clicks fall through to elements underneath */
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* Stats */
.stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  min-width: 110px;
}

.stat h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.stat p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Sections */
section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--clr-primary-dark);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--clr-accent);
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  background: var(--clr-primary);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  background: var(--clr-accent);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Pricing */
.pricing {
  background: #fff;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.pricing h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--clr-accent);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 4rem;
  color: var(--clr-accent);
  opacity: 0.3;
}

.testimonial strong {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

/* CTA */
.cta {
  background: var(--clr-primary-dark);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-lg);
}

/* Footer */
footer {
  margin-top: 5rem;
  background: var(--clr-text);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
}

footer a {
  color: var(--clr-accent);
}

/* Modal overlay + blur */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Window */
.modal-window {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 320px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.modal-text {
  margin-bottom: 1rem;
}

.qr-img {
  width: 186px;
  height: 186px;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 4.5rem auto 5rem;
  padding: 0 1.5rem;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--clr-primary-dark);
  margin: 0;
}
.page-header .btn {
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
}

/* Invoice table */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.invoice-table thead {
  background: var(--clr-primary-dark);
  color: #fff;
}
.invoice-table th,
.invoice-table td {
  padding: 1rem;
  text-align: left;
}
.invoice-table tbody tr:nth-child(even) {
  background: var(--clr-bg-light);
}
.invoice-table tbody tr:hover {
  background: var(--clr-primary-light);
  color: #fff;
  cursor: pointer;
}
.invoice-table th:first-child,
.invoice-table td:first-child {
  padding-left: 2rem;
}
.invoice-table th:last-child,
.invoice-table td:last-child {
  text-align: right;
  padding-right: 2rem;
}

.status-paid {
  color: #2e7d32;
  font-weight: 700;
}
.status-pending {
  color: var(--clr-accent);
  font-weight: 700;
}
.status-overdue {
  color: #c62828;
  font-weight: 700;
}
