/* Variables & Custom Properties */
:root {
  --bg-color: #070a13;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --border-light: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-hover: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.06);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Grid & Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Glow Backgrounds */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.glow-1 {
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  bottom: 200px;
  left: -200px;
}

/* Typography Extensions */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  background: var(--glass-bg);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.secondary-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--text-secondary);
}

/* Header */
header {
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 19, 0.7);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

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

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary) !important;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Section (Split Layout) */
.hero {
  padding: 100px 0 80px 0;
  position: relative;
}

.hero-split-container {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
}

.hero-left {
  flex: 1;
  text-align: left;
}

.hero-right {
  flex: 1.25;
  width: 100%;
}

.hero-brand-icon {
  margin-bottom: 20px;
  display: inline-block;
  animation: floatIcon 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.2));
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px auto;
}

.section-header p {
  font-size: 1.1rem;
  margin-top: 12px;
}

.interactive-simulator {
  background: radial-gradient(100% 100% at 50% 0%, rgba(99, 102, 241, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.mac-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  height: 480px;
}

.widget-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.window-header {
  height: 48px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.close { background-color: #ef4444; }
.dot.minimize { background-color: #eab308; }
.dot.expand { background-color: #22c55e; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Clip List */
.clip-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clip-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.clip-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.clip-item.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.clip-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.clip-preview h3 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.clip-preview p, .clip-preview pre {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.clip-preview pre {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 6px;
  border-radius: 4px;
}

.clip-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.clip-badge.auto { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.clip-badge.code { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; }
.clip-badge.rich { background: rgba(244, 63, 94, 0.15); color: #fecdd3; }

/* Destination Panel Details */
.destination-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.preference-indicator {
  margin-left: auto;
  font-size: 0.75rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.editor-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  font-family: var(--font-sans);
  background: rgba(3, 7, 18, 0.4);
}

.editor-content.markdown-rendered {
  color: #e5e7eb;
}

.editor-content.markdown-rendered h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.editor-content.markdown-rendered p {
  color: #d1d5db;
  margin-bottom: 14px;
}

.editor-content.markdown-rendered blockquote {
  border-left: 4px solid var(--accent-indigo);
  padding-left: 16px;
  color: #9ca3af;
  margin: 16px 0;
  font-style: italic;
}

.editor-content.code-rendered {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e2e8f0;
}

.editor-content.rich-rendered {
  color: var(--text-primary);
}

.editor-content.rich-rendered .rich-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

/* Privacy Section */
.privacy-section {
  padding: 100px 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 100%);
  border-top: 1px solid var(--border-light);
}

.privacy-container {
  text-align: center;
  max-width: 800px;
}

.privacy-container p {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 32px;
}

.privacy-tags {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.privacy-tags span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(52, 211, 153, 0.15);
}

/* Call to Action */
.cta {
  padding: 100px 0;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
}

.cta-container {
  text-align: center;
  max-width: 600px;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  background: #04060c;
}

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

.footer-container p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  .hero-split-container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .hero-left {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .features-grid { grid-template-columns: 1fr; }
  .mac-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }
  .copyshelf-window { height: 320px; }
  .destination-window { height: 320px; }
}

@media (max-width: 576px) {
  h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .privacy-tags { flex-direction: column; align-items: center; gap: 12px; }
  header nav { display: none; } /* Could build a hamburger menu, but kept clean for now */
}

/* Feedback Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--text-primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(0, 0, 0, 0.35);
}

/* Segmented Category Selector */
.category-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.category-selector input[type="radio"] {
  display: none;
}

.category-selector label {
  display: block;
  text-align: center;
  padding: 8px 0;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 0;
  text-transform: capitalize;
  letter-spacing: 0;
  border: 1px solid transparent; /* Reserve border space to prevent layout shifting */
  transition: all 0.15s ease;
}

.category-selector input[type="radio"]:checked + label {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

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

/* Status Messages */
.status-msg {
  margin-top: 14px;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  animation: fadeIn 0.2s ease;
}

.status-msg.success {
  display: block;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

/* Custom styles for real brand assets */
.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-img-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(99, 102, 241, 0.3));
  border-radius: 18px;
}

/* Workflow Section Styles */
.workflow-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
  position: relative;
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
}

.workflow-step {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 220px;
}

.workflow-step:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.08);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  opacity: 0.8;
}

.workflow-step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.workflow-step p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.step-arrow {
  color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(4px); opacity: 0.8; }
}

@media (max-width: 992px) {
  .workflow-steps {
    flex-direction: column;
    gap: 16px;
  }
  .step-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }
  .workflow-step {
    min-height: auto;
    width: 100%;
  }
}


