/* JobPilot Premium Style System */
:root {
  --primary: #0D9488;
  --primary-deep: #0F766E;
  --accent: #34D399;
  --bg: #F0FDFA;
  --bg-white: #FFFFFF;
  --ink: #134E4A;
  --muted: #5B8A84;
  --border: color-mix(in srgb, var(--ink) 12%, transparent);
  --border-light: color-mix(in srgb, var(--ink) 6%, transparent);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  line-height: 1.625;
  color: var(--ink);
  background-color: var(--bg);
  background-image: 
    radial-gradient(1400px 600px at 0% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 60%),
    radial-gradient(1000px 500px at 100% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 85%, black);
}

a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

/* Base Layout */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: color-mix(in srgb, var(--bg) 80%, transparent);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

nav.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary-deep);
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-deep);
  color: white;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-deep) 15%, transparent);
}

.btn-primary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-deep) 25%, transparent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-deep);
  border-color: var(--primary-deep);
}

.btn-secondary:hover {
  background-color: color-mix(in srgb, var(--primary) 6%, transparent);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary-deep);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 25%, transparent);
}

.btn-accent:hover {
  background-color: color-mix(in srgb, var(--accent) 85%, white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Sections */
section {
  padding: 5rem 0;
}

section.alt-bg {
  background-color: color-mix(in srgb, var(--primary) 3%, var(--bg-white));
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary-deep);
  margin-bottom: 0.75rem;
  display: block;
}

.section-desc {
  max-width: 650px;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* Hero Section (Cinematic full-bleed plane, brand-first) */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, transparent 40%, var(--bg) 95%),
    linear-gradient(90deg, color-mix(in srgb, var(--primary-deep) 15%, transparent) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
}

.hero-content {
  max-width: 650px;
}

/* Justified Aesthetic Risk: Massive, elegant display header mimicking premium physical media */
.hero-brand {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.hero-brand span {
  display: block;
  font-size: 0.45em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-ctas {
    justify-content: center;
  }
}

/* Interactive Sandbox / Terminal Graphic */
.agent-sandbox {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
  text-align: left;
}

.sandbox-header {
  background: color-mix(in srgb, var(--primary) 5%, var(--bg-white));
  border-bottom: 1px solid var(--border-light);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sandbox-dots {
  display: flex;
  gap: 0.35rem;
}

.sandbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
}

.sandbox-dot:nth-child(1) { background-color: #f87171; }
.sandbox-dot:nth-child(2) { background-color: #fbbf24; }
.sandbox-dot:nth-child(3) { background-color: var(--accent); }

.sandbox-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sandbox-body {
  padding: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  background-color: #fbfdfc;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
  line-height: 1.4;
}

.terminal-prompt {
  color: var(--primary);
  user-select: none;
}

.terminal-text {
  color: var(--ink);
}

.terminal-text.highlight {
  color: var(--primary-deep);
  font-weight: bold;
}

.terminal-text.success {
  color: var(--primary);
}

.terminal-badge {
  background-color: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid var(--primary);
  color: var(--primary-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
}

/* User Problems Grid */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
  opacity: 0.5;
  transition: var(--transition);
}

.problem-card:hover::before {
  opacity: 1;
  height: 100%;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 4%, transparent);
  border-color: var(--border);
}

.problem-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: color-mix(in srgb, var(--primary) 20%, transparent);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
}

/* Features Styling */
.features-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

@media (max-width: 768px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.feature-visual {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--ink) 5%, transparent);
  overflow: hidden;
}

.feature-desc h3 {
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Live Interactive Widgets on features */
.matching-widget {
  background: #fbfdfc;
  border-radius: 8px;
  border: 1px dashed var(--border);
  padding: 1.25rem;
}

.matching-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
}

.matching-item:last-child {
  border-bottom: none;
}

.score-badge {
  background-color: var(--primary-deep);
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Comparison Table (Quality Apply vs Spray & Pray) */
.comparison-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 4%, transparent);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  text-align: left;
  min-width: 600px;
}

.comp-table th, .comp-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.comp-table th {
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-white));
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table .versus {
  font-weight: bold;
  font-style: italic;
  color: var(--primary);
}

.comp-table td.highlight-column {
  background-color: color-mix(in srgb, var(--primary) 3%, var(--bg-white));
  font-weight: 500;
}

/* Use Cases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.usecase-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 4%, transparent);
  border-color: var(--border);
}

.usecase-icon {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-white));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-deep);
  font-size: 1.5rem;
}

/* FAQ (Details Disclosure approach) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border);
}

.faq-item summary {
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-deep);
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: color-mix(in srgb, var(--ink) 80%, black);
}

/* Closing CTA */
.closing-cta {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: white;
  text-align: center;
  padding: 6rem 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.closing-cta h2 {
  color: white;
  border: none;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  margin-bottom: 1.5rem;
}

.closing-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.2rem;
}

.closing-cta .btn {
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
}

/* Blog Layout & List */
.blog-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: var(--border);
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

.blog-card h3 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-card p {
  font-size: 0.975rem;
  color: color-mix(in srgb, var(--ink) 80%, black);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-deep);
}

.blog-card-link::after {
  content: ' →';
  transition: var(--transition);
}

.blog-card:hover .blog-card-link::after {
  transform: translateX(4px);
}

/* Individual Post layout */
.post-header {
  padding: 4rem 0 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.post-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.post-body h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.post-body h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.75rem;
  padding-left: 2rem;
}

.post-body li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.post-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: color-mix(in srgb, var(--primary) 4%, var(--bg-white));
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-deep);
}

/* Site Footer */
footer.site-footer {
  background-color: color-mix(in srgb, var(--primary-deep) 98%, black);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Interactive Sandbox JS support classes */
.typing {
  border-right: 2px solid var(--accent);
  animation: blink 0.7s infinite alternate;
}

@keyframes blink {
  from { border-color: transparent }
  to { border-color: var(--accent) }
}
