/* ============================================
   VELA — Social Media Templates Styles
   ============================================ */

:root {
  --obsidian: #1A1A1A;
  --charcoal: #2C2C2C;
  --graphite: #6B6B6B;
  --silver: #E0E0E0;
  --ivory: #FAFAFA;
  --parchment: #F2EFE9;
  --gold: #B8860B;
  --gold-light: #D4AF37;
  --gold-pale: #F5EDD0;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Spectral', serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #111111;
  color: var(--ivory);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-back {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--graphite);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-back:hover { color: var(--gold); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ivory);
}

.nav-right {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 120px 48px 64px;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease both;
}

.page-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ivory);
  margin-bottom: 20px;
  line-height: 1;
}

.page-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--graphite);
  line-height: 1.7;
}

/* ── MAIN ── */
.templates-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ── TEMPLATE SECTION ── */
.template-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeUp 0.7s ease both;
}

.template-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.template-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.template-platform {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.template-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

.template-size {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--graphite);
}

.template-variants {
  display: flex;
  gap: 4px;
}

.variant-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  background: transparent;
  color: var(--graphite);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}

.variant-btn:hover { color: var(--ivory); border-color: rgba(255,255,255,0.3); }
.variant-btn.active { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }

/* ── TEMPLATE STAGE ── */
.template-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 48px;
  min-height: 400px;
}

.variant-panel { display: none; }
.variant-panel.active { display: flex; justify-content: center; align-items: center; }

/* ── INSTAGRAM POST ── */
.ig-post {
  width: 100%;
  max-width: 400px;
}

.ig-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
}

.dark-frame { background: var(--obsidian); }
.light-frame { background: var(--ivory); border: 1px solid var(--silver); }
.gold-frame { background: var(--gold-pale); border: 1px solid #D4AF37; }

/* Noise texture overlay */
.ig-noise, .story-noise, .li-noise, .tw-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.ig-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.ig-logo-small {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ivory);
}

.ig-brand-name.dark { color: var(--obsidian); }

.ig-handle {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(250,250,250,0.5);
}

.ig-handle.dark { color: var(--graphite); }

.ig-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ig-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.ig-eyebrow.dark { color: var(--gold); }

.ig-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ivory);
}

.ig-headline.dark { color: var(--obsidian); }

.ig-headline em {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--gold-light);
}

.ig-headline .gold-em { color: var(--gold); font-style: italic; font-family: var(--font-body); }

.ig-gold-rule {
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.ig-dark-rule {
  width: 32px;
  height: 2px;
  background: var(--obsidian);
}

.ig-body {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(250,250,250,0.6);
}

.ig-body.dark { color: var(--graphite); }

.ig-bottom-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.ig-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(250,250,250,0.35);
}

.ig-tag.dark { color: var(--graphite); }

.ig-corner-mark {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-size: 18px;
  color: var(--gold);
  opacity: 0.4;
  z-index: 1;
}

.ig-corner-mark.dark { color: var(--gold); opacity: 0.5; }

/* ── STORY ── */
.story-stage { min-height: 600px; }

.story-post {
  width: 100%;
  max-width: 260px;
}

.story-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  overflow: hidden;
}

.parchment-frame { background: var(--parchment); }

.story-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.story-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ivory);
}

.story-brand.dark { color: var(--obsidian); }

.story-mid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.story-line {
  height: 1px;
}

.gold-line { background: var(--gold); opacity: 0.5; }

.story-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ivory);
}

.story-headline.dark { color: var(--obsidian); }

.story-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.story-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.5);
}

.story-eyebrow.dark { color: var(--graphite); }

.story-sub {
  font-family: var(--font-display);
  font-size: 11px;
  color: rgba(250,250,250,0.4);
  letter-spacing: 0.06em;
}

.story-arrow {
  font-size: 20px;
  color: var(--gold);
  animation: bounce 1.5s ease infinite;
}

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

/* Quote story */
.story-quote-mark {
  font-family: var(--font-body);
  font-size: 72px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.5;
}

.story-quote-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--obsidian);
}

.story-cite {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.story-dots {
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.5;
}

/* CTA story */
.cta-mid {
  gap: 16px;
}

.cta-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--gold);
  padding: 5px 12px;
  align-self: flex-start;
}

.cta-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(250,250,250,0.55);
}

.cta-button {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--obsidian);
  background: var(--gold);
  padding: 14px 24px;
  text-align: center;
  width: 100%;
  cursor: pointer;
  transition: background var(--transition);
}

.cta-button:hover { background: var(--gold-light); }

/* ── LINKEDIN BANNER ── */
.linkedin-stage { min-height: 200px; }

.li-banner {
  width: 100%;
}

.li-frame {
  width: 100%;
  aspect-ratio: 4 / 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
  overflow: hidden;
}

.li-frame.light-frame { background: var(--ivory); border: 1px solid var(--silver); }

.li-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.li-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.li-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ivory);
}

.li-name.dark { color: var(--obsidian); }

.li-tagline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(250,250,250,0.45);
}

.li-tagline.dark { color: var(--graphite); }

.li-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.li-divider.dark { background: var(--silver); }

.li-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.li-services {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  flex-wrap: wrap;
}

.li-services.dark { color: var(--gold); }

.li-dot { color: rgba(184,134,11,0.4); }

.li-tagline-main {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

.li-tagline-main.dark { color: var(--obsidian); }

.li-corner {
  position: absolute;
  bottom: 14px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(250,250,250,0.25);
}

.li-corner.dark { color: var(--graphite); }

/* ── TWITTER BANNER ── */
.twitter-stage { min-height: 180px; }

.tw-banner { width: 100%; }

.tw-frame {
  width: 100%;
  aspect-ratio: 3 / 1;
  position: relative;
  overflow: hidden;
}

.tw-frame.minimal-frame { background: var(--ivory); border: 1px solid var(--silver); }

.tw-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 24px;
}

.tw-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tw-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ivory);
}

.tw-brand.dark { color: var(--obsidian); }

.tw-center { flex: 1; text-align: center; }

.tw-tagline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(250,250,250,0.45);
}

.tw-tagline.dark { color: var(--graphite); }

.tw-right { flex-shrink: 0; }

.tw-url {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.tw-url.dark { color: var(--gold); }

.tw-gold-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

/* ── USAGE NOTES ── */
.usage-section {
  padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.usage-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 40px;
}

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

.usage-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}

.usage-card:hover { background: rgba(255,255,255,0.05); }

.usage-icon { font-size: 24px; }

.usage-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.usage-card p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--graphite);
}

/* ── FOOTER ── */
.footer {
  background: #0A0A0A;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ivory);
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

.footer-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover { color: var(--gold-light); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .page-header { padding: 100px 24px 48px; }
  .templates-main { padding: 0 24px 60px; }
  .template-stage { padding: 32px 20px; }
  .usage-grid { grid-template-columns: 1fr 1fr; }
  .li-frame { aspect-ratio: 3 / 1; padding: 0 24px; gap: 20px; }
  .footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .template-meta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .usage-grid { grid-template-columns: 1fr; }
  .li-frame { flex-direction: column; justify-content: center; aspect-ratio: 2 / 1; }
  .li-divider { display: none; }
  .tw-content { flex-direction: column; gap: 8px; text-align: center; }
}