/* ============================================================
   AI DDR Report Generator — Landing Page
   Design: Dark diagnostic instrument aesthetic
   Signature: Hexagonal icon motif + scan-line grid overlay
   ============================================================ */

/* ---- Tokens ---- */
:root {
    --bg-base: #0a0b0f;
    --bg-surface: #111318;
    --bg-card: #161820;
    --bg-card-hover: #1c1f28;
  
    --accent-primary: #4f8ef7;   /* instrument blue */
    --accent-amber: #f5a623;     /* thermal orange */
    --accent-green: #34d399;     /* success */
    --accent-red: #f87171;       /* critical */
  
    --text-primary: #e8eaf0;
    --text-secondary: #8b8fa8;
    --text-muted: #4a4d5e;
  
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(79,142,247,0.3);
  
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
  
    --transition: 200ms ease;
  }
  
  /* ---- Reset ---- */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-display);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; }
  img, svg { display: block; }
  
  /* ---- Nav ---- */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,11,15,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.3px;
  }
  .logo-mark {
    color: var(--accent-primary);
    font-size: 20px;
  }
  .logo-accent { color: var(--accent-primary); }
  .nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-left: auto;
  }
  .nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
  }
  .nav-links a:hover { color: var(--text-primary); }
  .nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: background var(--transition), color var(--transition);
  }
  .nav-cta:hover {
    background: var(--accent-primary);
    color: #fff;
  }
  
  /* ---- Buttons ---- */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
  }
  .btn-primary svg { width: 18px; height: 18px; }
  .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
  .btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color var(--transition), color var(--transition);
  }
  .btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }
  
  /* ---- Hero ---- */
  .hero {
    min-height: 100vh;
    padding-top: 64px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  .hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(79,142,247,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(79,142,247,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,142,247,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    width: 50%;
    position: relative;
    z-index: 2;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(79,142,247,0.08);
    border: 1px solid rgba(79,142,247,0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 32px;
  }
  .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
  .hero-heading {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
  }
  .heading-accent {
    color: var(--accent-primary);
    font-style: italic;
  }
  .hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
  }
  .hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
  }
  .hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
  }
  .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
  }
  
  /* ---- Hero Visual ---- */
  .hero-visual {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 46%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    z-index: 2;
  }
  .report-card {
    width: 100%;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
  }
  .report-card--inspection { border-color: rgba(79,142,247,0.2); }
  .report-card--thermal { border-color: rgba(245,166,35,0.2); }
  .rc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
  }
  .rc-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
  }
  .rc-dot--blue { background: var(--accent-primary); }
  .rc-dot--amber { background: var(--accent-amber); }
  .rc-dot--green { background: var(--accent-green); }
  .rc-lines { display: flex; flex-direction: column; gap: 8px; }
  .rc-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.05);
  }
  .rc-line--full { width: 100%; }
  .rc-line--75 { width: 75%; }
  .rc-line--60 { width: 60%; }
  .rc-line--80 { width: 80%; }
  .rc-line--50 { width: 50%; }
  .rc-tag {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background: rgba(79,142,247,0.1);
    padding: 2px 6px;
    border-radius: 3px;
  }
  .rc-tag--amber { color: var(--accent-amber); background: rgba(245,166,35,0.1); }
  .merge-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
  }
  .merge-arrow svg { width: 40px; height: 40px; }
  .merge-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    letter-spacing: 0.5px;
  }
  .output-card {
    width: 100%;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: var(--radius-md);
    padding: 20px;
  }
  .oc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
  }
  .oc-badge {
    margin-left: auto;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--accent-green);
    background: rgba(52,211,153,0.1);
    padding: 2px 6px;
    border-radius: 3px;
  }
  .oc-sections { display: flex; flex-direction: column; gap: 6px; }
  .oc-section {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(52,211,153,0.3);
  }
  
  /* ---- Sections ---- */
  .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 32px;
  }
  .section-label {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .section-heading {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 56px;
  }
  
  /* ---- Features ---- */
  .features { border-top: 1px solid var(--border); }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .feature-card {
    background: var(--bg-card);
    padding: 32px 28px;
    transition: background var(--transition);
  }
  .feature-card:hover { background: var(--bg-card-hover); }
  .feature-icon {
    font-size: 24px;
    color: var(--accent-primary);
    margin-bottom: 16px;
  }
  .feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
  }
  
  /* ---- Workflow ---- */
  .workflow { border-top: 1px solid var(--border); }
  .workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .wf-step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px 0;
  }
  .wf-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    min-width: 36px;
    padding-top: 3px;
  }
  .wf-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .wf-content p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 520px;
  }
  .wf-connector {
    height: 1px;
    background: var(--border);
    margin-left: 68px;
  }
  
  /* ---- Stack ---- */
  .stack { border-top: 1px solid var(--border); }
  .stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
  }
  .stack-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
  }
  .stack-group-label {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  .stack-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .stack-item:last-child { border-bottom: none; }
  .stack-name { font-size: 14px; font-weight: 600; }
  .stack-role { font-size: 12px; color: var(--text-secondary); }
  
  /* ---- About ---- */
  .about { border-top: 1px solid var(--border); }
  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .about-text .section-heading { margin-bottom: 24px; }
  .about-text p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
  }
  .about-text .btn-primary { margin-top: 16px; }
  .about-features { display: flex; flex-direction: column; gap: 20px; padding-top: 60px; }
  .about-feat {
    display: flex;
    gap: 16px;
    font-size: 15px;
    color: var(--text-secondary);
  }
  .af-icon {
    width: 22px;
    height: 22px;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 1px;
  }
  
  /* ---- Footer ---- */
  .footer {
    border-top: 1px solid var(--border);
    padding: 40px 32px;
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }
  .footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
  }
  .footer-cta {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 500;
    white-space: nowrap;
  }
  .footer-cta:hover { text-decoration: underline; }
  
  /* ---- Responsive ---- */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-inner { width: 100%; }
    .hero-visual { display: none; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-features { padding-top: 0; }
    .footer-inner { flex-wrap: wrap; gap: 16px; }
    .footer-copy { margin: 0; order: 3; width: 100%; }
  }
  @media (max-width: 600px) {
    .section-inner { padding: 60px 20px; }
    .hero-inner { padding: 60px 20px; }
  }


  /* Development Status Indicator */
.dev-status-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #4CAF50;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #4CAF50;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .dev-status-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .dev-status-label {
    font-weight: 600;
    color: #4CAF50;
  }
  
  .dev-status-api {
    font-size: 11px;
    color: #81C784;
    opacity: 0.9;
  }
  
  @media (max-width: 640px) {
    .dev-status-indicator {
      bottom: 10px;
      right: 10px;
      padding: 10px 12px;
      font-size: 11px;
    }
  }