/* ── GOTHAM ──────────────────────────────────── */

@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamLight.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamLight-Italic.otf') format('opentype');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBook.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBook-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamMedium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamMedium-Italic.otf') format('opentype');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBold-Italic.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBlack.otf') format('opentype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── TOKENS ──────────────────────────────────── */

:root {
  --cream:       #F5F0E8;
  --cream-card:  #FEFCF8;
  --charcoal:    #1C1C1C;
  --mid:         #5A5550;
  --teal:        #48B599;
  --teal-dark:   #369E84;
  --coral:       #D9562A;
  --coral-dark:  #C4481E;
  --border:      #DDD5C4;
  --shadow:      0 2px 20px rgba(0,0,0,0.06);
  --radius:      12px;
  --font:        'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 38px;
  display: block;
  mix-blend-mode: multiply;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--teal); }

.nav-links .btn-nav {
  background: var(--teal);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-links .btn-nav:hover { background: var(--teal-dark); }

/* ── BUTTONS ─────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary  { background: var(--teal);  color: #fff; }
.btn-primary:hover  { background: var(--teal-dark);  transform: translateY(-1px); }

.btn-download { background: var(--coral); color: #fff; }
.btn-download:hover { background: var(--coral-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--charcoal); }

.btn-buy {
  background: var(--coral);
  color: #fff;
  font-size: 1rem;
  padding: 14px 30px;
}
.btn-buy:hover { background: var(--coral-dark); transform: translateY(-1px); }

.sidebar-note {
  font-size: 0.76rem;
  color: var(--mid);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── PLATFORM TABS ───────────────────────────── */

.platform-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.platform-tab {
  flex: 1;
  padding: 6px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
}

.platform-tab.active {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(72,181,153,0.07);
}

.platform-tab.soon {
  opacity: 0.38;
  cursor: not-allowed;
  font-size: 0.68rem;
}

.platform-tab:not(.soon):hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── HERO (home) ─────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px 24px 72px;
}

.hero-logo {
  width: 220px;
  mix-blend-mode: multiply;
  margin-bottom: 44px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 620px;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── SHARED SECTION CHROME ───────────────────── */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 48px;
}

/* ── APP CARDS (homepage) ────────────────────── */

.section-intro {
  max-width: 760px;
  font-size: 1.02rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 48px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.app-card.coming-soon {
  background: var(--cream);
}

.app-card.coming-soon:hover {
  box-shadow: none;
  transform: none;
}

.badge-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px dashed var(--teal);
  color: var(--teal);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 18px;
  margin-left: 8px;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--mid);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.app-card h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.app-card p {
  color: var(--mid);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.link-arrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
}

.link-arrow:hover { gap: 9px; }

/* ── DIVIDER ─────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── PAGE HERO (inner pages) ─────────────────── */

.page-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 540px;
  line-height: 1.7;
}

/* ── APP DETAIL (apps page) ──────────────────── */

.app-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 24px;
}

.app-header { margin-bottom: 44px; }

.app-name {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 14px 0 16px;
}

.app-tagline {
  font-size: 1.15rem;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.55;
}

.app-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.app-description p {
  font-size: 1.02rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 18px;
}

.app-description p:last-child { margin-bottom: 0; }

.app-sidebar {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 80px;
}

.app-sidebar-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.download-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.app-meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.9;
}

/* ── ABOUT BODY ──────────────────────────────── */

.about-body {
  max-width: 660px;
  margin: 0 auto;
  padding: 8px 24px 96px;
}

.about-body p {
  font-size: 1.02rem;
  color: var(--mid);
  line-height: 1.82;
  margin-bottom: 22px;
}

.about-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}

.about-body a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.about-body a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img {
  height: 26px;
  mix-blend-mode: multiply;
  opacity: 0.65;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--teal); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--border);
}

/* ── RESPONSIVE ──────────────────────────────── */

@media (max-width: 900px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .apps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .app-sidebar {
    position: static;
    order: -1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links { gap: 18px; }

  .hero { padding: 60px 20px 52px; }
}
