/*
Theme Name: IanDocs
Theme URI: https://iandocs.com
Author: IanDocs
Author URI: https://iandocs.com
Description: A modern dark SaaS landing page WordPress theme. Fully compatible with Elementor. Includes [iandocs_landing] shortcode. Admin-safe — zero global CSS resets.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iandocs
Tags: dark, one-page, custom-background, elementor
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* =============================================================
   CSS VARIABLES — safe, they only declare; never override layout
   ============================================================= */
:root {
  --iandocs-bg: #09090b;
  --iandocs-bg-card: #111113;
  --iandocs-bg-card-hover: #18181b;
  --iandocs-bg-elevated: #1a1a1e;
  --iandocs-bg-input: #18181b;
  --iandocs-border: rgba(255, 255, 255, 0.08);
  --iandocs-border-strong: rgba(255, 255, 255, 0.12);
  --iandocs-text: #fafafa;
  --iandocs-text-secondary: #a1a1aa;
  --iandocs-text-tertiary: #71717a;
  --iandocs-text-muted: #52525b;
  --iandocs-green: #22c55e;
  --iandocs-blue: #3b82f6;
  --iandocs-purple: #a855f7;
  --iandocs-amber: #f59e0b;
  --iandocs-red: #ef4444;
  --iandocs-tag-idea: #dbeafe;
  --iandocs-tag-idea-bg: rgba(59, 130, 246, 0.15);
  --iandocs-tag-task: #fef3c7;
  --iandocs-tag-task-bg: rgba(245, 158, 11, 0.15);
  --iandocs-tag-bug: #fee2e2;
  --iandocs-tag-bug-bg: rgba(239, 68, 68, 0.15);
  --iandocs-tag-feature: #e9d5ff;
  --iandocs-tag-feature-bg: rgba(168, 85, 247, 0.15);
  --iandocs-radius-sm: 6px;
  --iandocs-radius-md: 10px;
  --iandocs-radius-lg: 16px;
  --iandocs-radius-xl: 20px;
  --iandocs-radius-full: 9999px;
  --iandocs-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --iandocs-font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
  --iandocs-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --iandocs-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --iandocs-max-w: 1200px;
}

/* =============================================================
   FRONTEND BODY — only when body has our class (NOT in admin)
   ============================================================= */
body.iandocs-frontend {
  background-color: var(--iandocs-bg);
  color: var(--iandocs-text);
  font-family: var(--iandocs-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

body.iandocs-frontend html {
  scroll-behavior: smooth;
}

/* =============================================================
   SCOPED RESET — only inside .iandocs-landing wrapper
   NEVER touches anything outside (admin, Gutenberg, etc.)
   ============================================================= */
.iandocs-landing,
.iandocs-landing *,
.iandocs-landing *::before,
.iandocs-landing *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.iandocs-landing {
  width: 100%;
  font-family: var(--iandocs-font);
  color: var(--iandocs-text);
  background: var(--iandocs-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

.iandocs-landing a { color: inherit; text-decoration: none; }
.iandocs-landing img { max-width: 100%; height: auto; display: block; }
.iandocs-landing h1,
.iandocs-landing h2,
.iandocs-landing h3 { font-family: var(--iandocs-font); margin: 0; padding: 0; }
.iandocs-landing p { margin-bottom: 0; }
.iandocs-landing ul { list-style: none; margin: 0; padding: 0; }

/* ── Container ── */
.iandocs-container {
  width: 100%;
  max-width: var(--iandocs-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================
   NAV — fixed, gets its own scoped reset
   ============================================================= */
.iandocs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--iandocs-border);
  font-family: var(--iandocs-font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 14px;
}

.iandocs-nav *,
.iandocs-nav *::before,
.iandocs-nav *::after { box-sizing: border-box; margin: 0; padding: 0; }
.iandocs-nav a { color: inherit; text-decoration: none; }
.iandocs-nav ul { list-style: none; margin: 0; padding: 0; }

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

.iandocs-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--iandocs-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.iandocs-logo svg { width: 24px; height: 24px; }

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

.iandocs-nav-links a {
  font-size: 14px;
  color: var(--iandocs-text-secondary);
  transition: color var(--iandocs-fast);
  font-weight: 400;
}

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

.iandocs-nav-cta {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--iandocs-bg) !important;
  background: var(--iandocs-text);
  padding: 8px 18px;
  border-radius: var(--iandocs-radius-full);
  transition: opacity var(--iandocs-fast);
}

.iandocs-nav-cta:hover { opacity: 0.9; }

.iandocs-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--iandocs-text);
  cursor: pointer;
  padding: 8px;
}

.iandocs-nav-toggle svg { width: 24px; height: 24px; }

/* =============================================================
   HERO
   ============================================================= */
.iandocs-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.iandocs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.iandocs-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.iandocs-hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--iandocs-text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.iandocs-hero-sub code {
  font-family: var(--iandocs-font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--iandocs-radius-sm);
  font-size: 0.9em;
  color: var(--iandocs-text);
}

.iandocs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--iandocs-bg);
  background: var(--iandocs-text);
  padding: 12px 28px;
  border-radius: var(--iandocs-radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--iandocs-fast);
  font-family: var(--iandocs-font);
  text-decoration: none;
}

