/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-y: auto; /* Allow natural page scrolling */
  min-height: 100%;
}

/* Fixed grid paper background behind everything */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.001) 0%),
    repeating-linear-gradient(
      80deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.15) 30px,
      rgba(0, 0, 0, 0.15) 32px,
      transparent 32px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -190deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.08) 30px,
      rgba(0, 0, 0, 0.08) 32px,
      transparent 32px,
      transparent 40px
    );
}

/* Scroll Container */
.scroll-container {
  min-height: 100%;
  overflow: visible;
  /* Background moved to body::before to keep grid fixed */
}

/* Handwritten notes styling */
.handwritten-note {
  position: fixed;
  font-family: "Reenie Beanie", cursive;
  font-weight: 400;
  font-style: normal;
  color: black;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  max-width: 500px;
  line-height: 1.4;
}

.handwritten-note h3 {
  font-weight: bold;
  margin-bottom: 8px;
}

.handwritten-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.handwritten-note li {
  margin-bottom: 4px;
}

/* Position each note with varied styling */
.note-cv-tips {
  top: 8%;
  left: 1%;
  font-size: 15px;
  transform: rotate(-8deg);
  line-height: 1.3;
}

.note-research-topics {
  top: 10%;
  right: 5%;
  font-size: 15px;
  transform: rotate(12deg);
  line-height: 1.5;
}

.note-questions-ask {
  top: 38%;
  left: 2%;
  font-size: 15px;
  transform: rotate(-15deg);
  line-height: 1.2;
}

.note-need-learn {
  top: 40%;
  right: 30%;
  font-size: 15px;
  transform: rotate(8deg);
  line-height: 1.4;
}

.note-apply-jobs {
  top: 45%;
  left: 30%;
  font-size: 15px;
  transform: rotate(-5deg);
  line-height: 1.6;
}

.note-intern-roles {
  top: 48%;
  right: 6%;
  font-size: 15px;
  transform: rotate(18deg);
  line-height: 1.3;
}

.note-interview-prep {
  top: 70%;
  left: 3%;
  font-size: 15px;
  transform: rotate(-12deg);
  line-height: 1.4;
}

.note-skills-focus {
  top: 10%;
  right: 40%;
  font-size: 15px;
  transform: rotate(6deg);
  line-height: 1.5;
}

.note-networking {
  top: 82%;
  left: 30%;
  font-size: 15px;
  transform: rotate(-18deg);
  line-height: 1.2;
}

.note-follow-up {
  top: 85%;
  right: 12%;
  font-size: 15px;
  transform: rotate(14deg);
  line-height: 1.6;
}

/* Apply font sizes to headers and list items */
.note-cv-tips h3 {
  font-size: 15px;
}
.note-cv-tips li {
  font-size: 28px;
}

.note-research-topics h3 {
  font-size: 26px;
}
.note-research-topics li {
  font-size: 26px;
}

.note-questions-ask h3 {
  font-size: 24px;
}
.note-questions-ask li {
  font-size: 24px;
}

.note-need-learn h3 {
  font-size: 30px;
}
.note-need-learn li {
  font-size: 30px;
}

.note-apply-jobs h3 {
  font-size: 22px;
}
.note-apply-jobs li {
  font-size: 22px;
}

.note-intern-roles h3 {
  font-size: 27px;
}
.note-intern-roles li {
  font-size: 27px;
}

.note-interview-prep h3 {
  font-size: 25px;
}
.note-interview-prep li {
  font-size: 25px;
}

.note-skills-focus h3 {
  font-size: 23px;
}
.note-skills-focus li {
  font-size: 23px;
}

.note-networking h3 {
  font-size: 29px;
}
.note-networking li {
  font-size: 29px;
}

.note-follow-up h3 {
  font-size: 24px;
}
.note-follow-up li {
  font-size: 24px;
}

/* Force all handwritten notes to 15px regardless of individual note styles */
.handwritten-note,
.handwritten-note h3,
.handwritten-note li {
  font-size: 18px !important;
}

@media (max-width: 768px) {
  /* Position each note with varied styling */
  .note-cv-tips {
    opacity: 0;
  }

  .note-research-topics {
    opacity: 0;
  }

  .note-questions-ask {
    opacity: 0;
  }

  .note-need-learn {
    opacity: 0;
  }

  .note-apply-jobs {
    opacity: 0;
  }

  .note-intern-roles {
    top: 35%;
    right: 6%;
    transform: rotate(-18deg);
  }

  .note-networking {
    opacity: 0;
  }

  .note-follow-up {
    top: 65%;
    right: -30px;
    transform: rotate(0deg);
  }
}

/* Common Section Styles */
.first-section,
.second-section,
.third-section,
.fourth-section,
.jd-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0; /* make sections flush so the white containers touch */
  position: relative;
  z-index: 1;
}

.opt-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Keep pricing section spacing separate from the continuous content above */
.pricing-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 56px 0 72px 0;
  position: relative;
  z-index: 1;
}

