@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: light;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: radial-gradient(circle at 10% 20%, #fdfefe, #eef2f9 35%, #dae2f1 70%);
  --card-bg: #ffffff;
  --card-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  --shell-shadow: 0 40px 70px rgba(15, 23, 42, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #56627a;
  --accent: linear-gradient(135deg, #3e7bff, #2f9bff 70%);
  --muted-blue: #e4ecff;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  color: var(--text-primary);
}

.main-shell {
  width: min(1200px, 100%);
  background: var(--card-bg);
  border-radius: 36px;
  padding: clamp(26px, 5vw, 52px);
  box-shadow: var(--shell-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
}

.brand-logo-chip {
  width: min(160px, 70%);
  height: 64px;
  margin: 0 auto 18px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.1));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.brand-card {
  position: relative;
  background: linear-gradient(180deg, #fdfefe, #f4f7fb);
  padding: 30px 24px 26px;
  border-radius: 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(34, 90, 196, 0.08);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  overflow: hidden;
}

.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--accent);
  z-index: 0;
  transition: opacity 250ms ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  border-color: rgba(47, 155, 255, 0.45);
}

.brand-card:hover::after,
.brand-card:focus-visible::after {
  opacity: 0.08;
}

.brand-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--muted-blue);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.brand-hero-logo {
  width: min(240px, 70vw);
  margin: 0 auto 20px;
  padding: 18px 22px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.brand-card span {
  color: var(--text-secondary);
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.callout {
  margin-top: 40px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(47, 155, 255, 0.08);
  font-size: 15px;
  text-align: center;
  color: #1164d9;
  border: 1px solid rgba(47, 155, 255, 0.2);
}

.brand-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-page header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-page header h1 {
  font-size: clamp(30px, 6vw, 50px);
}

.brand-page header p {
  color: var(--text-secondary);
  font-size: clamp(16px, 2.2vw, 20px);
}

.brand-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.meta-card {
  padding: 20px;
  border-radius: 24px;
  background: #fcfdff;
  border: 1px solid rgba(34, 90, 196, 0.08);
  box-shadow: var(--card-shadow);
}

.meta-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.meta-card span {
  font-size: 18px;
  font-weight: 600;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(34, 90, 196, 0.08);
}

.price-table thead {
  background: rgba(47, 155, 255, 0.08);
}

.price-table th,
.price-table td {
  padding: 18px 20px;
  text-align: right;
  font-size: 15px;
}

.price-table tbody tr + tr {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions-row a {
  flex: 1;
  min-width: 180px;
  padding: 16px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  background: var(--accent);
  box-shadow: 0 18px 35px rgba(79, 143, 247, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(15, 23, 42, 0.55);
}

.actions-row a.secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .main-shell {
    border-radius: 24px;
    padding: 24px;
  }
}
