/* 
*   Kevin Powell
*   https://youtu.be/cCAtD_BAHNw 
*/

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

@font-face {
  font-family: 'DIN Condensed Web';
  src: url('https://db.onlinewebfonts.com/t/69dbc1186412d7831b88d8a78a360360.eot');
  src: url('https://db.onlinewebfonts.com/t/69dbc1186412d7831b88d8a78a360360.eot?#iefix')
      format('embedded-opentype'),
    url('https://db.onlinewebfonts.com/t/69dbc1186412d7831b88d8a78a360360.woff2')
      format('woff2'),
    url('https://db.onlinewebfonts.com/t/69dbc1186412d7831b88d8a78a360360.woff')
      format('woff'),
    url('https://db.onlinewebfonts.com/t/69dbc1186412d7831b88d8a78a360360.ttf')
      format('truetype'),
    url('https://db.onlinewebfonts.com/t/69dbc1186412d7831b88d8a78a360360.svg#DIN Condensed Web')
      format('svg');
}

@media only screen and (min-width: 40em) {
  :root {
    --fs-300: 1rem;
    --fs-400: 1.25rem;
    --fs-500: 2rem;
    --fs-600: 2.827rem;
    --fs-700: 4rem;
    --fs-800: 5.653rem;
  }
}

* {
  margin: 0;
  padding: 0;
  font: inherit; /* Get rid of all font sizes and heights */
}

* {
  font-variation-settings: 'wght' var(--font-weight, 375),
    'wdth' var(--font-width, 80);
}

:root {
  --main-bg-color: #223a2c;
  --main-bg-light-color: #16110a;
  --main-color: #977902;
  --main-dark-color: #fdd430;
  --clr-neutral-200: #dedede;
  --clr-neutral-800: #4d4d4d;
}

html {
  color-scheme: dark light; /* Default dark */
  hanging-punctuation: first last; /* Not supported in Chrome */
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  color: light-dark(var(--main-color), var(--main-dark-color));
  background-color: light-dark(
    --var(--main-bg-light-color),
    --var(--main-bg-color)
  );
}

logo {
  max-width: 192px;
}

main #main-content {
  min-height: 100%;
}

/* Media responsive */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

section {
  position: relative;
  top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  font-family: 'DIN Condensed Web';
  font-variant: small-caps slashed-zero;
  font-size: 6rem;
}