/* Story section styles */
.story-section .section-content { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 3rem 2rem; border-radius: 0; box-shadow: 0 20px 40px rgba(0,0,0,.08), 0 8px 16px rgba(238,62,54,.06); border: 1px solid rgba(255,255,255,.2); max-width: 1000px; width: 100%; position: relative; z-index: 1; }
.story-section .section-content h1 { font-size: 3.5rem; font-weight: 700; color: #1a1a1a; margin-bottom: 2rem; text-align: center; line-height: 1.2; }
.story-section .preview-container { width: 100%; max-width: 900px; margin: 0 auto; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); background: #ffffff; overflow: hidden; position: relative; border: 1px solid rgba(0,0,0,.08); }
.story-section { display: flex; justify-content: center; align-items: center; }
.story-section .preview-frame { background: #fff; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1.25rem; align-items: center; }
.story-image img { width: 100%; height: auto; border-radius: 12px; border: 1px solid #e5e7eb; object-fit: cover; }
.story-copy { text-align: left; color: #1f2937; line-height: 1.6; display: flex; flex-direction: column; gap: .75rem; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

.first-section {
  align-items: start !important;
}

/* First Section Specific */
.logo-section {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.main-logo {
  max-width: 100%;
  height: auto;
}

.coming-soon-badge {
  background: #ee3e36;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(233, 91, 81, 0.2);
}

/* Section Content Styles */
.section-content {
  width: 100%;
  text-align: center;
  justify-content: center;
  align-items: center;
  /* Let content define height; add a max width wrapper in each section */
}

.pricing-section .section-content {
  text-align: left;
}

.section-content h1 {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 1.2rem;
  padding: 0 2rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preview Container Styles */
.preview-container {
  width: 80vw;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.url-bar {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  font-family: monospace;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.preview-frame {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.portfolio-preview-object {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.portfolio-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
  }

  .preview-container {
    width: 85vw;
  }

  .coming-soon-badge {
    font-size: 1.125rem;
    padding: 0.625rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .section-content h1 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .preview-container {
    width: 90vw;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
}

/* Adjust for MacBook screen sizes */

/* MacBook 13-inch specific fixes - common screen resolution */
@media screen and (min-width: 1280px) and (max-width: 1440px) and (max-height: 800px) {
  .scroll-container {
    padding-top: 0;
  }

  .section-content {
    margin-top: 0;
    padding-top: 0;
  }

  .section-content h1 {
    margin-top: 1rem;
    font-size: 3.2rem;
  }

  .preview-container {
    height: auto; /* Content-sized container */
  }

}

/* CV Preview Styles */
.cv-preview {
  max-width: 800px;
  margin: 0 auto;
  font-family: -apple-system, system-ui, sans-serif;
}

.cv-header {
  text-align: left;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.cv-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.cv-header p {
  font-size: 1.25rem;
  color: #4a5568;
}

.cv-section {
  margin-bottom: 2rem;
  text-align: left;
}

.cv-section h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cv-item {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #eee;
}

.cv-item h4 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.cv-item p {
  color: #4a5568;
  font-size: 0.95rem;
}

/* Match Rating Styles */
.match-rating {
  position: absolute;
  top: 48px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.rating-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #2563eb;
}

.rating-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e95b51;
}

.rating-label {
  font-size: 0.875rem;
  color: #1e293b;
  text-align: left;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .match-rating {
    padding: 0.625rem;
    gap: 0.625rem;
  }

  .rating-circle {
    width: 48px;
    height: 48px;
  }

  .rating-number {
    font-size: 1.25rem;
  }

  .rating-label {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .match-rating {
    padding: 0.5rem;
    gap: 0.5rem;
    right: 8px;
  }

  .rating-circle {
    width: 44px;
    height: 44px;
  }

  .rating-number {
    font-size: 1.125rem;
  }

  .rating-label {
    font-size: 0.75rem;
  }
}

/* Pricing Section Styles */
.pricing-section {
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

.pricing-section .section-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-section h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #1a1a1a;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.pricing-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  width: calc(33.333% - 1rem);
  min-width: 280px;
  max-width: 320px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border: 2px solid #ee3e36;
  box-shadow: 0 8px 24px rgba(238, 62, 54, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ee3e36;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  color: #1a1a1a;
  font-weight: 700;
}

.price .currency {
  font-size: 1.5rem;
  font-weight: 500;
  vertical-align: super;
}

.price .period {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 1rem;
}

.pricing-features i {
  color: #ee3e36;
  font-size: 1.25rem;
}

.pricing-cta {
  background: #ee3e36;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.pricing-cta:hover {
  background: #d63530;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .pricing-card {
    padding: 1.25rem;
    min-width: 260px;
  }

  .pricing-features li {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .pricing-section .section-content {
    padding: 0;
  }

  .pricing-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .pricing-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
  }

  .pricing-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
  }

  .pricing-card {
    scroll-snap-align: center;
    min-width: 85%;
    max-width: 85%;
    padding: 1.25rem;
  }

  .price {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .pricing-card {
    min-width: 90%;
    max-width: 90%;
    padding: 1rem;
  }

  .pricing-features li {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .pricing-container::-webkit-scrollbar {
    display: none;
  }
}

/* Third section specific styles */
.third-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fourth section specific styles */
.fourth-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(238, 62, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.fourth-section .section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: black;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
  width: 100%;
}


.fourth-section .preview-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fourth-section .url-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.5rem;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.fourth-section .preview-frame {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: transparent;
  position: relative;
}

/* --- Ultra Modern Hero Section (Updated Headline) --- */
.ultra-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Nunito", system-ui, sans-serif;
  padding-top: 56px;
}

.ultra-hero-inner {
  max-width: 1000px; /* match other section container widths */
  width: 100%;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(238, 62, 54, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
}

.ultra-hero-title {
  color: #181818;
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.8s;
  margin-bottom: 1.1rem;
}

.ultra-hero-coming-soon {
  color: #ee3e36;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  animation: fadeInUp 1.1s;
}

.ultra-hero-subtitle {
  color: #444;
  font-size: 1rem;
  text-align: center;
  font-weight: 400;
  /* margin-bottom: 1rem; */
  line-height: 1.6;
  max-width: 95%;
  animation: fadeInUp 1.3s;
}

.ultra-hero-email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0.5rem;
}

.ultra-hero-email-label {
  width: 100%;
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: #181818;
}

.ultra-hero-email-input {
  width: 100%;
  padding: 1.1rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 999px;
  font-size: 1.1rem;
  box-sizing: border-box;
  background: #fafbfc;
  color: #181818;
  margin-bottom: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(238, 62, 54, 0.04);
}
.ultra-hero-email-input:focus {
  border-color: #ee3e36;
  background: #fff;
  box-shadow: 0 0 0 2px #ee3e3633;
}
.ultra-hero-email-input::placeholder {
  color: #b0b0b0;
  opacity: 1;
  font-size: 1.05rem;
}

.ultra-hero-email-btn {
  background: linear-gradient(90deg, #ee3e36 80%, #ff6a4d 100%);
  color: #fff;
  border: none;
  padding: 0 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0 999px 999px 0;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: none;
  height: 100%;
  display: flex;
  align-items: center;
}
.ultra-hero-email-btn:hover,
.ultra-hero-email-btn:focus {
  background: #d63530;
  box-shadow: 0 2px 8px rgba(238, 62, 54, 0.1);
}

.ultra-hero-signup-container {
  background: #fff;
  border-radius: 19px;
  padding: 2rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(238, 62, 54, 0.06);
  max-width: 550px;
  width: 100%;
  border: 1px solid rgba(238, 62, 54, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

/* Waitlist form layout */
.waitlist-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.ultra-hero-signup-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ee3e36 0%, #ff6a4d 100%);
}

.signup-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.signup-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.signup-header p {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Hide subtext on mobile devices */
@media (max-width: 768px) {
  .signup-header p {
    display: none;
    margin-bottom: 0;
  }
  .signup-header {
    margin-bottom: 0.1rem;
  }
}

.ultra-hero-signup-row {
  display: flex;
  width: 100%;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.ultra-hero-email-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.8rem;
  background: #f9fafb;
  color: #1a1a1a;
  transition: all 0.2s ease;
  outline: none;
  font-family: "Inter", "Nunito", Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.ultra-hero-email-input:focus {
  border-color: #ee3e36;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(238, 62, 54, 0.1);
  transform: translateY(-1px);
}

.ultra-hero-email-input::placeholder {
  color: #9ca3af;
}

.ultra-hero-signup-btn {
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(238, 62, 54, 0.2);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ultra-hero-signup-btn:hover,
.ultra-hero-signup-btn:focus {
  background: linear-gradient(135deg, #d63530 0%, #e55a3d 100%);
  box-shadow: 0 6px 20px rgba(238, 62, 54, 0.3);
  transform: translateY(-2px);
}

.ultra-hero-signup-btn:active {
  transform: translateY(0);
}

.signup-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 0.8rem;
}

/* Countdown */
.hero-countdown {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 0.5rem;
  width: 100%;
}
.countdown-segment {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.5rem 0.15rem;
  text-align: center;
  background: #fafafa;
}
.countdown-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}
.countdown-label {
  font-size: 0.65rem;
  color: #6b7280;
}

/* Preview tiles */
.hero-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 820px;
  margin: 1.25rem auto 0 auto;
}
.hero-preview-card {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  aspect-ratio: 3/4;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #0f172a;
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.hero-preview-card:hover {
  transform: translateY(-2px);
  border-color: #ee3e36;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.hero-preview-thumb {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-preview-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  margin: 0.6rem auto 0.8rem auto;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #111827;
  color: #111827;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-preview-card:hover .hero-preview-label {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
}

.benefit-item i {
  color: #10b981;
  font-size: 0.8rem;
}

.ultra-hero-signup-social-proof {
  margin-top: 1rem;
  font-size: 1rem;
  color: #181818;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", "Nunito", Helvetica, Arial, sans-serif;
}

.ultra-hero-signup-social-proof .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  background: #f3f3f3;
  margin-right: -6px;
}

.ultra-hero-signup-social-proof .dot2 {
  background: #e0e0e0;
}

.ultra-hero-signup-social-proof .dot3 {
  background: #ee3e36;
}

.ultra-hero-signup-social-proof b {
  color: #181818;
  font-weight: 700;
  margin: 0 0.2rem;
}

.ultra-hero-signup-btn {
  margin-top: 0.4rem;
  padding: 0.8rem 0.8rem;
  background: linear-gradient(90deg, #ee3e36 80%, #ff6a4d 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 16px rgba(238, 62, 54, 0.1);
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-bottom: 0.8rem;
}
.ultra-hero-signup-btn:hover,
.ultra-hero-signup-btn:focus {
  background: #d63530;
  box-shadow: 0 4px 18px rgba(238, 62, 54, 0.13);
  transform: translateY(-2px) scale(1.03);
}

/* Removed old ultra-hero-main-btn styles - replaced with new hero buttons */

.ultra-hero-secondary-btn {
  background: none;
  color: #ee3e36;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.18s;
  padding: 0.7rem 0 0 0;
}
.ultra-hero-secondary-btn:hover,
.ultra-hero-secondary-btn:focus {
  color: #d63530;
}

/* Removed old scroll hint and mouse icon styles - replaced with new hero buttons */

.ultra-hero-or {
  text-align: center;
  color: #ccc;
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: fadeInUp 1.5s;
  align-self: center;
}

.ultra-hero-simple {
  text-align: center;
  color: #222;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: fadeInUp 1.7s;
}

.highlight-free {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ee3e36;
}

.ultra-mouse-icon .bi-mouse {
  font-size: 2.5rem;
  color: #ee3e36;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .ultra-hero-inner {
    padding: 1.5rem 1rem;
    min-height: auto;
    max-height: none;
  }

  .ultra-hero-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.9rem;
  }

  .ultra-hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .ultra-hero-simple {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .ultra-hero-or {
    font-size: 4rem;
    margin: 1rem 0;
  }

  .ultra-hero-signup-container {
    margin-bottom: 1rem;
  }

  .hero-action-buttons {
    margin-top: 1rem;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .ultra-hero-signup-container {
    padding: 0.5rem;
  }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .ultra-hero-inner {
    padding: 1rem 0.75rem;
    min-height: auto;
    max-height: none;
  }

  .ultra-hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .ultra-hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .ultra-hero-or {
    font-size: 3rem;
    margin: 0.75rem 0;
  }

  .ultra-hero-simple {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .ultra-hero-signup-container {
    max-width: 98vw;
    margin-bottom: 0.5rem;
  }

  .ultra-hero-signup-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .ultra-hero-email-input {
    font-size: 1rem;
    padding: 0.7rem 0.7rem;
    border-radius: 16px;
  }

  .ultra-hero-signup-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem 0.7rem;
    border-radius: 16px;
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
  }

  .hero-action-buttons {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  .hero-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  .hero-name-row {
    grid-template-columns: 1fr;
  }
  .ultra-hero-inner {
    min-height: auto;
    max-height: none;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    overflow-y: visible;
  }

  .ultra-hero-signup-container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
    border-radius: 20px;
  }

  .signup-header {
    margin-bottom: 0.5rem;
  }

  .signup-header h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    padding: 0 0.5rem;
  }

  .signup-header p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .ultra-hero-signup-row {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
  }

  .ultra-hero-email-input {
    width: 100%;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .ultra-hero-signup-btn {
    width: 100%;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    justify-content: center;
  }

  .signup-benefits {
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
  }

  .benefit-item {
    font-size: 0.875rem;
    gap: 0.75rem;
  }

  .benefit-item i {
    font-size: 1.1rem;
  }

  .hero-action-buttons {
    margin-top: 1.5rem;
  }

  .hero-previews {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .ultra-hero-signup-container {
    padding: 1rem 1rem;
    margin: 0 0.3rem;
    border-radius: 18px;
    margin-bottom: 0.5rem;
  }
  .hero-countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .signup-header h3 {
    font-size: 1.125rem;
    padding: 0 0.25rem;
  }

  .signup-header p {
    font-size: 0.9rem;
    padding: 0 0.25rem;
  }

  .ultra-hero-email-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  .ultra-hero-signup-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  .signup-benefits {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
  }

  .benefit-item {
    font-size: 0.8rem;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .ultra-hero-inner {
    padding: 0.75rem 0.5rem;
    min-height: auto;
    max-height: none;
  }

  .ultra-hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .ultra-hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .ultra-hero-or {
    font-size: 2.5rem;
    margin: 0.5rem 0;
  }

  .ultra-hero-simple {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .ultra-hero-signup-container {
    padding: 1.25rem 0.75rem;
    margin: 0 0.25rem;
  }

  .signup-header h3 {
    font-size: 1rem;
  }

  .signup-header p {
    font-size: 0.85rem;
  }

  .ultra-hero-email-input,
  .ultra-hero-signup-btn {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-action-buttons {
    margin-top: 0.5rem;
    gap: 0.5rem;
  }

  .hero-btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
}

.hero-action-buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.hero-btn.primary {
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(238, 62, 54, 0.2);
}

.hero-btn.primary:hover,
.hero-btn.primary:focus {
  background: linear-gradient(135deg, #d63530 0%, #e55a3d 100%);
  box-shadow: 0 6px 20px rgba(238, 62, 54, 0.3);
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: white;
  color: #ee3e36;
  border: 2px solid #ee3e36;
  box-shadow: 0 2px 8px rgba(238, 62, 54, 0.1);
}

.hero-btn.secondary:hover,
.hero-btn.secondary:focus {
  background: #ee3e36;
  color: white;
  box-shadow: 0 4px 16px rgba(238, 62, 54, 0.2);
  transform: translateY(-2px);
}

.hero-btn i {
  font-size: 0.9rem;
}

/* Mobile responsive for hero buttons */
@media (max-width: 768px) {
  .hero-action-buttons {
    flex-direction: row;
    width: 100%;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-action-buttons {
    margin-top: 0rem;
    gap: 0.5rem;
  }

  .hero-btn {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
}

/* ---- Analytics preview (section 6) ---- */
.analytics-container { background: #ffffff; }
.analytics-preview { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
.analytics-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.kpi-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: .9rem; text-align: left; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.kpi-label { color: #64748b; font-weight: 600; font-size: .9rem; }
.kpi-value { font-size: 1.8rem; font-weight: 800; color: #111827; margin-top: .25rem; }
.kpi-trend { font-size: .8rem; margin-top: .25rem; }
.kpi-trend.up { color: #10b981; }
.analytics-panel { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem; }
.panel-title { font-weight: 800; margin-bottom: .75rem; text-align: left; color: #1e293b; }
.match-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.match-bars li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .5rem; }
.bar-label { text-align: left; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; min-width: 160px; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.high { background: #10b981; }
.bar-fill.med { background: #f59e0b; }
.bar-fill.low { background: #ee3e36; }
.bar-value { font-weight: 700; color: #111827; }
.apps-table { display: grid; gap: .5rem; }
.apps-row { display: grid; grid-template-columns: 2fr .7fr .6fr .6fr .8fr .8fr; gap: .5rem; align-items: center; padding: .6rem; border: 1px solid #e5e7eb; border-radius: 8px; background: #ffffff; color: #0f172a; }
.apps-head { background: #f8fafc; font-weight: 700; color: #334155; }
.sub { color: #64748b; font-weight: 500; }
.badge { padding: .2rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 800; border: 1px solid #e5e7eb; }
.badge.live { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.badge.pending { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.pill { padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid #e5e7eb; }
.pill.good { background: #dcfce7; color: #065f46; border-color: #86efac; }
.pill.low { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.bar-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.bar-dot.high { background: #10b981; }
.bar-dot.med { background: #f59e0b; }

@media (max-width: 900px) {
  .analytics-kpis { grid-template-columns: 1fr; }
  .match-bars li { grid-template-columns: 1fr; }
  .apps-row { grid-template-columns: 1fr 1fr; }
  .apps-head { display: none; }
}

/* Refine analytics panels and application rows for phones */
@media (max-width: 768px) {
  .analytics-panel { padding: .75rem; }
  .panel-title { font-size: 1rem; }
  .match-bars { gap: .5rem; }
  .bar-label { font-size: .95rem; }
  .bar-value { font-size: .95rem; }
  .bar-track { height: 6px; }

  .apps-table { gap: .5rem; }
  .apps-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "status ats"
      "views days"
      "reply reply";
    gap: .5rem .6rem;
    padding: .6rem;
  }
  .apps-row > div:nth-child(1) { /* job + company */
    grid-area: title;
    text-align: center;
  }
  .apps-row > div:nth-child(2) { grid-area: status; }
  .apps-row > div:nth-child(3) { grid-area: views; }
  .apps-row > div:nth-child(4) { grid-area: days; }
  .apps-row > div:nth-child(5) { grid-area: ats; text-align: right; }
  .apps-row > div:nth-child(6) { grid-area: reply; display: flex; justify-content: center; }

  .apps-row > div:nth-child(n+2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
  }
  .apps-row strong { font-size: 1.05rem; }
  .apps-row .sub { font-size: .95rem; }
  /* Inline labels to replace hidden table header on mobile */
  .apps-row > div:nth-child(n+2)::before {
    display: block;
    font-size: .7rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
  }
  .apps-row > div:nth-child(2)::before { content: "Status"; }
  .apps-row > div:nth-child(3)::before { content: "Views"; }
  .apps-row > div:nth-child(4)::before { content: "Days"; }
  .apps-row > div:nth-child(5)::before { content: "ATS"; }
  .apps-row > div:nth-child(6)::before { content: "Reply"; }
  .badge { font-size: .7rem; padding: .15rem .45rem; }
  .pill { font-size: .7rem; padding: .15rem .5rem; }
}

@media (max-width: 480px) {
  .bar-label { font-size: .9rem; }
  .bar-value { font-size: .9rem; }
  .analytics-panel { padding: .6rem; }
  .apps-table { gap: .45rem; }

  .apps-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "status ats"
      "views days"
      "reply reply";
    gap: .45rem .5rem;
    padding: .5rem;
    border-radius: 10px;
  }
  .apps-row > div:nth-child(1) { margin-bottom: .25rem; }
  .apps-row > div:nth-child(n+2)::before { font-size: .62rem; }
  .badge, .pill { font-size: .62rem; padding: .12rem .45rem; }
}

/* remove bottom white gap in analytics container */
.analytics-preview { padding-bottom: 1.5rem; }

/* Second section specific styles */
.second-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(238, 62, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.second-section .section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

.second-section .preview-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.second-section .url-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.5rem;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.second-section .preview-frame {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

/* Mobile responsive for second section */
@media (max-width: 768px) {
  .second-section .section-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
    border-radius: 20px;
  }

  .second-section .section-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .second-section .preview-container {
    border-radius: 12px;
  }

  .second-section .preview-frame {
    height: 70vh;
  }
}

@media (max-width: 480px) {
  .second-section .section-content {
    padding: 1.5rem 1rem;
    margin: 0 0.75rem;
    border-radius: 16px;
  }

  .second-section .section-content h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .second-section .preview-frame {
    height: 75vh;
  }
}

/* First section specific styles */
.first-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(238, 62, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Mobile responsive for first section */
@media (max-width: 768px) {
  .first-section .section-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
    border-radius: 20px;
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .first-section .section-content {
    padding: 1.5rem 1rem;
    margin: 0 0.75rem;
    border-radius: 16px;
  }
}

@media (max-width: 360px) {
  .first-section .section-content {
    padding: 1rem 0.75rem;
    margin: 0 0.5rem;
    border-radius: 12px;
  }
}

.first-section .section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

/* Third section specific styles */
.third-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(238, 62, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.third-section .section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

.third-section .preview-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.third-section .url-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.5rem;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.third-section .preview-frame {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

/* Mobile responsive for all sections (first, second, third, fourth) */
@media (max-width: 768px) {
  .ultra-hero-inner,
  .first-section .section-content,
  .second-section .section-content,
  .third-section .section-content,
  .fourth-section .section-content,
  .story-section .section-content,
  .jd-section .section-content,
  .opt-section .section-content,
  .pricing-section .section-content,
  .upload-section .section-content {
    padding: 2rem 1.5rem;
    border-radius: 0;
    margin: 0;
  }

  .first-section .section-content h1,
  .second-section .section-content h1,
  .third-section .section-content h1,
  .fourth-section .section-content h1,
  .story-section .section-content h1,
  .jd-section .section-content h1,
  .opt-section .section-content h1,
  .pricing-section .section-content h1,
  .upload-section .section-content h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .second-section .preview-container,
  .third-section .preview-container,
  .fourth-section .preview-container,
  .story-section .preview-container,
  .jd-section .preview-container,
  .opt-section .preview-container,
  .upload-section .preview-container {
    border-radius: 0;
  }
  .third-section .preview-frame,
  .story-section .preview-frame,
  .jd-section .preview-frame,
  .opt-section .preview-frame,
  .upload-section .preview-frame {
    height: auto;
  }
}

/* Mobile-specific refinements for the analytics (fourth) section */
@media (max-width: 768px) {
  .fourth-section .section-content {
    padding: 1.5rem 1rem;
    margin: 0 0.75rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08), 0 6px 12px rgba(238,62,54,.06);
  }
  .fourth-section .preview-container {
    border-radius: 12px;
  }
  .fourth-section .url-bar {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .fourth-section .section-content {
    padding: 1rem 0.75rem;
    margin: 0 0.5rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .ultra-hero-inner,
  .first-section .section-content,
  .second-section .section-content,
  .third-section .section-content,
  .fourth-section .section-content,
  .story-section .section-content,
  .jd-section .section-content,
  .opt-section .section-content,
  .pricing-section .section-content,
  .upload-section .section-content {
    padding: 1.5rem 1rem;
    border-radius: 0;
  }

  .first-section .section-content h1,
  .second-section .section-content h1,
  .third-section .section-content h1,
  .fourth-section .section-content h1,
  .story-section .section-content h1,
  .jd-section .section-content h1,
  .opt-section .section-content h1,
  .pricing-section .section-content h1,
  .upload-section .section-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 360px) {
  .first-section .section-content h1,
  .second-section .section-content h1,
  .third-section .section-content h1,
  .fourth-section .section-content h1,
  .story-section .section-content h1,
  .jd-section .section-content h1,
  .opt-section .section-content h1,
  .pricing-section .section-content h1,
  .upload-section .section-content h1 {
    font-size: 1.35rem;
    margin-bottom: 0.875rem;
  }
}

/* CV PDF Preview Styling */
.cv-pdf-preview {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
}

.cv-preview-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cv-preview-url {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}

.cv-match-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.match-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.match-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.cv-pdf-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cv-pdf-thumbnail {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.pdf-preview-image {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.pdf-page {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.pdf-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ee3e36 0%, #ff6a4d 100%);
}

.pdf-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.pdf-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.pdf-header p {
  font-size: 1.1rem;
  color: #ee3e36;
  font-weight: 600;
  margin: 0;
}

.pdf-content-preview {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #374151;
  line-height: 1.6;
}

.pdf-section {
  margin-bottom: 1.5rem;
}

.pdf-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}

.pdf-section p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags span {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.pdf-preview-image:hover .pdf-overlay {
  opacity: 1;
}

.pdf-overlay-content {
  text-align: center;
  color: #6b7280;
}

.pdf-overlay-content i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ee3e36;
}

.pdf-overlay-content p {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.cv-pdf-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.cv-action-btn.primary {
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(238, 62, 54, 0.2);
}

.cv-action-btn.primary:hover,
.cv-action-btn.primary:focus {
  background: linear-gradient(135deg, #d63530 0%, #e55a3d 100%);
  box-shadow: 0 6px 20px rgba(238, 62, 54, 0.3);
  transform: translateY(-2px);
}

.cv-action-btn.secondary {
  background: white;
  color: #ee3e36;
  border: 2px solid #ee3e36;
  box-shadow: 0 2px 8px rgba(238, 62, 54, 0.1);
}

.cv-action-btn.secondary:hover,
.cv-action-btn.secondary:focus {
  background: #ee3e36;
  color: white;
  box-shadow: 0 4px 16px rgba(238, 62, 54, 0.2);
  transform: translateY(-2px);
}

.cv-action-btn i {
  font-size: 1.1rem;
}

.cv-highlights {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.cv-highlights h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  text-align: center;
}

.cv-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.cv-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
  padding: 0.5rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.cv-highlights strong {
  color: #111827;
  font-weight: 600;
}

/* Mobile responsive for CV PDF preview */
@media (max-width: 768px) {
  .cv-pdf-content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .pdf-page {
    padding: 1.5rem;
  }

  .pdf-header h3 {
    font-size: 1.5rem;
  }

  .cv-pdf-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-action-btn {
    justify-content: center;
    width: 90%;
  }

  .cv-highlights ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cv-pdf-content {
    padding: 1rem;
    gap: 1rem;
  }

  .pdf-page {
    padding: 1rem;
  }

  .pdf-header h3 {
    font-size: 1.25rem;
  }

  .cv-preview-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cv-match-rating {
    justify-content: center;
  }
}

/* Simple CV Preview Styling */
.cv-simple-preview {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
}

.cv-preview-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cv-preview-url {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}

.cv-match-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.match-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.match-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.cv-preview-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.cv-preview-thumbnail {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.cv-thumbnail-page {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cv-thumbnail-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ee3e36 0%, #ff6a4d 100%);
}

.cv-thumbnail-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.cv-thumbnail-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.cv-thumbnail-header p {
  font-size: 1.1rem;
  color: #ee3e36;
  font-weight: 600;
  margin: 0;
}

.cv-thumbnail-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #374151;
  line-height: 1.6;
}

.cv-thumbnail-section {
  margin-bottom: 1.5rem;
}

.cv-thumbnail-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}

.cv-thumbnail-section p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cv-action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.cv-action-btn.primary {
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(238, 62, 54, 0.2);
}

.cv-action-btn.primary:hover,
.cv-action-btn.primary:focus {
  background: linear-gradient(135deg, #d63530 0%, #e55a3d 100%);
  box-shadow: 0 6px 20px rgba(238, 62, 54, 0.3);
  transform: translateY(-2px);
}

.cv-action-btn.secondary {
  background: white;
  color: #ee3e36;
  border: 2px solid #ee3e36;
  box-shadow: 0 2px 8px rgba(238, 62, 54, 0.1);
}

.cv-action-btn.secondary:hover,
.cv-action-btn.secondary:focus {
  background: #ee3e36;
  color: white;
  box-shadow: 0 4px 16px rgba(238, 62, 54, 0.2);
  transform: translateY(-2px);
}

.cv-action-btn i {
  font-size: 1.1rem;
}

/* Mobile responsive for simple CV preview */
@media (max-width: 768px) {
  .cv-preview-content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .cv-thumbnail-page {
    padding: 1.5rem;
  }

  .cv-thumbnail-header h3 {
    font-size: 1.5rem;
  }

  .cv-action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-action-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cv-preview-content {
    padding: 1rem;
    gap: 1rem;
  }

  .cv-thumbnail-page {
    padding: 1rem;
  }

  .cv-thumbnail-header h3 {
    font-size: 1.25rem;
  }

  .cv-preview-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cv-match-rating {
    justify-content: center;
  }
}

/* CV Image Preview Styling */
.cv-image-preview {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
}

.cv-preview-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cv-preview-url {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}

.cv-match-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.match-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.match-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.cv-preview-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.cv-preview-image-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.cv-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.cv-image-link:hover {
  transform: scale(1.02);
}

.cv-preview-image {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cv-preview-image:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #ee3e36;
}

.cv-preview-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
}

.cv-action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.cv-action-btn.primary {
  background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(238, 62, 54, 0.2);
}

.cv-action-btn.primary:hover,
.cv-action-btn.primary:focus {
  background: linear-gradient(135deg, #d63530 0%, #e55a3d 100%);
  box-shadow: 0 6px 20px rgba(238, 62, 54, 0.3);
  transform: translateY(-2px);
}

.cv-action-btn.secondary {
  background: white;
  color: #ee3e36;
  border: 2px solid #ee3e36;
  box-shadow: 0 2px 8px rgba(238, 62, 54, 0.1);
}

.cv-action-btn.secondary:hover,
.cv-action-btn.secondary:focus {
  background: #ee3e36;
  color: white;
  box-shadow: 0 4px 16px rgba(238, 62, 54, 0.2);
  transform: translateY(-2px);
}

.cv-action-btn i {
  font-size: 1.1rem;
}

/* Mobile responsive for CV image preview */
@media (max-width: 768px) {
  .cv-preview-content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .cv-preview-image {
    border-radius: 6px;
  }

  .cv-action-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    display: flex !important;
  }

  .cv-action-btn {
    justify-content: center;
    width: 90%;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  .cv-preview-content {
    padding: 1rem;
    gap: 1rem;
  }

  .cv-preview-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cv-match-rating {
    justify-content: center;
  }

  .cv-action-buttons {
    gap: 0.75rem;
  }

  .cv-action-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
  }
}

/* Upload (fifth) section specific styles */
.upload-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(238, 62, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.upload-section .section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

.upload-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.upload-frame {
  width: 100%;
  height: clamp(420px, 60vh, 720px);
  display: flex;
  flex-direction: column; /* place CTA under the dropzone */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #ffffff;
}

.cv-dropzone {
  width: min(90%, 720px);
  height: min(70%, 520px);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
  text-align: center;
}

.cv-dropzone:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(238,62,54,.15);
}

.cv-dropzone.dragover {
  border-color: #ee3e36;
  background: #fff5f5;
  transform: translateY(-2px);
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #0f172a;
}

.dropzone-inner i {
  font-size: 2.2rem;
  color: #ee3e36;
}

.dropzone-inner p {
  margin: 0;
}

.dropzone-inner small {
  color: #64748b;
}

/* Job Description (jd) section */
.jd-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(238, 62, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.jd-section .section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

.jd-section .preview-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.job-ad {
  height: 100%;
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  color: #0f172a;
  line-height: 1.55;
  text-align: left; /* override parent center alignment */
}

.job-ad-header {
  margin-bottom: .75rem;
}

.job-ad-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.job-ad-meta {
  color: #64748b;
  margin-top: .25rem;
}

.job-ad-tags {
  list-style: none;
  display: flex;
  gap: .5rem;
  padding: 0;
  margin: .5rem 0 0 0;
  flex-wrap: wrap;
}

.job-ad-tags li {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .85rem;
}

.job-ad-body {
  margin-top: .5rem;
  line-height: 1.6;
  color: #1e293b;
  text-align: left;
}

.job-ad-bullets {
  list-style: disc;
  list-style-position: outside;
  margin: 1rem 0 0 0;
  padding-left: 1.25rem;
}

.job-ad-bullets li {
  margin: .35rem 0;
}

.job-ad p { text-align: left; }
.job-ad-meta { text-align: left; }

.job-ad-footer {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Let JD frame grow with content instead of fixed viewport height */
.jd-section .preview-frame {
  height: auto;
}

@media (max-width: 768px) {
  .jd-section .section-content {
    padding: 1.5rem 1rem;
    margin: 0;
  }
  .job-ad-footer {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Optimise CV section styling */
.opt-section .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(238, 62, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.opt-section .section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .opt-section .section-content {
    padding: 1.5rem 1rem;

  }
}

.opt-section .preview-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cv-opt-container { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }

.cv-excerpt {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #fafafa;
  text-align: left;
}

.cv-excerpt-top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .5rem; }
.cv-excerpt-title { font-weight: 800; }
.cv-excerpt-date { color: #64748b; font-size: .95rem; white-space: nowrap; }

@media (max-width: 768px) {
  .cv-excerpt-top {
    flex-direction: column; /* stack title above date on mobile */
    align-items: flex-start;
    gap: .25rem;
  }

  .cv-excerpt-date {
    white-space: normal; /* allow wrapping to prevent overflow */
  }
}

.ats-badge { display: inline-flex; align-items: center; gap: .35rem; background: #fff5f5; border: 2px solid #ee3e36; padding: .25rem .6rem; border-radius: 999px; font-weight: 800; font-size: .95rem; color: #0f172a; box-shadow: 0 4px 12px rgba(238,62,54,.15), inset 0 1px 0 rgba(255,255,255,.9); }
.ats-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #ee3e36 0%, #ff6a4d 100%); box-shadow: 0 0 0 2px #fff inset; }

.cv-bullets { margin: .25rem 0 0 0; padding-left: 1.25rem; }
.cv-bullets li { margin: .4rem 0; padding: .5rem .6rem; border-radius: 8px; border: 1px solid transparent; text-align: left; position: relative; }
.hl-red { background: #fff5f5; border-color: #fecaca; }
.hl-amber { background: #fffbeb; border-color: #fde68a; }
.hl-green { background: #f0fdf4; border-color: #bbf7d0; }
.u-underline { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Active focus/highlight links both ways */
.cv-issue.is-active { outline: 2px solid #111827; box-shadow: 0 0 0 3px rgba(17,24,39,.08) inset; }
.assistant-suggestions li.is-active { box-shadow: inset 0 0 0 2px #1118270f; }

/* Inline issue flags that suggestions reference */
.flag { position: relative; }
.flag-first { background: #fee2e2; box-shadow: inset 0 -8px 0 rgba(239,68,68,.25); }
.flag-vague { background: #fef9c3; box-shadow: inset 0 -8px 0 rgba(245,158,11,.25); }
.flag-quantify { background: #dcfce7; box-shadow: inset 0 -8px 0 rgba(34,197,94,.25); }
.opt-section .preview-frame { height: auto; }

.ai-assistant-bottom { border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem 1.25rem; background: #ffffff; display: flex; flex-direction: column; gap: .75rem; }

.assistant-title { font-weight: 800; }
.assistant-suggestions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.assistant-suggestions li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; cursor: pointer; padding: .6rem .8rem; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; }
.assistant-suggestions .sugg-text { text-align: left; }

/* Stack suggestion text and chip on mobile to prevent squashing */
@media (max-width: 768px) {
  .assistant-suggestions li {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .4rem;
  }
  .assistant-suggestions .sugg-text {
    width: 100%;
  }
  .assistant-suggestions .suggestion-chip {
    align-self: flex-start;
  }
}

/* Suggestion pill adopts highlight colors like the bullet */
.assistant-suggestions li.hl-red { background: #fff5f5; border-color: #fecaca; }
.assistant-suggestions li.hl-amber { background: #fffbeb; border-color: #fde68a; }
.assistant-suggestions li.hl-green { background: #f0fdf4; border-color: #bbf7d0; }

/* Inline cover letter highlighting */
.cl-body .cv-issue { border: 1px solid transparent; border-radius: 6px; padding: 0 .15rem; box-shadow: inset 0 -6px 0 rgba(34,197,94,.15); }
.cl-body .cv-issue.hl-amber { box-shadow: inset 0 -6px 0 rgba(245,158,11,.18); }
.cl-body .cv-issue.hl-red { box-shadow: inset 0 -6px 0 rgba(239,68,68,.18); }
.cl-body p { text-align: left; color: #1e293b; line-height: 1.65; }

/* removed leader line overlay */
.suggestion-chip { display: inline-block; font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; border: 1px solid #e5e7eb; }
.suggestion-chip.red { background: #fff5f5; border-color: #fecaca; }
.suggestion-chip.amber { background: #fffbeb; border-color: #fde68a; }
.suggestion-chip.green { background: #f0fdf4; border-color: #bbf7d0; }

@media (max-width: 900px) {
  .cv-opt-container { grid-template-columns: 1fr; }
}

.upload-cta-btn {
  margin-left: 0;
  margin-top: 0.5rem;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .upload-section .section-content {
    padding: 2rem 1.5rem;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .upload-section .section-content {
    padding: 1.5rem 1rem;
    margin: 0;
  }
}

/* Modal styles for early access */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-backdrop.open {
  display: flex;
}

.modal-backdrop-click {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.modal-dialog {
  position: relative;
  z-index: 51;
  width: min(92vw, 560px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
}

.modal-header h2 {
  margin-bottom: .25rem;
}

.modal-header p {
  margin-bottom: .75rem;
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}

.modal-waitlist-form .ultra-hero-signup-row {
  margin-bottom: .25rem;
}

.modal-footer-note {
  margin-top: .5rem;
  color: #6b7280;
  font-size: .875rem;
}

/* Final mobile heading normalisation (wins over later base rules) */
@media (max-width: 768px) {
  .second-section .section-content h1,
  .jd-section .section-content h1,
  .opt-section .section-content h1,
  .upload-section .section-content h1 {
    font-size: 2rem !important;
    margin-bottom: 1.25rem !important;
  }
}
@media (max-width: 480px) {
  .second-section .section-content h1,
  .jd-section .section-content h1,
  .opt-section .section-content h1,
  .upload-section .section-content h1 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
}
@media (max-width: 360px) {
  .second-section .section-content h1,
  .jd-section .section-content h1,
  .opt-section .section-content h1,
  .upload-section .section-content h1 {
    font-size: 1.35rem !important;
    margin-bottom: 0.875rem !important;
  }
}
