/* Basic Reset */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "Space Rabbit";
  src: url("../assets/Space Rabbit.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Kalamayka";
  src: url("../assets/KalamaykaVF.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Diamond Grotesk";
  src: url("../assets/DiamondGrotesk-VF.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Switzer";
  src: url("../assets/Switzer-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Valore Pro removed as we are switching to Inter */

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

::selection {
  background: #fdba74; /* Orange-300 */
  color: #fff;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1c1917; /* Stone-900 for warm contrast */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Diamond Grotesk", "Inter", -apple-system, sans-serif;
}

/* Header & Positioning */
header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header Layout */
.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* Spacious gap for links */
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: #1c1917;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  font-family: "Kalamayka", sans-serif;
}

.beta-tag {
  display: inline-block;
  background-color: #ffedd5; /* Orange-100 */
  color: #ea580c; /* Orange-600 */
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #fed7aa;
  position: relative;
  top: 0px;
}

.nav-link {
  text-decoration: none;
  color: #57534e; /* Stone-600 */
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  font-family: "Kalamayka", sans-serif;
}

.nav-link:hover {
  color: #ea580c; /* Orange-600 */
}

/* Login Button Basic Styling */
.btn-login {
  text-decoration: none;
  color: #44403c; /* Stone-700 */
  font-weight: 500;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 1.5rem;
  background-color: rgba(255, 255, 255, 0.6); /* Faint background */
  border: 1px solid rgba(255, 255, 255, 0.8); /* Subtle border */
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-family: "Kalamayka", sans-serif;
}

.btn-login:hover {
  background-color: #fff;
  transform: translateY(-1px);
  color: #ea580c; /* Orange on hover */
}

/* Try Now Button (Primary) */
.btn-try {
  text-decoration: none;
  color: #fff;
  background-color: #ea580c; /* Orange-600 */
  font-weight: 500;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid #ea580c;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-family: "Kalamayka", sans-serif;
}

.btn-try:hover {
  background-color: #c2410c; /* Orange-700 */
  border-color: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

main {
  flex: 1; /* Pushes footer down */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Hero Content */
/* Dot Matrix Background Utility */
.dot-matrix-bg {
  width: 100%;
  position: relative;
  z-index: 0;
}

.dot-matrix-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: radial-gradient(
    #d6d3d1 1.5px,
    transparent 1.5px
  ); /* Stone-300 dots */
  background-size: 24px 24px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  animation: fadeInDots 1.5s ease-out forwards;
}

@keyframes fadeInDots {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-section {
  padding-bottom: 2rem;
}

.hero-content {
  text-align: center;
  padding-top: 6rem; /* Moved top margin here as padding */
  margin-bottom: 0rem;
}

/* Hero Staggered Text Animation */
.hero-content.fade-in-section {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-content.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-content.is-visible > *:nth-child(1) {
  transition-delay: 0.1s;
}
.hero-content.is-visible > *:nth-child(2) {
  transition-delay: 0.2s;
}
.hero-content.is-visible > *:nth-child(3) {
  transition-delay: 0.3s;
}
.hero-content.is-visible > *:nth-child(4) {
  transition-delay: 0.4s;
}

.hero-content h1 {
  font-size: 5rem; /* Larger, more expressive */
  line-height: 1;
  font-weight: 400; /* Regular weight for that 'handcrafted' feel */
  color: #1c1917;
  letter-spacing: -0.03em;
}

.hero-top-line {
  /* Offset the first line to balance the rotator width */
  padding-left: 20px; /* Space between lines */
}

.hero-content p {
  font-size: 1.5rem;
  color: #57534e; /* Stone-600 */
  max-width: 600px;
  margin: 0 auto 2rem auto; /* Added bottom margin for button spacing */
  font-weight: 400;
}

.hero-content .hero-note {
  font-size: 1rem;
  color: #78716c; /* Stone-500 */
  margin-top: 1rem;
  font-weight: 400;
  font-family: "Kalamayka", sans-serif;
}

/* Rotator Animation */
.rotator {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: bottom; /* Ensure alignment with main text */
  position: relative;
  text-align: left;
  color: #f97316; /* Orange-500 highlight */
}

.rotator-words {
  display: block;
  /* Run once, stop at the end. Duration adapted for 5 words. */
  animation: rotateWords 10s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.5s;
}

.rotator-words span {
  display: block;
  height: 1.1em;
  line-height: 1.1em;
}

@keyframes rotateWords {
  0% {
    transform: translateY(0);
  }
  15% {
    transform: translateY(0);
  } /* Hold Tasks */

  20% {
    transform: translateY(-1.1em);
  } /* Slide to Events */
  35% {
    transform: translateY(-1.1em);
  } /* Hold Events */

  40% {
    transform: translateY(-2.2em);
  } /* Slide to Habits */
  55% {
    transform: translateY(-2.2em);
  } /* Hold Habits */

  60% {
    transform: translateY(-3.3em);
  } /* Slide to Files */
  75% {
    transform: translateY(-3.3em);
  } /* Hold Files */

  80% {
    transform: translateY(-4.4em);
  } /* Slide to Life */
  100% {
    transform: translateY(-4.4em);
  } /* Stay on Life */
}

/* App Showcase (Simple Window) */
.app-showcase {
  width: 90%;
  max-width: 1000px; /* Constrain width */
  margin: -1rem auto 2rem auto; /* Decreased bottom margin (was 6rem) */
  position: relative;
  padding: 1rem; /* Space for shadow */
}

/* ... existing styles ... */

/* Main Features Header */
.main-features-section {
  padding: 2rem 0 6rem 0; /* Reduced top padding (was 6rem) */
  width: 100%;
  margin: 0 auto;
}

.app-window {
  width: 100%;
  aspect-ratio: 4 / 3; /* Enforce 4:3 ratio */
  background: #fff;
  border: 5px solid rgba(0, 0, 0, 0.05); /* Thicker subtle border */
  border-radius: 12px;
  box-shadow: 0 20px 60px -10px rgba(124, 45, 18, 0.1); /* Deep, soft orange-tinted shadow */
  overflow: hidden;
  position: relative;
  /* Animation Base Props */
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Initial / Hidden State */
.app-showcase:not([data-ready]) .app-window,
.app-showcase[data-ready="0"] .app-window {
  opacity: 0;
  transform: translateY(20vh) scale(0.995);
  transition: none; /* Instant hide on load */
}

/* Visible / Animated State */
.app-showcase[data-ready="1"] .app-window {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the 4:3 container nicely */
  display: block;
}

/* Hero Canvas & Widgets */
.hero-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Glassmorphism for Widgets */
.float-widget {
  position: absolute;
  background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
  backdrop-filter: blur(12px); /* Blur effect */
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    /* Soft shadow */ 0 10px 15px -3px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.float-widget:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 25px -5px rgba(234, 88, 12, 0.05),
    0 8px 10px -6px rgba(234, 88, 12, 0.01),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* Widget 1: Habits */
.widget-habits {
  top: 15%;
  left: 15%;
  width: 260px;
  transform: rotate(-3deg);
  z-index: 2;
}

.widget-header {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.5;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.widget-habits h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #1c1917;
}

.widget-habits ul {
  list-style: none;
}

.widget-habits li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #57534e;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-habits li.checked {
  text-decoration: line-through;
  color: #a8a29e;
}

.widget-habits li:last-child {
  border-bottom: none;
}
.chk {
  color: #f97316; /* checkmark orange */
}

/* Widget 2: Timer */
.widget-timer {
  top: 30%;
  right: 15%;
  width: 220px;
  text-align: center;
  transform: rotate(2deg);
  z-index: 3;
}

.timer-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #78716c;
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Kalamayka", sans-serif;
}

.timer-display {
  font-family: "Space Rabbit", sans-serif;
  font-size: 3.5rem;
  color: #1c1917;
  line-height: 1;
}

.timer-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.timer-progress {
  width: 60%;
  height: 100%;
  background: #f97316; /* Orange progress */
}

/* Widget 3: Note */
.widget-note {
  bottom: 15%;
  left: 45%;
  width: 200px;
  padding: 1rem;
  background: rgba(255, 247, 237, 0.9); /* Very light orange, like paper */
  border: 1px solid #fed7aa;
  backdrop-filter: blur(4px);
  transform: rotate(4deg);
  /* Inherit main font for cleanliness */
  z-index: 1;
  text-align: center;
  color: #44403c;
}

/* Widget 4: Folder */
.widget-folder {
  top: 60%;
  right: 25%;
  width: 180px;
  height: 140px;
  background: rgba(255, 237, 213, 0.9); /* Orange-100 */
  border: 2px solid #fb923c; /* Orange-400 */
  border-radius: 0 12px 12px 12px;
  padding: 1rem;
  transform: rotate(-5deg);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.15);
}

/* Pseudo-element or extra div for the folder tab */
.folder-tab {
  position: absolute;
  top: -14px;
  left: -2px;
  width: 70px;
  height: 16px;
  background: #ffedd5;
  border: 2px solid #fb923c;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
/* Mask border line below tab */
.folder-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ffedd5;
}

.folder-body {
  text-align: center;
  z-index: 2;
}

.file-icon {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 50px;
  line-height: 50px;
  margin: 0 auto 0.5rem auto;
  border-radius: 4px;
  border: 1px solid #fb923c;
}

.file-name {
  display: block;
  font-size: 0.85rem;
  color: #c2410c;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.video-preview {
  width: 100%;
  height: 80px;
  background: #1c1917;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.play-btn {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
}

/* Widget 6: Image Object */
.widget-image {
  top: 25%;
  right: 40%;
  width: 140px;
  padding: 0.75rem 0.75rem 2rem 0.75rem; /* Polaroid padding */
  transform: rotate(-8deg);
  z-index: 1;
  background: #fff; /* Polaroids should be opaque white generally */
}

.image-box {
  width: 100%;
  height: 90px;
  background: #fff7ed; /* Orange-50 */
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sun {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  background: #fbbf24;
  border-radius: 50%;
}

.mountain {
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 60px solid #fdba74; /* Orange-300 */
}

.media-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Kalamayka", sans-serif;
}

/* University Marquee */
.university-marquee {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 6rem 0; /* Space above features */
  text-align: center;
  color: #78716c;
}

.university-marquee p {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: scrollMarquee 30s linear infinite;
  justify-content: center; /* Fallback */
}

.marquee-track span {
  font-size: 1.5rem;
  font-weight: 500;
  color: #cbd5e1; /* Neutral light grey, maybe shift to stone if too cool: #d6d3d1 */
  font-family: system-ui, -apple-system, sans-serif; /* Normal font */
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Scrolls half the width (the duplicate set) */
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.features-header h2 {
  font-size: 4rem;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.features-header p {
  font-size: 1.25rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  width: 100%;
  padding: 0 4rem;
  max-width: 1400px;
}

.features-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #0f172a;
}

.features-tagline {
  font-size: 1.25rem;
  color: #475569;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.bento-grid {
  display: flex; /* Changed from grid to flex wrap for easier fixed sizing */
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 6rem;
  max-width: 1200px; /* Constrain width to avoid too many columns */
  margin-left: auto;
  margin-right: auto;
}

.bento-card {
  width: 320px; /* Fixed width */
  flex-shrink: 0; 
  background: rgba(255, 255, 255, 0.85); /* Increased opacity to hide dots */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05); /* Very subtle border instead */
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  position: relative; /* Required for z-index */
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}



.card-visual {
  height: 180px; /* Slightly shorter to accommodate padding */
  width: calc(100% - 24px);
  margin: 12px 12px 0 12px; /* Top, Right, Bottom=0, Left */
  border-radius: 12px; /* Inner rounded corners */
  background-color: #f5f5f4;

  /* The background-color is set inline in HTML. 
       We add a gradient OVER it to give depth. */
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.5); /* Highlight top edge */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Standard Cover Image Class */
/* Standard Cover Image Class */
/* Standard Cover Image Class */
.bento-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; /* Ensure no inline whitespace issues */
}





.card-content {
  padding: 1.5rem;
  font-family: "Inter", sans-serif;
}

.card-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
  font-weight: 600;
}

.card-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

/* Minimal Pricing Section */
.pricing-minimal {
  text-align: center;
  padding: 8rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-statement {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 4rem;
  color: #0f172a;
}

.price-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.price-tier {
  text-align: center;
}

.price-label {
  display: block;
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-amount {
  display: block;
  font-size: 4rem;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.price-amount small {
  font-size: 1.5rem;
  color: #94a3b8;
}

.price-tier p {
  color: #64748b;
}

.price-divider {
  font-size: 4rem;
  color: #cbd5e1;
  font-weight: 300;
}

.student-note {
  color: #64748b;
  margin-bottom: 4rem;
  font-style: italic;
}

.btn-cta-large {
  display: inline-block;
  background-color: #0f172a;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: "Kalamayka", sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-cta-large:hover {
  transform: translateY(-2px);
  background-color: #ea580c; /* Orange pop */
  box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3);
}

/* Reviews Section */
.reviews-section {
  width: 100%;
  padding: 0 4rem;
  max-width: 1200px;
  margin-bottom: 8rem;
}

.reviews-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 400;
  color: #0f172a;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.6);
}

.review-text {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-author {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.site-footer {
  background: rgba(240, 240, 240, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 4rem;
  overflow: hidden; /* Clips the big text if needed */
  margin: 0 4rem 0 4rem; /* Cut off from left, right, but no bottom margin */
  border-radius: 2rem; /* Rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap; /* responsive safety */
  gap: 4rem;
}

.footer-brand {
  flex: 0 0 250px; /* Small fixed width for brand column */
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-links {
  flex: 1; /* Takes remaining space */
  display: flex;
  justify-content: flex-end; /* Align links to right */
  gap: 4rem;
  margin-bottom: 0; /* Reset previous margin */
  padding: 0; /* Reset previous padding */
}

.footer-links .column h4 {
  font-size: 0.875rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.footer-links .column a {
  display: block;
  text-decoration: none;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-links .column a:hover {
  color: #0f172a;
}

.big-text {
  font-family: "Space Rabbit", sans-serif;
  font-size: 18vw;
  font-weight: 700;
  text-align: center;
  line-height: 0.8;
  color: rgba(0, 0, 0, 0.1); /* Fainter white */
  user-select: none;
  pointer-events: none;
  margin-bottom: -4vw; /* Pull text slightly downe */
}

/* Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Support for scroll-triggered app showcase */
.app-showcase.is-visible .app-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Feature Switcher Styles */
.feature-switcher-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-tab {
  border: none;
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #57534e;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
}

.feature-tab:hover {
  color: #1c1917;
  background: rgba(255, 255, 255, 0.6);
}

.feature-tab.active {
  background: #fff;
  color: #ea580c; /* Orange branding */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Enhancing the window for stacking images */
.app-window.relative-window {
  position: relative;
  /* Maintain aspect ratio hack if images load slowly, 
       but images are 4:3 so the existing aspect-ratio: 4/3 rule 
       on .app-window should hold the shape. 
    */
}

.app-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* or cover */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none; /* Prevent dragging dummy images */
}

.app-screenshot.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

/* Fix for Hero Section Showcase 
   The hero section image is a direct child of .app-window and is not part of the switcher.
   We need to ensure it's visible by default since .app-screenshot sets opacity: 0.
*/
.hero-section .app-screenshot {
  opacity: 1;
  position: relative; /* Hero image doesn't need absolute positioning */
  pointer-events: auto;
}

/* Ensure the container triggers animations correctly */
.feature-switcher-container.is-visible .app-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  color: #94a3b8; /* Slate-400 */
  transition: all 0.25s ease;
  opacity: 0.8;
}

.social-icon:hover {
  color: #0f172a; /* Slate-900 */
  transform: translateY(-2px);
  opacity: 1;
}

/* Default Hidden State for Mobile Components */
.burger-btn,
.mobile-menu-overlay {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Header - Hide buttons in header, show burger */
  header {
    padding: 1rem;
    position: relative;
    z-index: 100; /* Ensure header stays on top */
  }

  /* Hide center nav links on mobile */
  .nav-center {
    display: none;
  }

  /* Hide default auth buttons in header on mobile */
  .header-right .btn-login,
  .header-right .btn-try {
    display: none;
  }

  .header-left {
    flex: 0 0 auto;
    z-index: 101; /* Keep logo above menu */
  }

  .header-right {
    gap: 0.5rem;
    z-index: 101; /* Keep burger above menu */
  }

  /* Burger Button */
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
  }

  .burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1c1917;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* Burger Open State */
  .burger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .burger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }


  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 99;
    padding: 6rem 2rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; /* Override global none logic if I set it, but default div is block */
  }
  
  .mobile-menu-overlay.open {
    transform: translateX(0);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1c1917;
    text-decoration: none;
    font-family: 'Diamond Grotesk', sans-serif;
  }
  
  .mobile-auth-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-auth-buttons .btn-login,
  .mobile-auth-buttons .btn-try {
    display: flex; /* Show them here */
    justify-content: center;
    height: 44px;
    font-size: 1rem;
  }

  /* Hero adjustments */
  .hero-content {
    padding-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem; /* much smaller on mobile */
    line-height: 1.2;
  }

  .hero-top-line {
    padding-left: 0;
    display: flex; 
    flex-direction: row; /* Keep on same line */
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem; /* Space between 'Your' and rotator */
  }
  
  .rotator {
    text-align: left;
    display: block; /* Ensure it takes full width of flex item */
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* App Showcase */
  .app-showcase {
    width: 95%;
    margin-top: 1rem;
    padding: 0.5rem;
  }
  
  .app-window {
    border-width: 2px; /* Thinner border for mobile */
  }

  /* Main Features */
  .main-features-section {
    padding-top: 2rem;
  }

  .features-header {
    padding: 0 1.5rem;
  }

  .features-header h2 {
    font-size: 2rem;
  }

  .feature-tabs {
    flex-wrap: wrap; /* specific fix for overflowing tabs */
    width: 90%;
    margin: 0 auto 2rem auto;
  }
  
  .feature-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex: 1 1 auto; /* Grow to fill space */
    text-align: center;
  }

  /* Bento Grid - Force single column */
  .features-section {
    padding: 0 1.5rem; /* Less padding */
  }

  .features-title {
    font-size: 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Footer */
  .site-footer {
    margin: 0 1rem 1rem 1rem; /* Add bottom margin for visual balance on mobile */
    padding-top: 3rem;
    border-radius: 1.5rem;
  }

  .footer-top {
    padding: 0 1.5rem;
    flex-direction: column; /* Stack columns */
    gap: 2.5rem;
  }

  .footer-brand,
  .footer-links {
    text-align: center; /* Center align everything */
    justify-content: center;
    width: 100%;
  }

  .footer-brand {
    flex: auto;
  }
  
  .footer-links {
    justify-content: center;
    gap: 2.5rem;
    flex-direction: column;
  }

  .social-icons {
    justify-content: center;
  }

  .big-text {
    display: none;
  }
}

.no-scroll {
  overflow: hidden;
}
