/* ============================
   Brand Page
   ============================ */

.brand-hero {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 240px 24px 80px;
}
.brand-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.brand-hero p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
}
.brand-hero .brand-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--text-primary);
  color: var(--bg-primary);
  text-decoration: none;
  transition: var(--transition);
}
.brand-hero .brand-download:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Section */
.brand-section {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.brand-section-header {
  margin-bottom: 40px;
}
.brand-section-header h2 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.brand-section-header p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}
.brand-section-header p + p {
  margin-top: 12px;
}

/* 3-column grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.brand-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.brand-card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 40px;
}
.brand-card-preview.dark {
  background: var(--bg-primary);
}
.brand-card-preview.light {
  background: #F6F6F6;
}
.brand-card-preview.green {
  background: var(--green-300);
}
.brand-card-preview img,
.brand-card-preview svg {
  max-width: 60%;
  max-height: 48px;
  object-fit: contain;
}
.brand-card-preview .brand-favicon {
  max-width: 64px;
  max-height: 64px;
  border-radius: 16px;
}

.brand-card-info {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.brand-card-info h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.brand-card-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Hover interaction for clickable cards */
.brand-clickable {
  cursor: pointer;
  transition: border-color var(--transition);
}
.brand-clickable:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.brand-card-info-hover {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.brand-card-info-hover p {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.brand-clickable:hover .brand-card-info-hover {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

/* Color swatch */
.brand-swatch {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.brand-swatch-color {
  aspect-ratio: 3 / 2;
}
.brand-swatch-info {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.brand-swatch-info h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.brand-swatch-info .brand-hex {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  cursor: pointer;
  transition: color var(--transition);
}
.brand-swatch-info .brand-hex:hover {
  color: var(--text-primary);
}

/* Gradient card */
.brand-gradient {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.brand-gradient-preview {
  aspect-ratio: 3 / 2;
}
.brand-gradient-info {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.brand-gradient-info h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.brand-gradient-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
}

/* Typography section */
.brand-type-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.brand-type-sample {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.brand-type-sample.mono {
  font-family: var(--mono);
  font-size: 1.6rem;
  letter-spacing: 0;
}
.brand-type-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-type-meta h3 {
  font-size: 14px;
  font-weight: 500;
}
.brand-type-meta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Usage guidelines */
.brand-usage {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px;
}
.brand-usage h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.brand-usage ul {
  list-style: none;
  padding: 0;
}
.brand-usage li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.brand-usage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-100);
}

/* Full-width span */
.brand-grid-full {
  grid-column: 1 / -1;
}

/* Divider */
.brand-divider {
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 80px;
}
.brand-divider hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .brand-hero {
    padding: 160px 20px 60px;
  }
  .brand-section {
    padding: 0 20px 60px;
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .brand-divider {
    padding: 0 20px;
    margin-bottom: 60px;
  }
}
