/* AppleSMP official website v4
   Warm, personal, store-forward, no generic AI grid/glass look.
*/

:root {
  --red: #f21616;
  --red-soft: #f55d5d;
  --green: #7fb685;
  --green-soft: #b9e3c6;
  --cream: #eef7ef;
  --cream-2: #d8ecd9;
  --paper: #f7fff8;
  --ink: #172418;
  --muted: #4f6651;
  --soft: #6f8a72;
  --line: #c9dfcb;
  --line-strong: #a7c9aa;
  --brown: #24442a;
  --brown-2: #132518;
  --shadow: 0 18px 45px rgba(22, 70, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(242, 22, 22, 0.11), transparent 320px),
    radial-gradient(circle at 85% 5%, rgba(185, 227, 198, 0.30), transparent 360px),
    linear-gradient(180deg, #e7f4e8, #f6fff7 42%, #eaf6eb);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  background: var(--brown-2);
  color: #fff;
  font-size: 13px;
}

.top-strip .wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.top-strip strong {
  color: var(--green-soft);
}

.header {
  background: rgba(247, 255, 248, 0.93);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-side.right {
  justify-content: flex-end;
}

.discord-pill,
.ip-pill {
  border: 1px solid var(--line);
  background: #fbfffb;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(70, 35, 22, 0.06);
}

.ip-pill {
  cursor: pointer;
}

.ip-pill small,
.discord-pill small {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-size: 28px;
  line-height: 1;
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(242, 22, 22, 0.16));
}

.logo span {
  color: var(--red);
}

.center-menu {
  border-bottom: 1px solid var(--line);
  background: rgba(238, 247, 239, 0.96);
}

.center-menu nav {
  min-height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.center-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--muted);
}

.center-menu a:hover,
.center-menu a.active {
  color: #fff;
  background: var(--red);
}

.copy-status {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  min-height: 16px;
}

.hero {
  padding: 42px 0 30px;
}

.hero-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 520px;
}

.hero-copy {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #e2f2e4;
  color: var(--red);
  border: 1px solid #b9dcbc;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h1 span,
.red {
  color: var(--red);
}

.lead {
  margin: 22px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fbfffb;
  color: var(--brown);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(70, 35, 22, 0.08);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.button.green {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.hero-image {
  position: relative;
  min-height: 420px;
  background: #1a120f;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,250,246,0.08), transparent 28%),
    linear-gradient(0deg, rgba(35,18,13,0.58), transparent 48%);
}

.photo-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  background: rgba(247, 255, 248, 0.93);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--brown);
  font-weight: 900;
}

.server-box {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 620px;
}

.server-detail {
  background: #fbfffb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.label {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.server-detail strong {
  font-size: 17px;
}

section {
  padding: 38px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.06em;
}

.section-head p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.store-feature {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f7fff8, #e8f6e9);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.store-feature h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.06em;
}

.store-feature p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.store-list {
  display: grid;
  gap: 10px;
}

.store-item {
  display: flex;
  gap: 12px;
  align-items: start;
  background: #fbfffb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.store-item b {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e2f2e4;
  color: var(--red);
  flex: 0 0 auto;
}

.cards,
.links,
.vote-grid,
.rules-grid {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(4, 1fr);
}

.links,
.vote-grid {
  grid-template-columns: repeat(3, 1fr);
}

.rules-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.link-card,
.vote-card,
.rule-card,
.note {
  border: 1px solid var(--line);
  background: #fbfffb;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(70, 35, 22, 0.06);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e2f2e4;
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 950;
  margin-bottom: 14px;
}

.card h3,
.link-card h3,
.vote-card h3,
.rule-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card p,
.link-card p,
.vote-card p,
.rule-card p,
.rule-card li,
.note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.link-card small,
.vote-card small {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-weight: 950;
}

.rule-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.rule-card strong {
  color: var(--brown);
}

.note {
  color: var(--muted);
  line-height: 1.7;
}

.note strong {
  color: var(--brown);
}

.page-hero {
  padding: 42px 0 18px;
}

.page-panel {
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 28px;
  padding: 46px;
  box-shadow: var(--shadow);
}

.page-panel h1 {
  margin: 0 auto;
  max-width: 820px;
}

.page-panel .lead {
  margin-left: auto;
  margin-right: auto;
}

.footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  background: #e7f4e8;
  padding: 32px 0 44px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer strong {
  color: var(--brown);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
}

.placeholder {
  opacity: 0.75;
}

@media (max-width: 940px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .header-side,
  .header-side.right {
    justify-content: center;
  }

  .hero-grid,
  .store-feature {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px;
  }

  .hero-image img {
    min-height: 360px;
  }

  .cards,
  .links,
  .vote-grid,
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .center-menu nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px 0;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-copy,
  .page-panel,
  .store-feature {
    padding: 24px;
  }

  .cards,
  .links,
  .vote-grid,
  .rules-grid,
  .server-box {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }

  .footer-grid {
    display: block;
  }

  .footer-links {
    margin-top: 14px;
  }
}
