/* --- RESET & BASIC SETUP --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "RNS_B";
  src: url("fonts/RNS-B.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: "Lexend", sans-serif;
  font-weight: 200;
  overflow-x: hidden;
  font-size: clamp(16px, 1.5vw, 18px);
  -webkit-font-smoothing: antialiased;
}

/* --- MODERN SCROLLBAR --- */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background-color: #333333;
  border-radius: 10px;
  border: 3px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555555;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #333333 #000000;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- LAYOUT UTILS --- */
.first-screen-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(15px, 2.5vw, 25px) clamp(20px, 5vw, 60px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0px;
  width: fit-content;
  max-width: 500px;
  flex-shrink: 0;
}

.logo-icon {
  height: 50px;
  width: auto;
}

.logo-text {
  font-weight: 200;
  font-size: clamp(28px, 4vw, 45px);
  color: white;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  gap: 0;
}

.logo-text .blue {
  color: #5580ff;
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 300;
}

.logo-text .small {
  color: white;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 200;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 25px);
  flex-wrap: nowrap;
}

.price {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  white-space: nowrap;
}

.kickstarter-btn {
  background-color: #d1d1d1;
  color: #000;
  padding: clamp(8px, 1vw, 10px) clamp(12px, 1.8vw, 20px);
  border-radius: 4px;
  font-weight: 600;
  font-size: clamp(12px, 1.4vw, 16px);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.kickstarter-btn:hover {
  background-color: #ffab40ff;
}

.kickstarter-green {
  color: #05ce78;
  font-family: RNS_B;
  font-size: 1.3em;
}

/* --- HERO SECTION --- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px) clamp(30px, 5vw, 60px);
  max-width: 1600px;
  margin: 0 auto;
  flex-grow: 1;
  width: 100%;
  min-height: 100vh;
}

.hero-content {
  flex: 3.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: clamp(0px, 8vw, 50px);
  position: relative;
  z-index: 10;
}

.hero-desc {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 200;
  margin-bottom: clamp(60px, 12vw, 150px);
  line-height: 1.4;
  margin-top: clamp(40px, 6vw, 70px);
  padding-left: clamp(0px, 8vw, 100px);
  max-width: 900px;
}

.hero-desc span {
  color: #5580ff;
}

.hero-image {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: left;
  height: 100%;
  padding-right: clamp(0px, 20vw, 250px);
  pointer-events: none;
  position: relative;
}

.hero-image img {
  max-width: 350%;
  max-height: 90vh;
  width: auto;
  object-fit: contain;
  transform: translateX(-5%) translateY(-30px) rotate(-10deg);
  pointer-events: none;
  position: relative;
}

.hero-footer {
  margin-top: clamp(80px, 15vw, 100px);
  padding-bottom: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
}

.support-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(16px, 1.8vw, 18px);
  flex-wrap: wrap;
  padding-right: clamp(0px, 6vw, 80px);
}

.btn-blue {
  background-color: #385dcd;
  color: rgb(255, 255, 255);
  border: none;
  padding: clamp(8px, 1vw, 10px) clamp(16px, 2vw, 20px);
  border-radius: 5px;
  cursor: pointer;
  font-family: "Lexend", sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 200;
  display: inline-block;
  transition: background-color 0.2s;
  position: relative;
  z-index: 10;
}

.btn-blue:hover {
  font-weight: 300;
  background-color: #ffab40ff;
}

.btn-blue:active {
  background-color: #4470ee;
  transform: scale(0.98);
}

/* ONE LINE EMAIL FORM */
.email-form {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: clamp(16px, 1.8vw, 18px);
  white-space: nowrap;
  width: 100%;
  position: relative;
  z-index: 10;
}

.email-input {
  background-color: #888;
  border: none;
  padding: clamp(10px, 1.2vw, 12px);
  border-radius: 4px;
  width: clamp(250px, 40vw, 380px);
  color: white;
  font-family: "Lexend", sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 200;
  position: relative;
  z-index: 10;
}

.email-input::placeholder {
  color: #ccc;
}

.email-input:focus {
  outline: 2px solid #5580ff;
  outline-offset: 2px;
}

/* --- SECTIONS COMMON --- */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(50px, 6vw, 80px) clamp(20px, 3vw, 30px);
  border-top: 1px solid #333;
}

