/* ==========================================================================
   Public Landing Page - Final Version
   Ensures lamp visibility on all devices with 40px padding
   ========================================================================== */

.public-landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px; /* 40px padding on all devices */
}

/* Background Elements */
.landing-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #161616 100%);
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

/* Lamp Container - VISIBLE ON ALL DEVICES */
.landing-lamp-container {
  position: absolute;
  top: 0px; /* Adjusted for 40px padding */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 1; /* MAXIMUM VISIBILITY */
  transition: opacity 1200ms var(--ease);
  pointer-events: none;
}

.landing-lamp {
  width: 1060px;
  height: 240px;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

#landing-lamp-glow {
  opacity: 0.8; /* MAXIMUM VISIBILITY */
  transition: opacity 2000ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Grid Layout */
.cinematic-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  height: calc(100vh - 80px); /* Account for 40px top and bottom padding */
  display: flex;
  align-items: center;
}

.landing-grid {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 15;
}

/* Left Column - Main Content */
.landing-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-content {
  text-align: center;
  width: 100%;
  max-width: none; /* Remove max-width restriction */
  margin: 0 auto;
  padding: 40px;
  /* Background removed as requested by client */
}

/* Brand - ENHANCED TEXT VISIBILITY */
.landing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.landing-brand h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700; /* Increased weight for better visibility */
  letter-spacing: 2px;
  color: #ffffff; /* Pure white for maximum contrast */
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(163, 177, 138, 0.3); /* Added accent glow */
}

/* Headline - ENHANCED TEXT VISIBILITY */
.landing-headline {
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.landing-headline h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600; /* Increased weight */
  margin: 0 0 12px 0;
  color: #f8f8f8; /* Brighter color */
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 3px 15px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(163, 177, 138, 0.2); /* Subtle accent glow */
}

.landing-headline p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: #e8e8e8; /* Less muted, brighter color */
  margin: 0;
  font-style: italic;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6), 0 2px 12px rgba(0, 0, 0, 0.4); /* Enhanced shadow */
  font-weight: 500; /* Slightly bolder */
}

/* Sand Timer */
.landing-sand-timer-container {
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.landing-sand-timer {
  position: relative;
  display: inline-block;
}

.landing-hourglass {
  position: relative;
  width: 120px;
  height: 180px;
  margin: 0 auto 15px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.landing-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 60px 60px 8px 8px;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 85%,
    55% 85%,
    50% 100%,
    45% 85%,
    0% 85%
  );
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 6px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1px);
}

.landing-sand-top,
.landing-sand-bottom {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 50%;
  overflow: hidden;
}

.landing-sand-top {
  top: 8px;
  height: 45%;
  background: rgba(0, 0, 0, 0.15);
}

.landing-sand-bottom {
  bottom: 8px;
  height: 45%;
  background: rgba(0, 0, 0, 0.15);
}

.landing-sand-fill {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, #f6d365, #fda085);
  transition: height 3s cubic-bezier(0.65, 0, 0.35, 1);
}

.landing-sand-top .landing-sand-fill {
  bottom: 0;
  height: 70%;
  border-radius: 50px 50px 0 0;
  box-shadow: inset 0 -6px 12px rgba(253, 160, 133, 0.5),
    inset 0 3px 8px rgba(246, 211, 101, 0.3);
}

.landing-sand-bottom .landing-sand-fill {
  top: 0;
  height: 30%;
  border-radius: 0 0 50px 50px;
  box-shadow: inset 0 6px 12px rgba(246, 211, 101, 0.5),
    inset 0 -3px 8px rgba(253, 160, 133, 0.3);
}

.landing-neck {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  z-index: 2;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 0 8px rgba(0, 0, 0, 0.15);
}

.landing-sand-flow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
  z-index: 3;
}

.landing-stand {
  width: 80px;
  height: 10px;
  background: linear-gradient(135deg, #8a795d, #6d5d4b);
  margin: -4px auto 0;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  position: relative;
}

.landing-stand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
  border-radius: 1px;
}

/* Action Buttons */
.landing-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  border: 1.5px solid transparent;
  min-width: 140px;
  justify-content: center;
}

.landing-btn.primary {
  background: linear-gradient(135deg, var(--accent), #8fa07b);
  color: #1b1b1b;
  border-color: transparent;
}

.landing-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(163, 177, 138, 0.25);
}

.landing-btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.landing-btn.secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.landing-btn svg {
  width: 16px;
  height: 16px;
}

/* Toggles */
.landing-toggles {
  display: flex;
  gap: 12px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.landing-toggles .toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-size: 13px;
}

.landing-toggles .toggle-btn:hover {
  border-color: var(--ring);
  transform: translateY(-1px);
}

.landing-toggles .toggle-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #1b1b1b;
  border-color: transparent;
}

.landing-toggles .toggle-icon {
  width: 16px;
  height: 16px;
}

/* Right Column - Real Story */
.landing-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-story {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.story-header {
  margin-bottom: 24px;
  text-align: center;
}

.story-header h3 {
  font-size: 18px;
  font-weight: 300;
  margin: 0 0 12px 0;
  color: var(--ink);
  letter-spacing: 1px;
}

.story-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-author {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}

.story-role {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.story-content {
  margin-bottom: 24px;
}

.story-content blockquote {
  margin: 0 0 20px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--accent);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
}

.story-insight {
  margin-bottom: 20px;
}

.story-insight p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.story-insight ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.story-insight li {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
  position: relative;
}

.story-insight li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.story-cta {
  background: rgba(163, 177, 138, 0.05);
  border: 1px solid rgba(163, 177, 138, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.story-cta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.story-cta strong {
  color: var(--accent);
}

.story-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s var(--ease);
}

.story-link:hover {
  gap: 12px;
}

.story-link svg {
  width: 16px;
  height: 16px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
