/* ===== SeRaSilk — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #a07d2e;
  --magenta: #9b1b5e;
  --magenta-deep: #6e1342;
  --royal: #1a1040;
  --royal-mid: #2a1d5c;
  --royal-light: #3d2e78;
  --ivory: #faf6ee;
  --ivory-warm: #f5edd8;
  --text-dark: #1a1028;
  --text-muted: #6b6280;
  --text-light: #9e96b0;
  --surface: #ffffff;
  --surface-alt: #f8f5ff;
  --border: rgba(201,168,76,0.18);
  --shadow-sm: 0 2px 8px rgba(26,16,64,0.06);
  --shadow-md: 0 8px 30px rgba(26,16,64,0.10);
  --shadow-lg: 0 20px 60px rgba(26,16,64,0.14);
  --shadow-gold: 0 8px 30px rgba(201,168,76,0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: #000;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--royal); box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.3);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.3);
  color: #fff; backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1); border-color: var(--gold-light);
  color: var(--gold-light); transform: translateY(-2px);
}
.btn-dark {
  background: var(--royal); color: var(--gold-light);
}
.btn-dark:hover {
  background: var(--royal-mid); transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0; transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(26,16,64,0.97); backdrop-filter: blur(20px);
  padding: 12px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  font-weight: 700; color: #fff;
  display: inline-block; line-height: 1.1;
}
.nav-logo span { color: var(--gold-light); }
.nav-logo small {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 2px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold); transition: var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.85rem; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ======================================================
   PARALLAX FRAME-SEQUENCE HERO
   ====================================================== */
.parallax-hero {
  /* 6x viewport height = long scroll runway for the animation */
  height: 600vh;
  position: relative;
}

.parallax-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#parallax-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* No vignette — keep images bright and undimmed */

/* Overlay container for text panels */
.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding-bottom: 120px;
}

.parallax-text-panel {
  position: absolute;
  max-width: 800px;
  padding: 0 24px;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: auto;
}

/* Panel 1: top-left corner — black zone above & left of loom */
.panel-1 {
  top: 12vh;
  left: 6vw;
  text-align: left;
}

/* Panel 2: right side — black zone beside the weaver */
.panel-2 {
  top: 18vh;
  right: 5vw;
  left: auto;
  text-align: right;
}

/* Panel 3: bottom center — below subject in later frames */
.panel-3 {
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.parallax-text-panel h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8), 0 5px 30px rgba(0,0,0,0.9);
}

.parallax-text-panel .accent {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8), 0 5px 30px rgba(0,0,0,0.9);
}

.parallax-text-panel p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--gold);
  font-weight: 600;
  max-width: 480px;
  margin-bottom: 24px;
  line-height: 1.7;
  text-shadow: 0 0 6px rgba(0,0,0,0.9), 0 4px 15px rgba(0,0,0,0.9);
}

/* Left-aligned panels shouldn't auto-center the <p> */
.panel-1 p,
.panel-2 p { margin-left: 0; margin-right: 0; }

.parallax-text-panel .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35); border-radius: 50px;
  color: var(--gold-light); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-badge .dot {
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.parallax-text-panel .hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 8px;
}

/* Stats bar */
.parallax-stats {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 60px;
  padding: 24px 48px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-lg);
  opacity: 0;
  will-change: opacity, transform;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  font-weight: 700; color: var(--gold-light);
}
.stat-item .stat-label {
  font-size: 0.75rem; color: var(--gold); margin-top: 4px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  will-change: opacity;
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
}
.scroll-mouse {
  width: 28px; height: 42px;
  border: 2px solid var(--gold-light);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 0 15px rgba(201,168,76,0.3);
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%  { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Section Shared ===== */
.section { padding: 100px 0; background: var(--surface); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-dark); background: rgba(201,168,76,0.1);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 16px;
  color: var(--text-dark);
}
.section-desc { font-size: 1.05rem; color: var(--text-muted); }

/* ===== Features ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--gold), var(--magenta));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(155,27,94,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* ===== How It Works ===== */
.how-it-works {
  background: linear-gradient(180deg, var(--royal) 0%, var(--royal-mid) 100%);
}
.how-it-works .section-title { color: #fff; }
.how-it-works .section-desc { color: rgba(255,255,255,0.55); }
.how-it-works .section-label { background: rgba(201,168,76,0.15); color: var(--gold-light); }
.how-it-works .feature-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.how-it-works .feature-card h3 { color: var(--gold-light); }
.how-it-works .feature-card p { color: rgba(255,255,255,0.6); }
.how-it-works .feature-card:hover {
  background: rgba(255,255,255,0.08);
}
.how-it-works .feature-card::before {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}

/* ===== Story / Heritage ===== */
.story { background: var(--surface-alt); }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.story-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.story-img img { width: 100%; height: 440px; object-fit: cover; }
.story-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px;
}
.story-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
.story-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px;
}
.highlight-item { display: flex; align-items: flex-start; gap: 12px; }
.highlight-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem; color: var(--royal);
}
.highlight-item span { font-size: 0.88rem; font-weight: 500; color: var(--text-dark); }