.iandocs-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--iandocs-bg);
}

/* Hero mockup */
.iandocs-hero-mockup {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--iandocs-bg-card);
  border-radius: var(--iandocs-radius-xl);
  border: 1px solid var(--iandocs-border);
  margin-top: 64px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.iandocs-hero-mockup img { width: 100%; height: 100%; object-fit: cover; }

.iandocs-mock-chrome {
  height: 40px;
  background: var(--iandocs-bg-elevated);
  border-bottom: 1px solid var(--iandocs-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.iandocs-mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.iandocs-mock-rows {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iandocs-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--iandocs-bg-elevated);
  border-radius: var(--iandocs-radius-md);
  border: 1px solid var(--iandocs-border);
}

.iandocs-mock-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.iandocs-mock-status.green { background: var(--iandocs-green); }
.iandocs-mock-status.blue { background: var(--iandocs-blue); }
.iandocs-mock-status.amber { background: var(--iandocs-amber); }
.iandocs-mock-status.red { background: var(--iandocs-red); }
.iandocs-mock-status.purple { background: var(--iandocs-purple); }

.iandocs-mock-bar { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); flex: 1; }

.iandocs-mock-tag { font-size: 11px; padding: 3px 10px; border-radius: var(--iandocs-radius-full); font-weight: 600; flex-shrink: 0; }

/* =============================================================
   FEATURES
   ============================================================= */
.iandocs-features { padding: 120px 0; }

.iandocs-section-label { font-size: 14px; color: var(--iandocs-text-tertiary); margin-bottom: 16px; font-weight: 400; }

.iandocs-section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 64px;
  max-width: 600px;
  color: var(--iandocs-text);
  -webkit-text-fill-color: var(--iandocs-text);
  background: none;
}

.iandocs-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.iandocs-feature-card {
  padding: 32px;
  border-radius: var(--iandocs-radius-lg);
  border: 1px solid var(--iandocs-border);
  background: var(--iandocs-bg-card);
  transition: all var(--iandocs-base);
}

.iandocs-feature-card:hover { border-color: var(--iandocs-border-strong); background: var(--iandocs-bg-card-hover); }
.iandocs-feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; color: var(--iandocs-text); }
.iandocs-feature-card p { font-size: 15px; color: var(--iandocs-text-secondary); line-height: 1.6; }

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.iandocs-how-it-works { padding: 120px 0; }