.section-title {
  color: #5580ff;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  margin-bottom: clamp(50px, 6vw, 80px);
}

/* --- KEY FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 7vw, 90px);
  row-gap: clamp(80px, 10vw, 120px);
  margin-left: 10px;
  position: relative;
}

.features-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid #333;
  transform: translateX(-50%);
  z-index: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: clamp(60px, 8vw, 100px) 0 clamp(120px, 16vw, 200px) 0;
  border-bottom: 1px solid #333;
  border-right: none;
  overflow: visible;
}

.feature-item:nth-child(odd) {
  padding-left: clamp(20px, 4vw, 50px);
}

.feature-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.feature-item:last-child {
  border-bottom: none;
  margin-bottom: 20px;
}

.feature-icon {
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  margin-right: clamp(40px, 10vw, 130px);
  flex-shrink: 0;
}

.feature-icon img {
  width: 110%;
  height: 100%;
  object-fit: contain;
  margin-left: clamp(20px, 4vw, 50px);
  transform: scale(2.5);
}

.feature-text h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  margin-bottom: 10px;
  margin-left: clamp(20px, 5vw, 60px);
}

.feature-text ul li {
  font-size: clamp(14px, 1.5vw, 16px);
  color: #ccc;
  margin-bottom: 8px;
  list-style-type: disc;
  margin-left: clamp(40px, 6vw, 80px);
  font-weight: 200;
}

.feature-text ul li::marker {
  color: #5580ff;
  font-size: 1.2em;
}

/* --- EXPRESSO PORES --- */
.pores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: clamp(60px, 8vw, 100px);
  column-gap: clamp(30px, 4vw, 50px);
  padding: 10px 10px;
}

.pore-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(10px, 2vw, 20px);
  overflow: visible;
  position: relative;
  background: transparent;
  transition: z-index 0s;
}

.pore-item:hover {
  z-index: 100;
  background: transparent;
}

.pore-item img {
  width: 100%;
  max-width: clamp(150px, 18vw, 250px);
  height: auto;
  --rotate-val: 0deg;
  --scale-val: 1;
  transform: rotate(var(--rotate-val)) scale(var(--scale-val));
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.pore-item img:hover {
  transform: rotate(var(--rotate-val)) scale(calc(var(--scale-val) * 1.02));
  filter: brightness(0.75) drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.8));
}

.pore-item:nth-child(1) img { --scale-val: 1.2; }
.pore-item:nth-child(2) img { --rotate-val: 12deg; --scale-val: 1.3; }
.pore-item:nth-child(3) img { --rotate-val: 10deg; --scale-val: 1; }
.pore-item:nth-child(4) img { --rotate-val: 5deg; --scale-val: 0.9; }
.pore-item:nth-child(5) img { --scale-val: 1.5; }
.pore-item:nth-child(6) img { --rotate-val: 7deg; --scale-val: 1.3; }
.pore-item:nth-child(7) img { --rotate-val: 50deg; --scale-val: 1.08; }
.pore-item:nth-child(8) img { --rotate-val: 6deg; --scale-val: 1.8; }

/* --- TECH SPECS --- */
.specs-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 40px);
  margin: clamp(10px, 2vw, 20px);
}

.specs-table {
  flex: 1;
  width: 100%;
}

.spec-row {
  display: grid;
  grid-template-columns: clamp(150px, 25vw, 300px) 1fr;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  padding: clamp(15px, 2vw, 20px) 0;
  border-bottom: 0.5px solid #333;
  font-size: clamp(14px, 1.5vw, 16px);
  color: #ffffff;
  font-weight: 200;
}

.spec-row > :nth-child(1) {
  color: #9e9c9c;
}

.spec-row > :nth-child(2) {
  color: #ffffff;
  font-weight: bold;
}

.specs-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.specs-image img {
  max-width: 100%;
  height: auto;
}

.specs-footer {
  margin-top: 10px;
  font-size: clamp(12px, 1.3vw, 14px);
  color: #888;
  font-weight: 200;
  padding-left: clamp(10px, 1.5vw, 18px);
}

