/* ========================================
   PROMPEE SHOP - MAIN STYLESHEET
   Dark theme, Inter font, modern layout
   ======================================== */

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

html {
  font-size: 18pt;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #1C1C21;
  color: rgba(255, 255, 255, 0.502);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 512 512' width='512' height='512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.875'/%3E%3CfeColorMatrix type='matrix' values='0.046875 0 0 0 0 0 0.046875 0 0 0 0 0 0.05078125 0 0 0 0 0 0.078125 0'/%3E%3C/filter%3E%3Crect filter='url(%23n)' width='512' height='512' fill='transparent' opacity='1'/%3E%3C/svg%3E");
  background-size: 512px;
  pointer-events: none;
  z-index: 0;
}

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

ul {
  list-style: none;
}

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  color: #fff;
  font-weight: 500;
}

.gradient-text {
  background-image: linear-gradient(170deg, #00A3FF 0%, #14100D 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-accent {
  background-image: linear-gradient(170deg, #26A7F0 0%, #F59A47 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(28, 28, 33, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
}

.navbar-logo {
  font-size: 1.8em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.1rem;
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  font-weight: 500;
  transition: color 0.25s ease;
}

.navbar-links a:hover {
  color: #fff;
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
}

.hero-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
  filter: blur(4px);
  -webkit-filter: blur(4px);
}

.hero h1 {
  font-size: 5em;
  font-weight: 500;
  letter-spacing: -0.25rem;
  line-height: 1.1;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.6);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(104deg, #26A7F0 0%, rgba(245, 154, 71, 0.008) 100%);
  border-radius: 3rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-cta:hover {
  transform: scale(1.05);
  background-color: #FFB470;
}

/* ---- PRODUCTS SECTION ---- */
.products {
  padding: 6rem 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.section-header h2 {
  font-size: 3em;
  font-weight: 500;
  letter-spacing: -0.15rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.5);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background-color: #1F1F26;
  border: 1px solid rgba(255, 255, 255, 0.039);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(2rem);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

.product-card:hover {
  transform: translateY(-0.5rem) scale(1.02);
  border-color: rgba(38, 167, 240, 0.3);
  box-shadow: 0 20px 40px rgba(38, 167, 240, 0.1);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
}

.product-card h3 {
  font-size: 1.6em;
  font-weight: 500;
  letter-spacing: -0.08rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.product-card p {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-link {
  display: inline-block;
  text-align: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.9em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(104deg, #26A7F0 0%, rgba(245, 154, 71, 0.008) 100%);
  border-radius: 2rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.product-link:hover {
  transform: scale(1.05);
  background-color: #FFB470;
}

/* ---- PRICING SECTION ---- */
.pricing {
  padding: 6rem 3rem;
  background-color: rgba(31, 31, 38, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 75rem;
  margin: 0 auto;
}

.pricing-card {
  background-color: #1F1F26;
  border: 1px solid rgba(255, 255, 255, 0.039);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(2rem);
  animation: fadeUp 1s ease forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.15s; }
.pricing-card:nth-child(2) { animation-delay: 0.25s; }
.pricing-card:nth-child(3) { animation-delay: 0.35s; }

.pricing-card h3 {
  font-size: 1.8em;
  font-weight: 500;
  letter-spacing: -0.08rem;
  font-style: italic;
  background-image: linear-gradient(170deg, #26A7F0 0%, #F59A47 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.pricing-card .desc {
  font-size: 0.8em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Price breakdown */
.price-block {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.4);
}

.price-row.total {
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Email input */
.email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85em;
  outline: none;
  transition: border-color 0.25s ease;
  margin-bottom: 1rem;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.email-input:focus {
  border-color: #26A7F0;
}

.email-input.error {
  border-color: #F59A47;
}

.email-error {
  color: #F59A47;
  font-size: 0.7em;
  margin-top: -0.75rem;
  margin-bottom: 0.75rem;
  display: none;
}

/* Purchase button */
.btn-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.25rem;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(104deg, #26A7F0 0%, rgba(245, 154, 71, 0.008) 100%);
  border: none;
  border-radius: 2.5rem;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-purchase:hover {
  background-color: #FFB470;
  transform: scale(1.04);
}

.btn-purchase svg {
  width: 1.125em;
  height: 1.125em;
  fill: #fff;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.btn-purchase:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- FOOTER ---- */
.footer {
  padding: 4rem 3rem 2rem;
  text-align: center;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.625rem;
  margin-bottom: 1.5rem;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.footer-icons a:hover {
  border-color: rgba(255, 255, 255, 0.071);
  transform: scale(1.1);
}

.footer-icons svg {
  width: 50%;
  height: 50%;
  fill: #fff;
  transition: fill 0.25s ease;
}

.footer-icons a:hover svg {
  fill: rgba(255, 255, 255, 0.5);
}

.footer-text {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
}

.footer-links {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* ---- ANIMATION ---- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  html { font-size: 15pt; }
  .products-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  html { font-size: 13pt; }
  .navbar { padding: 1rem 2rem; }
  .hero h1 { font-size: 3.5em; }
  .products, .pricing { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
  html { font-size: 11pt; }
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .navbar-links { gap: 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero h1 { font-size: 2.75em; }
  .hero p { font-size: 1em; }
  .products-grid, .pricing-grid { grid-template-columns: 1fr; }
  .products, .pricing { padding: 3rem 1.5rem; }
  .section-header h2 { font-size: 2em; }
}

@media (max-width: 480px) {
  html { font-size: 10pt; }
  .hero h1 { font-size: 2.25em; }
  .footer-icons { gap: 1rem; }
}
