*{
  margin: 0;
  box-sizing: border-box;
}
:root {
  --bg: #060706;
  --text: #F2EFE6;
  --accent: #FF7F11;
  --accent-hover: #F28500;
  --link: #2092E9;
  --gutter: clamp(20px, 5vw, 96px);
  --max: 1800px;
}
body{
  background-color: var(--bg);
}
html{
  scroll-behavior: smooth;
  font-size: clamp(16px, 0.6vw + 7px, 22px);
}




@font-face {
  font-family: "BricolageGrotesque-ExtraBold";
  src: url("Fonts/BricolageGrotesque-ExtraBold.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BricolageGrotesque - Condensed-Semibold";
  src: url("Fonts/BricolageGrotesque96ptCondensed-SemiBold.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Reglo-Bold";
  src: url("Fonts/Reglo-Bold.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter-SemiBold";
  src: url("Fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}




.hero {
  min-height: 100vh;
  min-height: 100dvh;   /* more accurate on phones; browsers that don't support it use the line above */
  position: relative;      /* add */
  overflow: hidden;        /* add */
  background-color: var(--bg);
}
.hero-content {
  width: 100%;                 /* the missing line */
  flex: 1;                     /* fills the space under the logo */
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 6rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 3rem;   /* 40px top, since the logo now sits above */
  color: var(--text);
  position: relative;
  z-index: 1;                 /* keeps the text and image above the lines */
}
/* ---------- text column ---------- */
.hero-text {
  text-align: left;               /* cancels the inherited centering */
  max-width: clamp(34rem, 38vw, 60rem);
}
.hero > p {
  max-width: var(--max);
  padding: 28px var(--gutter) 0;
  font-size: clamp(2.2rem, 2.2vw, 3.2rem);
}
.hero-text p,
.hero-text h1 {
  margin: 0; 
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
}
.eyebrow {
  font-size: clamp(0.8rem, 0.9vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 1.25rem !important;
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 5.5rem);
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 1.25rem !important;
}
.subhead {
  font-size: clamp(1.05rem, 1.3vw, 1.6rem); 
  line-height: 1.6;
  color: rgba(242, 239, 230, 0.7);
  margin-bottom: 2rem !important;
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  margin-bottom: 2.5rem;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover {
  color: var(--text);
  transition: 0.2s ease;
}
.btn-link {
  color: var(--text);
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.btn-link:hover {
  color: var(--accent-hover);
}
.trust {
  font-size: clamp(0.8rem, 0.9vw, 1.1rem);
  letter-spacing: 0.06em;
  color: rgba(242, 239, 230, 0.7);   
}
/* ---------- image column ---------- */
.hero-image {          
  overflow: hidden;
  display: flex;              /* puts the images side by side */
  align-items: flex-start;
  gap: 1.25rem;               /* space between the two images */
  height: calc(100vh - 150px);
}
.hero-image img {
  height: 100%;
  width: auto;                /* each image keeps its own proportions */
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
}
a{
  text-decoration: none;
  margin-left: 7px;
}
/* the logo + wordmark, now part of the page flow */
.hero > p {
  position: relative;
  z-index: 1;                          /* stays above the background lines */
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  width: 100%;
  max-width: var(--max);                 /* same cap as .hero-content */
  margin: 0 auto;                        /* same centring */
  padding: 28px var(--gutter) 0;               /* same 60px side padding as .hero-content */
  font-family: "BricolageGrotesque - Condensed-Semibold", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
}
.hero > p img {
  height: 0.7em;           /* fallback for older browsers */
  height: 1cap;            /* exactly the height of the capital letters */
  width: auto;
}
/* stack the logo above the hero content without pushing the hero past one screen */
.hero {
  display: flex;
  flex-direction: column;
}
.hero-content {
  flex: 1;
  min-height: 0;
  padding-top: 40px;
}
.hero-image {
  height: calc(100dvh - 200px);
}
@media (max-width: 600px) {
  .hero > p {
    padding: 20px 24px 0;
    font-size: 1.8rem;
  }
}



.templates {
  position: relative;
  min-height: 100vh;
  padding-bottom: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;  
  align-items: center;
}
.template-text {
  font-family: "BricolageGrotesque - Condensed-Semibold", sans-serif;
  width: min(100% - 2 * var(--gutter), var(--max));
  font-size: clamp(2rem, 3vw, 3.5rem); 
  position: relative;
  z-index: 1;
  text-align: start;
  top: 30px;
  color: var(--text);
}
.template-grid {
  --cols: 3;
  --gap: clamp(20px, 2vw, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-top: 60px;
  padding: 20px 20px 50px;
}
.template-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  max-width: 100%;  
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(242, 239, 230, 0.06), rgba(242, 133, 0, 1));
  -webkit-backdrop-filter: blur(14px) saturate(90%);
  backdrop-filter: blur(14px) saturate(90%);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.desc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 12px 12px;
}
.tag {
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  border: 1px solid var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
}
.card-title {
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.card-text {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bg);
}
.price-and-CTA {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--bg);
}
.price-and-CTA > * {
  flex: 1 1 0;
  min-width: 0;
  container-type: inline-size;
}
.CTA-button,
.live-btn {
  justify-content: center;
  text-align: center;
  margin-left: 0;
  white-space: nowrap;
  font-size: clamp(0.6rem, 2.9cqw, 0.95rem);
  padding: 0.7rem 0.5rem; 
}
.price-label {
  display: block;
  white-space: nowrap; 
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
}
.price p {
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--bg);
}
.CTA-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent-hover);
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.CTA-button:hover {
  color: var(--text);
  transition: 0.2s ease;
}
.CTA-button:hover::after {
  transform: translateX(4px);
}
.live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-left: 0;                       /* cancels your global a { margin-left: 7px } */
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  color: var(--bg);
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
}
.live-btn:hover {
  color: var(--text);
}
.live-btn:hover::after {
  transform: translate(2px, -2px);
}
.disclaimer {
  max-width: 640px;
  margin: 10px auto 0;
  padding: 0 20px;
  text-align: center;
}
.disclaimer p {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text);
}
.img-container {
  aspect-ratio: 4 / 4;
  overflow: hidden;
  border-radius: 24px;
}
.product-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  animation: preview-scroll 38s linear infinite;   /* no more "alternate" */
  animation-play-state: paused;
}
.img-container:hover .product-img {
  animation-play-state: running;
}
@keyframes preview-scroll {
  0%       { object-position: 50% 0%; }     /* top: starts scrolling immediately */
  39.474%  { object-position: 50% 100%; }   /* scrolls down over 15s */
  50%      { object-position: 50% 100%; }   /* holds at the bottom for 4s */
  89.474%  { object-position: 50% 0%; }     /* scrolls back up over 15s */
  100%     { object-position: 50% 0%; }     /* holds at the top for 4s, then loops */
}
@media (prefers-reduced-motion: reduce) {
  .product-img { animation: none; }
}
@media (max-width: 1024px) {
  .template-grid { --cols: 2; }
}
@media (max-width: 640px) {
  .template-grid { --cols: 1; }
}




