/* ---------- Fonts ---------- */

@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/Rubik-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("../assets/fonts/SofiaPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("../assets/fonts/SofiaPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("../assets/fonts/SofiaPro-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("../assets/fonts/SofiaPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --color-primary: #004645;
  --color-primary-deep: #041f1e;
  --color-accent: #eeab88;
  --color-text: #f4f7ff;
  --color-text-muted: rgba(244, 247, 255, 0.7);
  --color-text-faint: rgba(244, 247, 255, 0.52);

  --card-bg: rgba(244, 247, 255, 0.055);
  --card-bg-hover: rgba(244, 247, 255, 0.085);
  --card-border: rgba(244, 247, 255, 0.12);
  --card-border-hover: rgba(244, 247, 255, 0.28);

  --cta-bg: rgba(0, 70, 69, 0.66);
  --cta-border: rgba(244, 247, 255, 0.2);
  --cta-border-hover: rgba(238, 171, 136, 0.42);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-full: 999px;

  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.36);
  --shadow-card: 0 3px 14px rgba(0, 0, 0, 0.18);
  --shadow-button: 0 6px 16px rgba(0, 0, 0, 0.22);

  --font-heading: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Sofia Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 480px;
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-primary-deep);
  background-image:
    linear-gradient(rgba(244, 247, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout ---------- */

.page {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px 22px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Header ---------- */

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 32px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.brand-title {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 360px;
}

.brand-subtitle {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-faint);
  max-width: 330px;
}

/* ---------- Featured CTA ---------- */

.featured-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  padding: 28px 26px 26px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.featured-cta:hover {
  transform: translateY(-2px);
  border-color: var(--cta-border-hover);
}

.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--color-accent);
}

.cta-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  flex-shrink: 0;
}

.cta-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-top: 3px;
}

.cta-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.cta-button {
  align-self: stretch;
  text-align: center;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-primary-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-button);
  transition: filter 0.2s ease;
}

.featured-cta:hover .cta-button {
  filter: brightness(1.06);
}

/* ---------- Link cards ---------- */

.link-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.link-card:hover {
  transform: translateY(-1px);
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
}

.link-card--disabled {
  cursor: default;
  opacity: 0.82;
}

.link-card--disabled:hover {
  transform: none;
  background: var(--card-bg);
  border-color: var(--card-border);
}

.link-badge {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.link-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(244, 247, 255, 0.055);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 247, 255, 0.82);
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.link-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
}

.link-description {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244, 247, 255, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-arrow {
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: transform 0.18s ease, color 0.18s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(2px);
  color: var(--color-text);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.social-list {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.social-icon:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  color: var(--color-text);
}

.footer-text {
  font-size: 12.5px;
  color: var(--color-text-faint);
}

/* ---------- Desktop refinement ---------- */

@media (min-width: 640px) {
  :root {
    --content-width: 620px;
  }

  .page {
    padding: 88px 32px 64px;
  }

  .header {
    gap: 22px;
    margin-bottom: 44px;
  }

  .logo-mark {
    width: 56px;
    height: 56px;
  }

  .brand-name {
    font-size: 30px;
  }

  .brand-title {
    font-size: 16px;
    max-width: 420px;
  }

  .brand-subtitle {
    font-size: 14px;
    max-width: 380px;
  }

  .featured-cta {
    padding: 34px 34px 32px;
    margin-bottom: 40px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 14.5px;
  }

  .cta-button {
    align-self: flex-start;
    padding: 13px 30px;
  }

  .link-list {
    gap: 16px;
    margin-bottom: 60px;
  }

  .link-card {
    padding: 20px 24px;
  }

  .link-title {
    font-size: 16px;
  }

  .link-description {
    font-size: 14px;
  }

  .link-card:hover {
    transform: translateY(-2px);
  }

  .link-card--disabled:hover {
    transform: none;
  }

  .footer {
    margin-top: 16px;
  }
}