.bottom-cta-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(30px, 4vw, 50px) 0 0px 0;
  background-color: #000;
}

.return-btn {
  display: inline-block;
  background-color: #385dcd;
  color: #ffffff;
  padding: clamp(12px, 1.5vw, 15px) clamp(25px, 3vw, 40px);
  border-radius: 10px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(205, 138, 56, 0.4);
  transition: background-color 0.3s, transform 0.3s;
  animation: floatBounce 3s ease-in-out infinite;
}

.return-btn:hover {
  background-color: #ffab40ff;
  animation-play-state: paused;
  transform: translateY(-5px);
}

.minimal-footer {
  display: flex;
  justify-content: center;
  padding-top: clamp(20px, 3vw, 30px);
}

.footer-container {
  display: flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  padding-top: clamp(30px, 4vw, 50px);
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-bottom: 30px;
}

.footer-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  opacity: 0.7;
}

.footer-text,
.footer-link {
  font-size: clamp(13px, 1.4vw, 15px);
  color: #8b949e;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  color: #c9c9c9;
}

.footer-divider::before {
  content: "•";
  color: #30363d;
  font-size: 12px;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

img {
  display: block;
}

/* --- SUCCESS OVERLAY --- */
.success-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(25, 25, 25, 0.75);
  padding: clamp(30px, 5vw, 40px) clamp(40px, 6vw, 60px);
  border-radius: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid #333;
  max-width: 90%;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #05ce78;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  margin: 0 auto;
  box-shadow: inset 0px 0px 0px #05ce78;
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 30px #05ce78; }
}

.success-text {
  color: #ffffff;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 1px;
  text-align: center;
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: fixed;
  bottom: clamp(15px, 3vw, 30px);
  right: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #888;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 200;
  cursor: pointer;
  z-index: 5;
  animation: fadeOut linear both;
  animation-timeline: scroll(root);
  animation-range: 0px clamp(100px, 12vw, 150px);
}

.scroll-indicator span,
.scroll-indicator svg {
  animation: shiny-glow 2s infinite ease-in-out;
}

.scroll-indicator svg {
  width: clamp(22px, 2.5vw, 28px);
  height: clamp(22px, 2.5vw, 28px);
}

@keyframes shiny-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    opacity: 0.5;
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    opacity: 1;
  }
}

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

/* =========================================
    RESPONSIVE BREAKPOINTS (Mobile)
========================================= */

@media screen and (max-width: 768px) {
  .first-screen-wrapper {
    height: auto;
    min-height: 100vh;
    padding-bottom: 80px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    flex-direction: column;
    padding: 20px;
    min-height: auto;
  }

  .hero-image {
    order: -1;
    width: 100%;
    padding-right: 0;
    padding: 20px 0;
  }

  .hero-image img {
    max-width: 100%;
    transform: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-content {
    order: 2;
    padding-left: 0;
    width: 100%;
  }

  .hero-desc {
    padding-left: 0;
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .hero-footer {
    margin-top: 30px;
    margin-bottom: px;
  }

  .support-line {
    justify-content: center;
    padding-right: 0;
  }

  .email-form {
    flex-direction: column;
    white-space: normal;
    align-items: stretch;
  }

  .email-form span {
    text-align: center;
  }

  .email-input {
    width: 100%;
  }

  .btn-blue {
    width: 100%;
    text-align: center;
  }
  
  .scroll-indicator {
    display: none;
  }

  .section-title {
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  .features-grid::after {
    display: none;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .feature-item:nth-child(odd) {
    padding-left: 20px;
  }

  .feature-item:last-child {
    border-bottom: 1px solid #333;
  }

  .feature-icon {
    margin: 0 0 20px 0;
  }

  .feature-icon img {
    margin-left: 0;
    transform: scale(1.5);
  }

  .feature-text h3 {
    margin-left: 0;
  }

  .feature-text ul {
    padding-left: 20px;
  }

  .feature-text ul li {
    margin-left: 20px;
    text-align: left;
  }

  .pores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specs-layout {
    flex-direction: column-reverse;
  }

  .spec-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .specs-image {
    width: 100%;
    padding: 20px;
  }

  .specs-footer {
    text-align: center;
  }

  .footer-divider {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}