.footer {
  position: relative;
  overflow: hidden;
  padding: 90px var(--gutter) 28px;
  background: var(--bg);
  font-family: "Inter-SemiBold", system-ui, sans-serif;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;                              /* (100% - 90%) / 2, which centres it */
  width: 90%;
  height: 1px;
  background: rgba(242, 133, 0, 1);      /* same colour as your old border */
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-label {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-mail {
  margin-left: 0;                       /* cancels your global a { margin-left: 7px } */
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-mail span {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.footer-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-mail:hover span {
  transform: translate(3px, -3px);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer-nav a {
  margin-left: 0;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--accent);
}
/* the big statement */
.footer-wordmark {
  margin: 0 auto;
  pointer-events: none; 
  width: max-content;
  text-align: center;
  white-space: nowrap;
  font-family: "BricolageGrotesque-ExtraBold", sans-serif;
  font-size: 15vw;                      /* scales with the screen width */
  line-height: 0.8;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text) 25%, rgba(242, 133, 0, 1) 87%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.footer-legal {
  max-width: var(--max);
  margin: 28px auto 0;
  font-size: 0.8rem;
  color: rgba(242, 133, 0, 1);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  height: 20px;
  width: auto;
  display: block;
  background-color: rgba(242, 133, 0, 1);
  -webkit-mask: url("./assets/Masterdom-logo.svg") no-repeat center / contain;
  mask: url("./assets/Masterdom-logo.svg") no-repeat center / contain;
}
.footer-legal {
  margin: 0; /* keeps the text vertically centred with the logo */
}
@media (max-width: 700px) {
  .footer { padding: 60px 24px 24px; }
  .footer-nav { align-items: flex-end; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; padding-top: 40px; }
  .stage { height: 380px; order: -1; }
  .product-plate { width: 300px; height: 300px; }
  .nav-links { display: none; }

}