.iandocs-steps { display: flex; flex-direction: column; gap: 48px; margin-top: 64px; }
.iandocs-step { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.iandocs-step-number { font-size: 14px; font-weight: 600; color: var(--iandocs-text-muted); font-family: var(--iandocs-font-mono); margin-bottom: 16px; display: block; }
.iandocs-step-title { font-size: 22px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; color: var(--iandocs-text); }
.iandocs-step-desc { font-size: 15px; color: var(--iandocs-text-secondary); line-height: 1.7; }

.iandocs-step-mockup { border-radius: var(--iandocs-radius-lg); border: 1px solid var(--iandocs-border); background: var(--iandocs-bg-card); overflow: hidden; }

.iandocs-mockup-capture-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--iandocs-border); background: var(--iandocs-bg-elevated); flex-wrap: wrap; }
.iandocs-cap-tag { font-size: 12px; padding: 4px 12px; border-radius: var(--iandocs-radius-full); background: rgba(255,255,255,0.04); color: var(--iandocs-text-secondary); border: 1px solid var(--iandocs-border); }
.iandocs-cap-tag.active { background: rgba(255,255,255,0.08); color: var(--iandocs-text); border-color: var(--iandocs-border-strong); }
.iandocs-mockup-capture-input { padding: 20px 16px; font-size: 15px; color: var(--iandocs-text-secondary); }

.iandocs-mockup-classify { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.iandocs-classify-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--iandocs-radius-md); border: 1px solid var(--iandocs-border); background: var(--iandocs-bg-elevated); }
.iandocs-classify-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--iandocs-radius-full); display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.iandocs-classify-tag.idea { background: var(--iandocs-tag-idea-bg); color: var(--iandocs-tag-idea); }
.iandocs-classify-tag.task { background: var(--iandocs-tag-task-bg); color: var(--iandocs-tag-task); }
.iandocs-classify-tag.bug { background: var(--iandocs-tag-bug-bg); color: var(--iandocs-tag-bug); }
.iandocs-classify-tag.feature { background: var(--iandocs-tag-feature-bg); color: var(--iandocs-tag-feature); }
.iandocs-classify-tag sup { font-size: 9px; font-weight: 700; }
.iandocs-classify-label { font-size: 14px; color: var(--iandocs-text-secondary); }

.iandocs-mockup-sync-header { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--iandocs-border); }
.iandocs-issue-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--iandocs-green); flex-shrink: 0; }
.iandocs-mockup-sync-header span { font-size: 13px; font-weight: 600; color: var(--iandocs-text-tertiary); }
.iandocs-mockup-sync-body { padding: 20px; }
.iandocs-sync-meta { font-size: 12px; color: var(--iandocs-text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.iandocs-sync-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--iandocs-text-muted); }
.iandocs-sync-meta .connected { color: var(--iandocs-green); }
.iandocs-sync-placeholder { font-size: 14px; color: var(--iandocs-text-muted); margin-bottom: 20px; }
.iandocs-sync-link { font-size: 13px; color: var(--iandocs-text-tertiary); display: flex; align-items: center; gap: 6px; padding-top: 16px; border-top: 1px solid var(--iandocs-border); }
.iandocs-sync-link svg { width: 14px; height: 14px; }

/* =============================================================
   AI READY
   ============================================================= */
.iandocs-ai-ready { padding: 120px 0; text-align: center; }
.iandocs-ai-ready .iandocs-section-title { margin-left: auto; margin-right: auto; max-width: 700px; }
.iandocs-ai-ready-desc { font-size: 16px; color: var(--iandocs-text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* =============================================================
   CTA / WAITLIST
   ============================================================= */
.iandocs-cta { padding: 120px 0; text-align: center; }

.iandocs-cta-box {
  border-radius: var(--iandocs-radius-xl);
  border: 1px solid var(--iandocs-border);
  background: var(--iandocs-bg-card);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.iandocs-cta-box::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); pointer-events: none; }
.iandocs-cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; color: var(--iandocs-text); }
.iandocs-cta-subtitle { font-size: 15px; color: var(--iandocs-text-secondary); margin-bottom: 32px; }

