/* ============================================================
   NurseResume AI — Styles
   Design direction: Clinical Modern
   Primary: #0F2D40 (deep medical navy)
   Accent: #0D9488 (teal / healthcare green)
   Highlight: #E85D4A (warm coral for urgency/CTAs)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0F2D40;
  --primary-light: #163B54;
  --accent: #0D9488;
  --accent-dark: #0A7A70;
  --accent-light: #CCFBF1;
  --highlight: #E85D4A;
  --highlight-light: #FEE2E2;
  --bg: #FAFBFC;
  --bg-warm: #F0FDFA;
  --text: #1A2B3D;
  --text-light: #5A6B7E;
  --text-muted: #8B97A5;
  --border: #D4DDE6;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(15,45,64,0.06);
  --shadow-md: 0 4px 12px rgba(15,45,64,0.08);
  --shadow-lg: 0 8px 30px rgba(15,45,64,0.12);
  --radius: 8px;
  --radius-lg: 14px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 48px;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}

.nav-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: -0.02em;
}

.nav-logo-text { color: var(--primary); }

.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(170deg, var(--primary) 0%, var(--primary-light) 60%, #1A4A68 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(13,148,136,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(232,93,74,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(13,148,136,0.3);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto 16px;
  gap: 0;
  background: var(--white);
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  min-width: 0;
}

.hero-form input::placeholder { color: var(--text-muted); }

.hero-form button {
  background: var(--highlight);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.hero-form button:hover { background: #D14D3B; }
.hero-form button:active { transform: scale(0.97); }

.hero-proof {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.proof-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #34D399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.hero-stat { text-align: center; }

.hero-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  max-width: 140px;
}

/* --- Problem Section --- */
.problem {
  padding: 80px 0;
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--highlight-light);
  color: var(--highlight);
  border-radius: 10px;
  margin-bottom: 14px;
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Features --- */
.features {
  padding: 80px 0;
  background: var(--bg-warm);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card--highlight {
  border-color: var(--accent);
  background: linear-gradient(to bottom right, var(--white), var(--accent-light));
}

.feature-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- AI Demo --- */
.ai-demo {
  padding: 80px 0;
  text-align: center;
}

.ai-demo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12px;
  text-align: left;
}

.ai-demo-input label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.ai-demo-input textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s;
  line-height: 1.6;
}

.ai-demo-input textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.ai-demo-input textarea::placeholder { color: var(--text-muted); }

.ai-demo-controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.ai-demo-controls select {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}

.ai-demo-controls select:focus {
  border-color: var(--accent);
  outline: none;
}

.ai-demo-controls button,
#ai-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.ai-demo-controls button:hover,
#ai-submit:hover { background: var(--accent-dark); }

.ai-demo-controls button:disabled,
#ai-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-demo-output {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 280px;
  overflow-y: auto;
  max-height: 500px;
}

.ai-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 230px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}

.ai-placeholder p { font-size: 0.9rem; }

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 230px;
  color: var(--accent);
  font-size: 0.9rem;
}

.ai-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-result { font-size: 0.88rem; line-height: 1.7; color: var(--text); }
.ai-result h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 16px 0 8px; }
.ai-result h4:first-child { margin-top: 0; }
.ai-result ul { margin: 8px 0; padding-left: 20px; }
.ai-result li { margin-bottom: 6px; }
.ai-result strong { color: var(--primary); }
.ai-result table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.82rem; }
.ai-result th, .ai-result td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; }
.ai-result th { background: var(--bg-warm); font-weight: 600; color: var(--primary); }
.ai-result code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.ai-error {
  color: var(--highlight);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 20px;
}

/* --- Testimonials --- */
.testimonials {
  padding: 80px 0;
  background: var(--bg-warm);
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Pricing --- */
.pricing {
  padding: 80px 0;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card--popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 22px;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5L4 7L8 3' stroke='%230D9488' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  background: var(--highlight);
  color: var(--white);
}

.pricing-cta:hover { background: #D14D3B; color: var(--white); }

.pricing-cta--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.pricing-cta--secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- FAQ --- */
.faq {
  padding: 80px 0;
  background: var(--bg-warm);
  text-align: center;
}

.faq-list {
  max-width: 700px;
  margin: 32px auto 0;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--primary);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  padding: 64px 0 32px;
  text-align: center;
}

.footer-cta {
  max-width: 520px;
  margin: 0 auto 48px;
}

.footer-cta h2 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.footer-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 5px;
}

.footer-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--white);
  outline: none;
  min-width: 0;
}

.footer-form input::placeholder { color: rgba(255,255,255,0.4); }

.footer-form button {
  background: var(--highlight);
  color: var(--white);
  border: none;
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.footer-form button:hover { background: #D14D3B; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.footer-made {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* --- Form Messages --- */
.form-message {
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 6px;
  margin-top: 10px;
  animation: fadeIn 0.3s;
}

.form-message--success {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}

.form-message--error {
  background: var(--highlight-light);
  color: var(--highlight);
  border: 1px solid var(--highlight);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features-grid,
  .testimonial-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card--popular { transform: none; }

  .ai-demo-box {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }

  .nav-toggle { display: flex; }

  .hero { padding: 120px 16px 60px; }

  .hero h1 { font-size: 1.9rem; }

  .hero-sub { font-size: 1rem; }

  .hero-form {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .hero-form button { width: 100%; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-stat-label { max-width: none; }

  h2 { font-size: 1.5rem; }

  .ai-demo-controls {
    flex-direction: column;
  }

  .footer-form {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .footer-form button { width: 100%; }
}
