/* ===== CSS Variables ===== */
:root {
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --background: #fcfbf8;
  --surface: #ffffff;
  --surface-dark: #1a1c2e;
  --foreground: #1e2030;
  --primary: #22c9a3;
  --primary-foreground: #1e2030;
  --secondary: #f5f4f0;
  --secondary-foreground: #1e2030;
  --muted: #f5f4f0;
  --muted-foreground: #7a7c8e;
  --accent: #d8f5ee;
  --accent-foreground: #1e2030;
  --border: #e2e1dc;
  --input: #e2e1dc;
  --highlight: #f0e6a0;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Poppins";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
}

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

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
}

/* ===== Utility Classes ===== */
.min-h-screen {
  min-height: 100vh;
}

.text-primary {
  color: var(--primary);
}

/* ===== Icon Sizes ===== */
.icon-sm {
  width: 20px;
  height: 20px;
}

.icon-xs {
  width: 16px;
  height: 16px;
}

/* ===== Header ===== */
.header {
  width: 100%;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 24px;
  }
}

/* Logo */
.logo {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: rgba(34, 201, 163, 0.2);
}

.logo-diamond {
  display: block;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background-color: var(--primary);
}

.logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 12px;
  }
}

.btn-dashboard {
  display: none;
  border-radius: 6px;
  border: 1px solid rgba(30, 32, 48, 0.8);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  transition:
    background-color 0.2s,
    color 0.2s;
}

@media (min-width: 640px) {
  .btn-dashboard {
    display: inline-flex;
    align-items: center;
  }
}

.btn-dashboard:hover {
  background-color: var(--foreground);
  color: var(--background);
}

.shield-badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* ===== Hero Section ===== */
.hero {
  background-color: var(--surface-dark);
  color: var(--background);
}

.hero-inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  margin-top: 28px;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(252, 251, 248, 0.8);
}

/* Registration Form */
.reg-form {
  margin-top: 40px;
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--primary);
}

@media (min-width: 640px) {
  .reg-form {
    flex-direction: row;
  }
}

.reg-input {
  flex: 1;
  background-color: var(--surface);
  padding: 16px 24px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--foreground);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
}

.reg-input::placeholder {
  color: rgba(30, 32, 48, 0.6);
}

@media (min-width: 640px) {
  .reg-input {
    text-align: left;
  }
}

.reg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  padding: 16px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s;
}

.reg-btn:hover {
  filter: brightness(0.95);
}

/* Badge List */
.badge-list {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.badge {
  border-radius: 9999px;
  background-color: rgba(252, 251, 248, 0.1);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(252, 251, 248, 0.9);
}

/* ===== Listings Section ===== */
.listings-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 64px 24px;
}

.listings-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted-foreground);
  text-align: center;
}

.listings-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Listing Card */
.listing-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
  .listing-card {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 32px;
  }
}

.listing-year-box {
  display: flex;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--accent);
}

@media (min-width: 768px) {
  .listing-year-box {
    width: 112px;
    height: 112px;
  }
}

.year-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.reg-tag {
  margin-top: 4px;
  border-radius: 3px;
  background-color: var(--highlight);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.listing-info {
  flex: 1;
}

.listing-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.listing-details-label {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.detail-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  background-color: var(--accent);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-foreground);
}

.listing-meta {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.listing-status {
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.listings-cta {
  margin-top: 24px;
  font-size: 16px;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== Steps Section ===== */
.steps-section {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 24px 64px;
}

.steps-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 32px;
}

@media (min-width: 768px) {
  .steps-card {
    padding: 40px;
  }
}

.steps-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brand-registration-form {
    flex-direction: row;
  }
  .brand-registration-form-control {
    text-align: left;
  }
}

.step-image-wrapper {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  height: 219px;
}

.step-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  height: 100%;
}
.brand-registration-form-control {
  flex: 1;
  height: 100%;
  background-color: var(--surface);
  padding: 16px 24px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--foreground);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
}
.brand-registration-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s;
  width: 100%;
}
.brand-registration-form-invalid-feedback {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--error);
  padding: 6px 12px;
  text-align: center;
  background-color: rgba(198, 40, 40, 0.06);
}
.brand-registration-form-group {
  position: relative;
}

.brand-registration-form-group.invalid
  .brand-registration-form-invalid-feedback {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e2e1dc;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c62828;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.step-number {
  display: block;
  margin-top: 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.step-title {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-desc {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.brand-registration-form {
  margin-top: 40px;
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  border-radius: 6px;
  border: 2px solid var(--primary);
}
/* ===== About / FAQ Section ===== */
.about-section {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.about-content {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.faq-title {
  margin-top: 48px;
  letter-spacing: -0.02em;

  font-size: 38px;
  font-weight: 600;
}

.faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-item {
  padding: 16px 0;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-question {
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  font-weight: 600;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: "";
}
.faq-question::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question {
  display: flex;
  align-items: center;
}
.faq-answer {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
}

.faq-item[open] .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 12px;
  font-size: 17px;
}

/* ===== CTA Section ===== */
.cta-section {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px 96px;
  text-align: center;
}

.cta-title {
  letter-spacing: -0.02em;

  font-size: 36px;
  font-weight: 600;
}

.cta-subtitle {
  margin-top: 18px;
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  color: var(--muted-foreground);
}

.cta-button {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background-color: var(--primary);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-foreground);
  transition: filter 0.2s;
}

.cta-button:hover {
  filter: brightness(0.95);
}
@media (max-width: 768px) {
  .brand-registration-form {
    display: flex;
    flex-direction: column;
  }
  .brand-registration-form-control {
    width: 100%;
  }
}