.iandocs-waitlist-form { display: flex; gap: 10px; justify-content: center; max-width: 400px; margin: 0 auto; }
.iandocs-waitlist-form input[type="email"] { flex: 1; padding: 12px 18px; border-radius: var(--iandocs-radius-full); border: 1px solid var(--iandocs-border-strong); background: var(--iandocs-bg-input); color: var(--iandocs-text); font-family: var(--iandocs-font); font-size: 14px; outline: none; transition: border-color var(--iandocs-fast); }
.iandocs-waitlist-form input[type="email"]::placeholder { color: var(--iandocs-text-muted); }
.iandocs-waitlist-form input[type="email"]:focus { border-color: rgba(255,255,255,0.25); }
.iandocs-waitlist-form button { padding: 12px 24px; border-radius: var(--iandocs-radius-full); background: var(--iandocs-text); color: var(--iandocs-bg); border: none; font-family: var(--iandocs-font); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: opacity var(--iandocs-fast); }
.iandocs-waitlist-form button:hover { opacity: 0.9; }

/* =============================================================
   FOOTER
   ============================================================= */
.iandocs-footer { padding: 40px 0; border-top: 1px solid var(--iandocs-border); }
.iandocs-footer-inner { display: flex; align-items: center; justify-content: space-between; }
.iandocs-footer-copy { font-size: 13px; color: var(--iandocs-text-muted); }
.iandocs-footer-links { display: flex; gap: 24px; }
.iandocs-footer-links a { font-size: 13px; color: var(--iandocs-text-muted); transition: color var(--iandocs-fast); }
.iandocs-footer-links a:hover { color: var(--iandocs-text-secondary); }

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes iandocsFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.iandocs-anim { opacity: 0; animation: iandocsFadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.iandocs-anim-d1 { animation-delay: .1s; }
.iandocs-anim-d2 { animation-delay: .2s; }
.iandocs-anim-d3 { animation-delay: .3s; }

.iandocs-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.iandocs-reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .iandocs-container { padding: 0 20px; }
  .iandocs-step { gap: 40px; }
}

@media (max-width: 768px) {
  .iandocs-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--iandocs-border);
  }
  .iandocs-nav-links.active { display: flex; }
  .iandocs-nav-links li { width: 100%; }
  .iandocs-nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--iandocs-border); }
  .iandocs-nav-links li:last-child a { border-bottom: none; }
  .iandocs-nav-toggle { display: block; }
  .iandocs-hero { padding: 120px 0 60px; }
  .iandocs-hero h1 { font-size: 34px; }
  .iandocs-features { padding: 80px 0; }
  .iandocs-features-grid { grid-template-columns: 1fr; }
  .iandocs-section-title { font-size: 28px; margin-bottom: 40px; }
  .iandocs-how-it-works { padding: 80px 0; }
  .iandocs-step { grid-template-columns: 1fr; gap: 24px; }
  .iandocs-steps { gap: 64px; }
  .iandocs-cta-box { padding: 60px 24px; }
  .iandocs-waitlist-form { flex-direction: column; }
  .iandocs-waitlist-form input[type="email"],
  .iandocs-waitlist-form button { width: 100%; }
  .iandocs-footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .iandocs-ai-ready, .iandocs-cta { padding: 80px 0; }
}

@media (max-width: 480px) {
  .iandocs-hero h1 { font-size: 28px; }
  .iandocs-feature-card { padding: 24px; }
  .iandocs-step-title { font-size: 20px; }
}

/* =============================================================
   ELEMENTOR COMPAT — only inside our wrapper
   ============================================================= */
.elementor-widget-shortcode .iandocs-landing { width: 100%; }
.elementor-section-full_width .iandocs-landing { margin-left: 0; margin-right: 0; }

/* =============================================================
   PAGE CONTENT — scoped class for non-landing pages
   ============================================================= */
.iandocs-page-content {
  padding: 120px 0 80px;
  min-height: 60vh;
  font-family: var(--iandocs-font);
  color: var(--iandocs-text);
  background: var(--iandocs-bg);
  -webkit-font-smoothing: antialiased;
}

.iandocs-page-content a { color: var(--iandocs-blue); text-decoration: underline; }
.iandocs-page-content h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 32px; color: var(--iandocs-text); font-family: var(--iandocs-font); }
.iandocs-page-content .iandocs-prose { color: var(--iandocs-text-secondary); font-size: 16px; line-height: 1.8; }

/* WP helper */
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
