/* ══════════════════════════════════════════════════════════════
   SEVORSE Theme - Butler Landing Page (Coming Soon Style)
   Warm Luxury / Deep Tech Editorial Theme
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #F2F0E4;
  --bg-dark: #0D0D0D;
  --bg-card: #E8E6DA;
  --text: #1A1A1A;
  --text-muted: #6B6B60;
  --text-light: #F2F0E4;
  --accent: #C4271B; /* Bold warm red */
  --accent-2: #002244; /* Deep Navy */
  --border-color: rgba(26, 26, 26, 0.12);
  
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans: 'Space Grotesk', sans-serif;
  --f-mono: 'Space Mono', monospace;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  overflow-x: hidden;
  line-height: 1.5;
}

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

em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

/* ─── PRELOADER ─── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.pre-inner {
  text-align: center;
}

.pre-brand {
  font-family: var(--f-sans);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  display: flex;
  gap: 0.1em;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.pre-char {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  animation: preCharReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delay for each character */
.pre-char:nth-child(1) { animation-delay: 0.1s; }
.pre-char:nth-child(2) { animation-delay: 0.2s; }
.pre-char:nth-child(3) { animation-delay: 0.3s; }
.pre-char:nth-child(4) { animation-delay: 0.4s; }
.pre-char:nth-child(5) { animation-delay: 0.5s; }
.pre-char:nth-child(6) { animation-delay: 0.6s; }

@keyframes preCharReveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pre-line-wrap {
  width: 150px;
  height: 1px;
  background: rgba(26, 26, 26, 0.12);
  margin: 10px auto 20px;
  overflow: hidden;
}

.pre-line {
  width: 0%;
  height: 100%;
  background: var(--text);
  animation: preLineProgress 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preLineProgress {
  to { width: 100%; }
}

.pre-tagline {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: preTaglineReveal 1s ease 0.9s forwards;
}

@keyframes preTaglineReveal {
  to { opacity: 1; }
}

/* ─── AMBIENT GRID CANVAS ─── */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

/* ─── NAVIGATION (Mix-blend style) ─── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(26, 26, 26, 0.05);
  background: rgba(242, 240, 228, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.brand-sub {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-left: 8px;
  background: rgba(196, 39, 27, 0.06);
  border: 1px solid rgba(196, 39, 27, 0.15);
  padding: 2px 6px;
  border-radius: 2px;
}

.blink {
  animation: blink-cursor 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 35px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.nav-item {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text);
}

.nav-num {
  opacity: 0.4;
  margin-right: 6px;
  font-size: 0.65rem;
  color: var(--accent);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 39, 27, 0.05);
  border: 1px solid rgba(196, 39, 27, 0.15);
  padding: 6px 14px;
  border-radius: 4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.badge-text {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── HERO SCREEN ─── */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  color: var(--accent);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.title-line-wrap {
  display: block;
  overflow: hidden;
}

.title-line {
  font-family: var(--f-sans);
  font-size: clamp(2.5rem, 6.2vw, 6.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.reveal-item {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loaded .reveal-item {
  transform: translateY(0);
  opacity: 1;
}

.hero-title .title-line-wrap:nth-child(1) .reveal-item { transition-delay: 1.2s; }
.hero-title .title-line-wrap:nth-child(2) .reveal-item { transition-delay: 1.35s; }
.hero-title .title-line-wrap:nth-child(3) .reveal-item { transition-delay: 1.5s; }

.hero-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.65s, opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.65s;
}

body.loaded .hero-subtitle {
  transform: translateY(0);
  opacity: 1;
}

/* ─── MINIMAL WAITLIST FORM ─── */
.waitlist-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.8s, opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.8s;
}

body.loaded .waitlist-container {
  transform: translateY(0);
  opacity: 1;
}

.waitlist-minimal-form {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 12px;
  position: relative;
  transition: var(--transition-smooth);
}

.waitlist-minimal-form:focus-within {
  border-color: var(--accent);
}

.waitlist-minimal-form input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-sans);
  font-size: 1.15rem;
  color: var(--text);
  padding-right: 40px;
}

.waitlist-minimal-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.waitlist-btn-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  padding: 4px;
}

.waitlist-btn-submit svg {
  width: 24px;
  height: 24px;
  transition: var(--transition-smooth);
}

.waitlist-btn-submit:hover {
  color: var(--accent);
}

.waitlist-btn-submit:hover svg {
  transform: translateX(5px);
}

/* Waitlist success state styling */
.waitlist-success {
  animation: waitlistSuccessReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: center;
}

@keyframes waitlistSuccessReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.waitlist-success.hidden {
  display: none;
}

.success-tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

.waitlist-success p {
  font-size: 1.05rem;
  color: var(--text);
}

/* ─── SCROLL CTA INDICATOR ─── */
.scroll-cta {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
}

.scroll-text {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line-anim {
  width: 60px;
  height: 1px;
  background: rgba(26, 26, 26, 0.12);
  position: relative;
  overflow: hidden;
}

.scroll-line-anim::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text);
  animation: scrollSweep 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollSweep {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* ─── HORIZONTAL LOOPING MARQUEE ─── */
#marquee-section {
  padding: 30px 0;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  overflow: hidden;
  background: transparent;
}

.marquee-track {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 50px;
  animation: marqueeLoop 25s linear infinite;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dot {
  color: var(--accent);
  font-size: 0.6rem;
}

@keyframes marqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── PILLARS / CONCEPT SECTION ─── */
.section {
  padding: 12vh 0;
  position: relative;
  z-index: 10;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10%;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6vw;
  align-items: start;
}

@media (max-width: 992px) {
  #hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    gap: 30px;
  }

  .hero-visual {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.pillar-column {
  display: flex;
  flex-direction: column;
  text-align: left;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding-bottom: 20px;
}

.pillar-column::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-column.visible {
  transform: translateY(0);
  opacity: 1;
}

.pillar-column.visible:hover::after {
  width: 100%;
}

.pillar-column:nth-child(1) { transition-delay: 0.1s; }
.pillar-column:nth-child(2) { transition-delay: 0.25s; }
.pillar-column:nth-child(3) { transition-delay: 0.4s; }

.pillar-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.pillar-title {
  font-family: var(--f-sans);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--accent-2);
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── FOOTER SECTION ─── */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background: var(--bg-dark);
  color: var(--text-light);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10%;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
}

.footer-tagline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(242, 240, 228, 0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  color: rgba(242, 240, 228, 0.75);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(242, 240, 228, 0.4);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
