/* ============================================
   GLAMZY — styles.css
   Dark luxe aesthetic | Mobile-first
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0e0c0f;
  --bg-card:   #161219;
  --bg-card-2: #1a161e;
  --border:    rgba(255, 255, 255, 0.08);
  --border-md: rgba(255, 255, 255, 0.14);

  --text-primary:   #f0ece8;
  --text-secondary: rgba(240, 236, 232, 0.5);
  --text-muted:     rgba(240, 236, 232, 0.3);

  --plus-color: #2dccc7;
  --me-color:   #ced6ed;
  --two-color:  #d31c5b;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', Helvetica, Arial, sans-serif;

  --nav-h: 64px;
  --radius-card: 5px;
  --radius-btn:  6px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--text-primary);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link--pink {
  color: var(--two-color);
}

/* --- HERO --- */
.hero {
  padding: calc(var(--nav-h) + 80px) 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--two-color);
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 380px;
}

.hero-line {
  width: 40px;
  height: 1px;
  background: var(--border-md);
  margin-top: 48px;
}

/* --- APPS SECTION --- */
.apps-section {
  padding: 20px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.apps-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- APP CARD --- */
.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.35s;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

/* Faded background image — bleeds in from right */
.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.5;
  transition: opacity 0.4s;
  -webkit-mask-image: linear-gradient(to left, black 0%, black 20%, transparent 100%);
  mask-image: linear-gradient(to left, black 0%, black 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.app-card:hover::before {
  opacity: 0.28;
}

/* All card children sit above the bg image */
.card-accent,
.card-platform,
.card-body {
  position: relative;
  z-index: 1;
}

.card-plus::before  { background-image: url('img/glamzy_plus_bg.jpg'); }
.card-me::before    { background-image: url('img/glamzy_me_bg.jpg'); }
.card-two::before   { background-image: url('img/glamzy_2_bg.jpg'); }

@media (-webkit-min-device-pixel-ratio: 2) {
  .card-plus::before { background-image: url('img/glamzy_plus_bg_r.jpg'); }
  .card-me::before   { background-image: url('img/glamzy_me_bg_r.jpg'); }
  .card-two::before  { background-image: url('img/glamzy_2_bg_r.jpg'); }
}

.card-plus:hover { border-color: rgba(45, 204, 199, 0.25); }
.card-me:hover   { border-color: rgba(211, 28, 91, 0.25); }
.card-two:hover  { border-color: rgba(232, 221, 212, 0.18); }

/* Accent bar on left edge */
.card-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
}
.card-accent-plus { background: linear-gradient(to bottom, var(--plus-color), transparent); }
.card-accent-me   { background: linear-gradient(to bottom, var(--me-color), transparent); }
.card-accent-two  { background: linear-gradient(to bottom, var(--two-color), transparent); }

/* Platform label */
.card-platform {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 32px 40px 0;
}

/* Card body — horizontal layout on wider screens */
.card-body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  padding: 20px 40px 66px;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-body {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 48px;
    row-gap: 12px;
  }

  .card-logo-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .card-tagline {
    grid-column: 1;
    grid-row: 2;
    padding-bottom: 30px;
  }

  .btn {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
}

.card-logo-wrap {
  display: flex;
  align-items: center;
}

.card-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.card-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-secondary);
  padding-bottom: 24px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 20px 30px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  /* letter-spacing: 0.12em; */
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-plus {
  color: var(--plus-color);
  border-color: rgba(45, 204, 199, 0.5);
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);

}
.btn-plus:hover {
  background: rgba(45, 204, 199, 0.8);
}

.btn-two {
  color: var(--two-color);
  border-color: var(--two-color);
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);

}
.btn-two:hover {
  background: color-mix(in srgb, var(--two-color) 80%, transparent);
}

.btn-me {
  color: var(--me-color);
  border-color: var(--me-color);
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);

}
.btn-me:hover {
  background: color-mix(in srgb, var(--me-color) 80%, transparent);
}



/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-address,
.footer-phone {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-phone {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-phone:hover {
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- SUBTLE BACKGROUND TEXTURE --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(211, 28, 91, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(45, 204, 199, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}
