/* --- Luxury 2026 Design System --- */

/* --- Global Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 2px solid var(--bg-dark);
  transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

:root {
  /* Sophisticated Palette */
  --bg-dark: #0A0F14;
  --surface-dark: #151C24;
  --accent-gold: #D4AF37;
  --accent-cream: #F5F5DC;
  --accent-mint: #98FF98;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 40px rgba(0,0,0,0.4);

  /* Typography */
  --font-main: 'Outfit', sans-serif;

  /* Spacing */
  --space-unit: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Layout Utils --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* --- Hero --- */

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, var(--accent-gold) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.15;
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 6rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 30px;
  animation: revealUp 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-img {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-img img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-10deg);
}

/* --- Bento Grid --- */
.section-header {
  margin-bottom: 80px;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 4px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 800;
}

.product-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
}

.bento-item {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  transition: 0.5s;
  cursor: pointer;
}

.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(4) { grid-column: span 2; }

.bento-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: 0.8s;
}

.bento-item:hover .item-img {
  transform: scale(1.1);
  opacity: 1;
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.item-name { font-size: 1.5rem; font-weight: 700; }
.item-price { color: var(--accent-gold); margin-top: 5px; }

/* --- Animations --- */
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(100px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInDown {
  from { transform: translate(-50%, -100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.btn-luxe {
  background: var(--accent-gold);
  color: #000;
  padding: 1.2rem 3rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: 0.4s;
  border: 2px solid var(--accent-gold);
}

.btn-luxe:hover {
  background: transparent;
  color: var(--accent-gold);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 1.2rem 3rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: 0.4s;
  border: 2px solid var(--border);
  display: inline-block;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 100px 0 40px;
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--accent-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 320px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* --- Subscriptions --- */
.subscription-section {
  padding: 100px 0;
  background: linear-gradient(rgba(0,0,0,0.4), var(--bg-dark));
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sub-card {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  transition: 0.5s;
  position: relative;
}

.sub-card.featured {
  border-color: var(--accent-gold);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.sub-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sub-card .price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 30px;
}

.sub-card .price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.sub-card ul {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.sub-card ul li {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-card ul li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: 900;
}

.sub-card .badge {
  position: absolute;
  top: 20px;
  right: -10px;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 5px 15px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Bulk Section --- */
.bulk-section {
  padding: 120px 0;
}

.bulk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.bulk-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  transition: 0.5s;
}

.bulk-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-10px);
}

.bulk-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.bulk-info {
  padding: 40px;
}

.bulk-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.pricing-table {
  margin-bottom: 30px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.price-row span { color: var(--text-secondary); }
.price-row strong { color: var(--accent-gold); font-size: 1.1rem; }

/* --- Global Typography Scaling --- */
@media (max-width: 1200px) {
  html { font-size: 15px; }
  .container { padding: 0 5vw; }
}

@media (max-width: 991px) {
  html { font-size: 14px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 60px; }
  .hero-title { font-size: 4rem; }
  .hero-desc { margin: 0 auto 40px; }
  
  .product-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item:nth-child(1), .bento-item:nth-child(4) { grid-column: auto; grid-row: auto; }
  
  .subscription-grid { grid-template-columns: 1fr; }
  .bulk-grid { grid-template-columns: 1fr; }
  .bulk-card { grid-template-columns: 1fr; }
  .sub-card.featured { transform: scale(1); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .hero-desc { font-size: 1rem; }

  .product-bento { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-col p { margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .btn-luxe { width: 100%; text-align: center; }
  .hero-btns { display: flex; flex-direction: column; gap: 15px; }
}

/* --- Project Improvements CSS --- */

.pincode-checker {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 40px;
  border: 1px solid var(--border);
  display: flex;
  max-width: 450px;
  gap: 10px;
}

#pincode-input {
  background: transparent;
  border: none;
  padding: 0 20px;
  color: #fff;
  flex: 1;
  font-size: 0.9rem;
}

#pincode-input:focus {
  outline: none;
}

.btn-luxe-small {
  background: var(--accent-gold);
  color: #000;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.3s;
}

.pincode-status {
  padding-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 20px;
}

/* Stats Counter */
.stats-counter-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.stats-flex {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.counter-item {
  text-align: center;
  flex: 1;
}

.counter-item h3 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 5px;
}

.counter-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Global Form Group Visibility Improvement */
.form-group label {
  color: var(--text-secondary);
  font-weight: 800;
  margin-bottom: 8px;
}

.form-group input, .form-group textarea {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
}

.form-group input:focus {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

@media (max-width: 768px) {
  .pincode-checker { flex-direction: column; border-radius: 20px; padding: 20px; }
  .stats-flex { flex-direction: column; gap: 60px; }
  .counter-item h3 { font-size: 2.5rem; }
}

/* --- Open Source Announcement Banner --- */

.opensource-banner {
  background: var(--accent-gold);
  color: #000;
  padding: 12px 60px 12px 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  z-index: 10005;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: block;
}

.opensource-banner a {
  color: #000;
  text-decoration: underline;
  font-weight: 800;
  display: inline-block;
  margin-left: 5px;
}

.opensource-banner .close-banner {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: 0.3s;
}

.opensource-banner .close-banner:hover {
  transform: translateY(-50%) rotate(90deg);
  opacity: 0.7;
}

/* Adjust header top when banner is present */
nav {
  transition: top 0.3s ease;
}

@media (max-width: 768px) {
  .opensource-banner {
    padding: 15px 40px 15px 15px;
    font-size: 0.75rem;
    text-align: left;
  }
}