/* ===== Pricing ===== */
.pricing { background: linear-gradient(180deg, var(--royal) 0%, var(--royal-mid) 100%); }
.pricing .section-title { color: #fff; }
.pricing .section-desc { color: rgba(255,255,255,0.55); }
.pricing .section-label { background: rgba(201,168,76,0.15); color: var(--gold-light); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.price-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 40px 32px;
  transition: var(--transition); position: relative;
}
.price-card.featured {
  background: rgba(255,255,255,0.08); border-color: var(--gold);
  transform: scale(1.04);
}
.price-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--royal); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 20px; border-radius: 50px;
}
.price-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
.price-card.featured:hover { transform: scale(1.04) translateY(-6px); }
.price-name {
  font-size: 1.1rem; font-weight: 600; color: var(--gold-light); margin-bottom: 8px;
}
.price-amount {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  color: #fff; margin-bottom: 4px;
}
.price-amount .currency { font-size: 1.4rem; vertical-align: super; }
.price-amount .period { font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.4); }
.price-desc { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin-bottom: 28px; }
.price-features { margin-bottom: 32px; }
.price-features li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.price-features li .check { color: var(--gold); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.test-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.test-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.test-quote {
  font-size: 1rem; color: var(--text-dark); line-height: 1.8;
  margin-bottom: 24px; font-style: italic;
}
.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.test-name { font-weight: 600; font-size: 0.92rem; }
.test-role { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--magenta-deep), var(--royal));
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.1) 0%, transparent 70%);
}
.cta-content {
  text-align: center; position: relative; z-index: 2; max-width: 640px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.1rem; color: rgba(255,255,255,0.6); margin-bottom: 36px;
}
.cta-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.cta-form input {
  flex: 1; padding: 16px 24px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 0.95rem; font-family: 'Inter', sans-serif;
  outline: none; transition: var(--transition);
}
.cta-form input::placeholder { color: rgba(255,255,255,0.35); }
.cta-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.12); }

/* ===== Footer ===== */
.footer {
  background: var(--royal); padding: 60px 0 30px; color: rgba(255,255,255,0.5);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 0.88rem; padding: 5px 0;
  color: rgba(255,255,255,0.5); transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .story-grid { grid-template-columns: 1fr; }
  .features-grid, .pricing-grid, .testimonials-grid {
    grid-template-columns: 1fr; max-width: 440px; margin: 0 auto;
  }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .parallax-stats { gap: 32px; padding: 20px 32px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26,16,64,0.98);
    backdrop-filter: blur(20px);
    padding: 30px 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: -1;
    align-items: center;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .hamburger { display: flex; z-index: 100; }
  .story-highlights { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .parallax-stats {
    gap: 20px; padding: 16px 24px;
    flex-wrap: wrap; justify-content: center;
    bottom: 20px;
  }
  .parallax-stats .stat-num { font-size: 1.4rem; }
  .scroll-indicator { bottom: 110px; }
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 14px;
  background: rgba(26,16,64,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  max-width: 420px;
}
.toast-visible {
  transform: translateY(0);
  opacity: 1;
}
.toast-error {
  border-left: 3px solid var(--magenta);
}
.toast-success {
  border-left: 3px solid #2ecc71;
}
.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.toast-success .toast-icon {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.toast-msg {
  line-height: 1.4;
}
