* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "MontserratArabic", sans-serif;
  min-height: 100vh;
  color: #142321;
  background:
    radial-gradient(55% 45% at 85% 10%, color-mix(in oklab, var(--primary-color) 22%, transparent), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, color-mix(in oklab, var(--accent-color) 20%, transparent), transparent 75%),
    linear-gradient(140deg, #f4f8f7, #ecf2f0 55%, #f9fbfb);
}

.public-shell {
  padding: 28px 18px 32px;
}

.hero {
  background: color-mix(in oklab, var(--secondary-color) 86%, white);
  color: #f7fffc;
  border-radius: 26px;
  padding: 34px 24px;
  margin-bottom: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  isolation: isolate;
}

.hero-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: color-mix(in oklab, var(--primary-color) 78%, white);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.hero-logo-wrap {
  width: min(92%, 520px);
  min-height: 64px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  padding: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 520px);
  max-height: clamp(80px, 22vw, 220px);
  object-fit: contain;
  object-position: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero p {
  margin: 8px 0 0;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: clamp(1rem, 6vw, 1.6rem);
  }

  .hero-logo-wrap {
    width: min(96%, 320px);
    margin-bottom: 8px;
  }

  .hero-logo {
    max-height: clamp(70px, 28vw, 130px);
  }
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.compact-layout .links-grid {
  gap: 10px;
}

.link-card {
  display: grid;
  grid-template-columns: 1fr 76px;
  align-items: stretch;
  gap: 12px;
  border-radius: 20px;
  padding: 18px;
  text-decoration: none;
  color: var(--link-text);
  background: var(--link-bg);
  border: 1px solid color-mix(in oklab, var(--link-accent) 28%, #dbe5e3);
  box-shadow: 0 18px 45px rgba(10, 25, 24, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-layout .link-card {
  padding: 14px;
  grid-template-columns: 1fr 64px;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(10, 25, 24, 0.14);
}

.link-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.link-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.link-title {
  font-weight: 800;
  font-size: 1.03rem;
}

.link-icon {
  width: 100%;
  height: 100%;
  min-height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  color: color-mix(in oklab, var(--link-accent) 75%, #1f2d2a);
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--link-accent) 24%, transparent),
    color-mix(in oklab, var(--link-accent) 10%, transparent)
  );
}

.link-desc {
  font-size: 0.92rem;
  opacity: 0.85;
}

.empty-state {
  margin-top: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(20, 35, 33, 0.2);
  padding: 22px;
  text-align: center;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #4d615d;
  font-weight: 700;
}