h1 {
  font-size: 72px;
  background: linear-gradient(16deg, rgb(191 164 57) 17%, rgb(255 204 0) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  max-width: 75ch;
  text-wrap: pretty; /* Prevents orphans on lines */
}

li:not([class]),
p:not([class]),
ul:not([class]) {
  max-width: 60ch;
}

ol[role='list'],
ul[role='list'] {
  list-style: none;
}

main {
  container-type: inline-size;
  container-name: main-area;
  width: 100vw;
  max-width: 1280px;
  margin: auto;
  padding-inline: 1rem;
}

header {
  container-type: inline-size;
  container-name: header;
  display: grid;
  margin: auto;
  width: 100vw;
  max-width: 1280px;
  grid-template-columns: 1fr auto;
  padding-block: 2rem;
}
header > logo {
  margin-left: 2rem;
}

nav > ul {
  display: flex;
  flex-direction: row;
  margin-right: 2rem;
}
nav > ul > li {
  margin-inline: 1rem;
  padding-inline: 1rem;
  border-radius: 32px;

  list-style: none;
  background: linear-gradient(16deg, rgb(191 164 57) 17%, rgb(255 204 0) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  color: light-dark(var(--main-color), var(--main-dark-color));
}
footer {
  color: var(--clr-neutral-800);
  font-size: var(--fs-300);
  margin-top: 10rem;
  padding: 3rem;
  text-align: center;
}

.primary-footer p {
  margin-left: auto;
  margin-right: auto;
}

.primary-footer ul {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0 2rem;
  padding: 0;
}

.primary-footer ul li {
  margin-inline: 1rem;
}
.primary-footer ul li a {
  color: light-dark(var(--main-dark-color), var(--main-color));
}

@container header (width > 500px) {
}

@media (prefers-reduced-motion: no-preference) {
  :has(:target) {
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Space Grotesk', sans-serif;
}

.container {
  width: 100%;
  max-width: 700px;
  height: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.banner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #10101a, #0a0a0a);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
}

.banner p b {
  font-weight: bold;
  color: light-dark(var(--main-color), var(--main-color));
}

.banner.loaded {
  opacity: 1;
  transform: translateY(0);
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(42, 252, 152, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(42, 252, 152, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -1px;
  color: #fff;
  display: flex;
  align-items: center;
}

.logo span {
  background: linear-gradient(16deg, rgb(191 164 57) 17%, rgb(255 204 0) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neon-circle {
  width: 12px;
  height: 12px;
  background: var(--main-dark-color);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 10px var(--main-dark-color), 0 0 20px var(--main-color);
  animation: pulse 2s infinite;
}

.date {
  font-size: 14px;
  opacity: 0.7;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-variant: small-caps;
}

@container main-area (width < 600px) {
  .date {
    display: none;
  }
  .banner .img-wrapper {
    justify-content: center;
  }
  .img-wrapper > div {
    width: 100svw;
    margin: auto;
    text-align: center;
  }
  .learn-more {
    margin: auto;
  }
}
.product {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.tagline {
  font-size: 16px;
  background: linear-gradient(16deg, rgb(191 164 57) 17%, rgb(255 204 0) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.6s;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.title {
  font-family: 'Syncopate', sans-serif;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1;
  background: linear-gradient(90deg, var(--main-color), var(--main-dark-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.8s;
}

.description {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 30px;

  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1s;
}

.roast {
  padding-block: 2rem;
}

.specs {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1.2s;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  min-width: 120px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.spec-item:hover {
  background: rgba(42, 252, 200, 0.1);
  border-color: rgba(42, 252, 200, 0.3);
  transform: translateY(-5px);
}

.spec-item:hover::after {
  opacity: 1;
}

.spec-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(42, 252, 200, 0.1),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spec-item h3 {
  font-size: 14px;
  color: var(--main-dark-color);
  margin-bottom: 5px;
}

.spec-item p {
  font-size: 18px;
  font-weight: 500;
}

.tech-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(10, 10, 10, 0.9);
  border-radius: 8px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid rgba(42, 252, 200, 0.3);
  backdrop-filter: blur(5px);
  z-index: 10;
  font-size: 14px;
}

.spec-item:hover .tech-details {
  transform: translateY(0);
}

.cta {
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1.4s;
}

.cta-button {
  background: linear-gradient(90deg, rgb(42, 252, 200), rgb(42, 200, 252));
  color: #0a0a0a;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 53, 191, 0.3);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(128deg, #fc2a2a, #fc2ae0, #fc2ae0);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cta-button:hover::before {
  opacity: 1;
}

.learn-more {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.learn-more::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--main-dark-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.learn-more:hover {
  color: var(--main-dark-color);
}

.learn-more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.product-image {
  position: absolute;
  right: -54px;
  width: 50%;
  max-width: 350px;
  transform: translateY(50px) rotate(10deg);
  opacity: 0;
  filter: drop-shadow(0 10px 20px rgba(42, 252, 200, 0.3));
  z-index: 0;
  animation: fadeInProduct 1s ease forwards;
  animation-delay: 1.6s;
}

.main-text {
  margin: auto;

  & p {
    margin: auto;
  }
}

.wrapper {
  margin-bottom: 1rem;
}

.img-wrapper {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.img-svg {
  filter: invert(100%) brightness(1.75);
  max-width: 120px;
  max-height: 120px;
  width: 64px;
  height: 64px;
  transition-duration: 0.3s;
}

.img-svg:hover {
  transform: scale(1.16);
  transition-duration: 0.3s;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--main-color);
  box-shadow: 0 0 10px var(--main-dark-color-color);
  animation: float 10s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(+700px) translateX(50px);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px #2afcc8, 0 0 20px #2afcc8;
  }
  50% {
    box-shadow: 0 0 15px #2afcc8, 0 0 30px #2afcc8;
  }
  100% {
    box-shadow: 0 0 10px #2afcc8, 0 0 20px #2afcc8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInProduct {
  from {
    opacity: 0;
    transform: translateY(50px) rotate(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 700px) {
  .container {
    height: auto;
    min-height: 700px;
  }

  .banner {
    padding: 20px;
  }

  .title {
    font-size: 40px;
  }

  .description {
    font-size: 16px;

    max-width: 60ch;
  }

  .specs {
    flex-wrap: wrap;
  }

  .spec-item {
    min-width: calc(50% - 10px);
  }

  .product-image {
    position: relative;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 250px;
    margin: 20px auto 0;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 32px;
  }

  .spec-item {
    min-width: 100%;
  }
}
