/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #eef0f7;
  color: #1d1d1f;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

/* Helpers */
.section {
  padding: 70px 0;
}

.section-muted {
  background: #fafafa;
}

.parallax {
  position: relative;
  background-image: url("images/bg.jpg");
  background-size: 100% 125%;
  background-position: center calc(100% + 10px + var(--parallax-y, 0px));
  background-attachment: scroll;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 247, 251, 0.92);
  z-index: 0;
}

.parallax > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.section-header p {
  color: #555;
  max-width: 720px;
}

.muted {
  color: #666;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7a7f8a;
  margin-bottom: 16px;
}

/* Header */
.header {
  padding: 20px 0;
  background: #f6f7fb;
  border-bottom: 1px solid #eee;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: #ff6b00;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 6px;
}

.lang-btn {
  border: 1px solid #d6d8df;
  background: transparent;
  color: #333;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
}

.nav-cta {
  padding: 8px 16px;
  font-size: 14px;
}

.admin-link {
  color: #ff6b00;
}

/* Hero */
.hero {
  padding: 40px 0 70px;
}

.hero-panel {
  position: relative;
  background-image: url("images/bg.jpg");
  background-size: 100% 125%;
  background-position: center calc(100% + 10px + var(--parallax-y, 0px));
  border-radius: 26px;
  padding: 36px;
  min-height: 420px;
  box-shadow: 0 10px 28px rgba(27, 30, 37, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(246, 247, 251, 0.9) 5%, rgba(246, 247, 251, 0.35) 60%, rgba(246, 247, 251, 0.1) 100%);
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(246, 247, 251, 0.88);
  border-radius: 22px;
  padding: 28px;
  max-width: 520px;
  box-shadow: 0 8px 22px rgba(27, 30, 37, 0.12);
  backdrop-filter: blur(6px);
}

.hero-card h1 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: #444;
  max-width: 560px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.cta-inline {
  flex-direction: row;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn:hover {
  opacity: 0.9;
}

.btn-apple,
.btn-android {
  background: #000;
  color: #fff;
}

.btn-lawyer {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
}

.btn-outline {
  border-color: #ff6b00;
  color: #ff6b00;
  background: transparent;
}

.btn-admin {
  background: #111;
  color: #fff;
}

.hero-app {
  position: relative;
  z-index: 1;
  max-width: 30%;
  height: auto;
  transform: translateX(-20px);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.about-title h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.about-text p + p {
  margin-top: 14px;
}

/* Features */
.features-alt {
  padding-top: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-tile {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(27, 30, 37, 0.06);
}

.feature-tile h3 {
  margin-bottom: 12px;
  color: #3b3f4a;
}

.feature-tile p {
  color: #5b606c;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.store-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-toggle {
  display: flex;
  gap: 6px;
  background: #f1f2f5;
  border-radius: 8px;
  padding: 3px;
}

.qr-toggle button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.2;
  color: #5b606c;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.qr-toggle button.is-active {
  background: #fff;
  color: #111;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.card h3 {
  margin-bottom: 10px;
  color: #ff6b00;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.admin-info h2 {
  margin-bottom: 10px;
}

/* Partners */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-pill {
  background: #f6f7fb;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #585d67;
  border: 1px solid #e4e6ed;
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.use-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(27, 30, 37, 0.08);
  display: grid;
  gap: 18px;
}

.use-card-body h3 {
  margin-bottom: 10px;
}

.use-card-media {
  background: #f6f7fb;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: center;
}

.use-card-media img {
  max-width: 70%;
  height: auto;
  border-radius: 16px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: #5b606c;
}

.list li::before {
  content: "•";
  margin-right: 8px;
  color: #ff6b00;
}

/* Internal pages */
.page {
  min-height: 100vh;
  background: #f8f8f8;
}

.page-header {
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.page-content {
  padding: 40px 0 80px;
}

.panel {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.panel h1 {
  margin-bottom: 12px;
}

.panel p {
  color: #555;
}

.form {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 15px;
}

.form-row textarea {
  min-height: 96px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.notice {
  background: #fff4e6;
  color: #7a3c00;
  border: 1px solid #ffd2a8;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.status-pending {
  background: #fff4d6;
  color: #8a5b00;
}

.status-approved {
  background: #e8f7ee;
  color: #1f7a3a;
}

.status-rejected {
  background: #fdecec;
  color: #a32626;
}

/* Admin table */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.table th {
  background: #fafafa;
  font-weight: 600;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.btn-small.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Footer */
.footer {
  padding: 30px 0;
  background: #f5f5f5;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #333;
  margin: 0 10px;
  text-decoration: none;
}

.footer-info {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
}

.footer-info a {
  color: #333;
  text-decoration: none;
}

.footer-icp {
  margin-top: 8px;
  font-size: 12px;
}

.footer-icp a {
  color: #666;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-card h1 {
    margin: 0 auto 24px;
  }

  .cta-buttons {
    align-items: center;
  }

  .hero-card,
  .about-title,
  .use-text {
    text-align: center;
  }

  .cta-inline {
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .download-grid,
  .cards-grid,
  .features-grid,
  .about-grid,
  .hero-panel,
  .use-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel {
    flex-direction: column;
    text-align: center;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-app {
    max-width: 70%;
  }
}