/* =========================================================
   FocusGuard Landing Page Styles
   Design: Linear/Notion-inspired, navy palette
   ========================================================= */

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

:root {
  --bg: #0F172A;
  --bg-2: #111827;
  --card: #1E293B;
  --card-2: #162032;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-red: #EF4444;
  --accent-green: #10B981;
  --text: #F8FAFC;
  --text-2: #CBD5E1;
  --text-muted: #64748B;
  --border: #1E293B;
  --border-2: #334155;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Containers ---- */

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

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, transform 80ms ease, box-shadow 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.4), 0 4px 16px rgba(59,130,246,0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.5), 0 6px 24px rgba(59,130,246,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.nav-link:hover { color: var(--text); }

/* ---- Sections ---- */

.section {
  padding: 96px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 52px;
  line-height: 1.7;
}

/* ---- Hero ---- */

.hero {
  padding: 140px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #93C5FD;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.gradient-text {
  background: linear-gradient(135deg, #3B82F6, #818CF8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Popup Mockup ---- */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 0;
}

.mockup-popup {
  width: 280px;
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #1E293B;
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #F8FAFC;
}

.mockup-icon-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1E293B;
  border-radius: 4px;
}

.mockup-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mockup-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.ring-animate {
  animation: ring-spin 8s linear infinite;
  transform-origin: 36px 36px;
}

@keyframes ring-spin {
  from { stroke-dashoffset: 188.5; }
  to   { stroke-dashoffset: 0; }
}

.mockup-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mockup-timer {
  font-size: 14px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mockup-timer-lbl {
  font-size: 7px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.mockup-session-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mockup-task-name {
  font-size: 11px;
  font-weight: 600;
  color: #F8FAFC;
}

.mockup-stats {
  display: flex;
  gap: 4px;
  font-size: 9px;
  color: #64748B;
}

.dot-sep { color: #334155; }

.mockup-end-btn {
  width: 100%;
  padding: 5px 8px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 5px;
  color: #EF4444;
  font-size: 10px;
  font-weight: 500;
  font-family: inherit;
  cursor: default;
}

.mockup-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.mockup-section-header span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
}

.mockup-count {
  color: #475569 !important;
}

.mockup-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: #1E293B;
  border-radius: 6px;
  border: 1px solid #334155;
}

.mockup-task.active-task {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.07);
}

.mockup-task.focus-task {
  border-color: rgba(59,130,246,0.3);
}

.mockup-checkbox {
  width: 12px;
  height: 12px;
  border: 1.5px solid #334155;
  border-radius: 3px;
  flex-shrink: 0;
}

.mockup-checkbox.checked {
  background: #3B82F6;
  border-color: #3B82F6;
  position: relative;
}

.mockup-checkbox.checked::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 1px;
  width: 6px;
  height: 3.5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.mockup-task-text {
  font-size: 10px;
  color: #CBD5E1;
  flex: 1;
}

.mockup-task-text.done {
  text-decoration: line-through;
  color: #475569;
}

.mockup-active-badge {
  font-size: 8px;
  font-weight: 600;
  color: #3B82F6;
  background: rgba(59,130,246,0.12);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Browser bar above banner */
.mockup-banner {
  width: 280px;
  height: 28px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(51,65,85,0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 18px;
  border-radius: 6px 6px 0 0;
}

.mockup-banner-left {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.mockup-banner-label {
  font-size: 9px;
  color: #64748B;
  white-space: nowrap;
}

.mockup-banner-task {
  font-size: 9px;
  font-weight: 600;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.mockup-banner-timer {
  font-size: 9px;
  font-weight: 700;
  color: #3B82F6;
  flex-shrink: 0;
}

.mockup-browser-content {
  width: 280px;
  background: #1a2234;
  border-radius: 0 0 6px 6px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.mockup-content-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.line {
  height: 4px;
  border-radius: 4px;
  background: #1E293B;
}
.l1 { width: 90%; }
.l2 { width: 75%; }
.l3 { width: 82%; }
.l4 { width: 60%; }

/* ---- Features ---- */

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.feature-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-2px);
}

.feature-card-accent {
  background: linear-gradient(135deg, #162032, #1a2640);
  border-color: rgba(59,130,246,0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-red  { background: rgba(239,68,68,0.12); color: #EF4444; }
.feature-icon-blue { background: rgba(59,130,246,0.12); color: var(--accent); }
.feature-icon-green{ background: rgba(16,185,129,0.12); color: var(--accent-green); }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ---- How It Works ---- */

.how-it-works {
  background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.03) 50%, transparent 100%);
}

.how-it-works .section-title {
  max-width: 540px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
  margin-left: 23px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.step-content {
  padding-top: 10px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Showcase ---- */

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.showcase-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.showcase-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.showcase-list svg { flex-shrink: 0; margin-top: 1px; }

/* Overlay mockup */
.overlay-mockup {
  background: rgba(7, 12, 28, 0.95);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid #1E293B;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.overlay-mockup-inner {
  display: flex;
  justify-content: center;
}

.overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  width: 100%;
  text-align: center;
}

.overlay-favicon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1020;
}

.overlay-badge-red {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.overlay-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.overlay-body {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.65;
}

.overlay-body strong {
  color: #F8FAFC;
  font-weight: 600;
}

.overlay-btn-allow,
.overlay-btn-back {
  width: 100%;
  padding: 9px 16px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  border: none;
}

.overlay-btn-allow {
  background: var(--accent);
  color: #fff;
}

.overlay-btn-back {
  background: transparent;
  border: 1px solid #334155;
  color: #94A3B8;
}

.overlay-note {
  font-size: 10px;
  color: #475569;
}

/* ---- Privacy ---- */

.privacy {
  background: var(--card-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.privacy-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-icon {
  width: 48px;
  height: 48px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.privacy-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Install ---- */

.install-inner {
  max-width: 660px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 200ms ease;
}

.install-step:hover {
  border-color: rgba(59,130,246,0.3);
}

.install-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.install-step-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.install-step-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  background: rgba(59,130,246,0.1);
  color: #93C5FD;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(59,130,246,0.2);
}

.install-cta {
  display: flex;
  justify-content: flex-start;
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border-2);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero-inner,
  .showcase-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links .nav-link { display: none; }
}

@media (max-width: 560px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .mockup-popup,
  .mockup-banner,
  .mockup-browser-content {
    width: 240px;
  }
}
