/*
 * BlenderSync – Alpha Landing Page
 *
 * BACKGROUND IMAGE
 * Replace the URL in --bg-image below with a locally hosted, compressed WebP
 * image before going to production. The current URL is an Unsplash architectural
 * photograph used as a development placeholder.
 */

/* ─── Custom properties ──────────────────────────────────────────────────── */
:root {
  /* REPLACE this URL with a locally hosted WebP for production */
  --bg-image: url("../img/643817be89d505a474e1218c_605c58b934c222f5e8e10c0d_Why-is-Architectural-Visualization-so-Important-for-Exterior-Design-EASY-RENDER.jpeg");
  --card-hero-image: url("../img/1576980108381.jpg");

  --color-bg-overlay: linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68));
  --color-hero-overlay: linear-gradient(rgba(77, 204, 236, 0), rgba(255, 255, 255,0));

  /* Brand */
  --color-orange:        #e87040;
  --color-orange-light:  #fff3ee;
  --color-orange-border: #f5c9b3;
  --color-orange-sub:    #f5a882;
  --color-blue:          #4a72e8;
  --color-blue-light:    #eef3ff;
  --color-anthracite:    #000000a8;

  /* Neutrals */
  --color-ink:        #1a1a2e;
  --color-border:     #e4e8ef;
  --color-divider:    #f0f2f5;
  --color-muted:      #8a93a2;
  --color-hover-bg:   #f7f9fc;

  /* Card */
  --card-max-width: 920px;
  --card-radius:    16px;

  /* Focus */
  --color-focus-ring: #4a72e8;
}

/* ─── Reset / base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: #0d0d0d; /* fallback before image loads */
}

/* ─── Full-screen page wrapper ───────────────────────────────────────────── */
#page {
  min-height: 100dvh;
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;

  background-image: var(--color-bg-overlay), var(--bg-image);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ─── Logo area (inside card header) ─────────────────────────────────────────── */
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
  margin: 0 -1.75rem 1.6rem;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  background-image:
    var(--color-hero-overlay),
    var(--card-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid rgba(228, 232, 239, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 38px rgba(15, 23, 42, 0.08);
}

.hero-highlights {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border: 1px solid var(--color-divider);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 32px rgba(15, 23, 42, 0.08);
}

.hero-highlights-label {
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7483;
}

.logo-area {
  margin-bottom: 1.25rem;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Circular icon container */
.logo-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.logo-icon img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Text column: wordmark + badge stacked, centered */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Wordmark */
.wordmark {
  display: block;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.wordmark .wordmark-sync {
  color: var(--color-orange);
}

/* Alpha pill badge */
.alpha-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-orange-light);
  border: 1px solid var(--color-orange-border);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-orange);
}

.alpha-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
  flex-shrink: 0;
}

/* ─── Card ───────────────────────────────────────────────────────────────── */
#card {
  width: 100%;
  max-width: var(--card-max-width);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--card-radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

/* ─── Card header ────────────────────────────────────────────────────────── */
.card-header {
  padding: 0 1.75rem 1.6rem;
  border-bottom: 1px solid var(--color-divider);
  background: #ffffff;
}

.card-header h1 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

/* Header copy */
.header-hero {
  max-width: 11ch;
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--color-ink);
  text-align: left;
}

.header-intro {
  max-width: 36rem;
  margin: 0 0 0.9rem;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.58;
  color: #3d4250;
  text-align: left;
}

.header-support {
  max-width: 36rem;
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--color-divider);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--color-muted);
  text-align: left;
}

.header-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.header-summary-item {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.header-summary-title {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-ink);
}

.header-summary-text {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.58;
  color: #4f5766;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.downloads-block {
  margin: 1.6rem 0 0;
  padding: 1rem;
  border-radius: 14px;
  background: var(--color-anthracite);
}
.card-header .downloads-block {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  border-radius: 0;
}

.downloads-heading {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.header-feature-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.1rem;
  row-gap: 0.85rem;
  align-items: start;
}

.header-feature-item {
  position: relative;
  padding: 0.75rem 0 0.85rem 1rem;
  border-top: 1px solid var(--color-divider);
}

.header-feature-item::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

.header-feature-title {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-ink);
}

.header-feature-text {
  display: block;
  font-size: 0.845rem;
  font-weight: 400;
  line-height: 1.62;
  color: #4f5766;
}

@media (max-width: 840px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.35rem 1.75rem 1.2rem;
  }

  .hero-highlights {
    padding: 1rem;
  }

  .addon-grid {
    grid-template-columns: 1fr;
  }

  .header-summary-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Download rows ──────────────────────────────────────────────────────── */
.download-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

/* ─── Addon section grouping ─────────────────────────────────────────────── */
.addon-section {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.addon-section--revit {
  background: var(--color-blue-light);
  border-color: #d7e3ff;
}

.addon-section--blender {
  background: var(--color-orange-light);
  border-color: var(--color-orange-border);
}

.addon-section + .addon-section {
  margin-top: 0;
}

.download-row:hover {
  background-color: var(--color-hover-bg);
}

.download-row:hover .row-name {
  text-decoration: underline;
  text-decoration-color: var(--color-ink);
  text-underline-offset: 2px;
}

.download-row:active {
  background-color: var(--color-divider);
}

/* Icon box */
.row-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.row-icon--revit {
  background: var(--color-blue-light);
}

.row-icon--blender {
  background: var(--color-orange-light);
}

.row-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Meta block */
.row-meta {
  flex: 1;
  min-width: 0;
}

.row-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}

.row-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Right arrow */
.row-arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: #c8cdd6;
  line-height: 1;
}

/* ─── Per-addon action bar ─────────────────────────────────────────────── */
.addon-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.55rem 1.25rem 0.75rem;
  border-top: 1px solid var(--color-divider);
  background: #ffffff;
}

.addon-section--revit .download-row,
.addon-section--revit .addon-actions {
  background: var(--color-blue-light);
}

.addon-section--blender .download-row,
.addon-section--blender .addon-actions {
  background: var(--color-orange-light);
}

.addon-section--revit .addon-actions {
  border-top-color: #d7e3ff;
}

.addon-section--blender .addon-actions {
  border-top-color: var(--color-orange-border);
}

.addon-link-docs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

.addon-link-docs:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.addon-link-docs:visited {
  color: var(--color-blue);
}

/* thin separator between action links */
.addon-actions-sep {
  width: 1px;
  height: 10px;
  background: var(--color-border);
  flex-shrink: 0;
}

.addon-link-issue {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.addon-link-issue:hover {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.addon-link-issue:visited {
  color: var(--color-muted);
}

.addon-link-buy {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-orange);
  text-decoration: none;
  transition: color 0.15s ease;
}

.addon-link-buy:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.addon-link-buy:visited {
  color: var(--color-orange);
}

/* ─── Card footer ────────────────────────────────────────────────────────── */
.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1.5rem 0.85rem;
}

.footer-credit {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-muted);
  user-select: none;
}

/* ─── Focus states (keyboard navigation) ────────────────────────────────── */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.download-row:focus-visible {
  outline-offset: -2px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  #page {
    justify-content: flex-start;
    padding-top: 3rem;
    background-attachment: scroll; /* avoids iOS fixed-bg rendering issues */
  }

  #card {
    border-radius: 12px;
  }

  .card-header {
    padding: 0 1.25rem 1.35rem;
  }

  .hero-layout {
    margin: 0 -1.25rem 1.15rem;
    padding: 1.1rem 1.25rem 1rem;
    border-radius: 0 0 18px 18px;
    background-position: center top;
  }

  .card-header h1 {
    font-size: 16px;
  }

  .logo-lockup {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo-text {
    align-items: center;
  }

  .header-hero {
    max-width: none;
    font-size: 1.9rem;
    text-align: center;
  }

  .header-intro,
  .header-support {
    max-width: none;
    text-align: center;
  }

  .header-support {
    padding-top: 0.8rem;
  }

  .hero-highlights-label {
    text-align: center;
  }

  .header-summary-list {
    grid-template-columns: 1fr;
  }

  .header-feature-list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .downloads-block {
    padding: 0.85rem;
  }

  .card-header .downloads-block {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .header-feature-item {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .download-row,
  .addon-link-docs,
  .addon-link-issue,
  .addon-link-buy {
    transition: none;
  }
}
