/* CleanShot AI — Premium Dark Mode UI */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #09090b;
  --bg2:       #111113;
  --bg3:       #18181b;
  --border:    #27272a;
  --border2:   #3f3f46;
  --text:      #fafafa;
  --text2:     #a1a1aa;
  --text3:     #71717a;
  --accent:    #7c3aed;
  --accent2:   #8b5cf6;
  --accent3:   #a78bfa;
  --green:     #22c55e;
  --red:       #ef4444;
  --yellow:    #eab308;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent3); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,11,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

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

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

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text2); font-size: .875rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .875rem !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; }

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

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--accent3);
  font-size: .8rem;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 40%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,.5); text-decoration: none; color: white; }

.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--border); text-decoration: none; color: var(--text); }

.hero-image-wrapper {
  margin: 60px auto 0;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  display: block;
}

.hero-image-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(9,9,11,.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .8rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-image-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* === SOCIAL PROOF === */
.social-proof {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text), var(--text2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { color: var(--text2); font-size: .9rem; margin-top: 4px; }

/* === FEATURES === */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,58,237,.15);
}

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text2);
  font-size: .875rem;
  line-height: 1.6;
}

/* === BEFORE/AFTER === */
.before-after {
  padding: 100px 0;
  background: var(--bg2);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.showcase-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.showcase-item img {
  width: 100%;
  display: block;
}

.showcase-label {
  padding: 16px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text2);
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

/* === PRICING === */
.pricing {
  padding: 100px 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.pricing-toggle span { color: var(--text2); font-size: .9rem; }
.pricing-toggle span.active { color: var(--text); font-weight: 600; }

.toggle-switch {
  width: 48px; height: 26px;
  background: var(--border2);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.toggle-switch.on { background: var(--accent); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}

.toggle-switch.on::after { transform: translateX(22px); }

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

.plan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all .3s;
}

.plan-card:hover { transform: translateY(-2px); }

.plan-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(124,58,237,.2);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-price .amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-price .currency { font-size: 1.5rem; color: var(--text2); }
.plan-price .period { font-size: .9rem; color: var(--text2); }
.plan-price .free { font-size: 3rem; font-weight: 800; }

.plan-desc { color: var(--text2); font-size: .875rem; margin-bottom: 24px; }

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s;
  text-decoration: none;
}

.plan-cta.outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}
.plan-cta.outline:hover { border-color: var(--accent); color: var(--accent3); }

.plan-cta.filled {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,.3);
}
.plan-cta.filled:hover { transform: translateY(-1px); text-decoration: none; color: white; }

/* === FAQ === */
.faq {
  padding: 100px 0;
  background: var(--bg2);
}

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question:hover { color: var(--accent3); }

.faq-icon {
  font-size: 1.5rem;
  color: var(--text3);
  transition: transform .2s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text2);
  font-size: .95rem;
  line-height: 1.7;
}

/* === APP PAGE === */
.app-page {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.editor-area {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.editor-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 60px;
  text-align: center;
}

.editor-placeholder-icon {
  width: 72px; height: 72px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.editor-placeholder h3 { font-size: 1.1rem; font-weight: 700; }
.editor-placeholder p { color: var(--text2); font-size: .9rem; }

.drop-zone {
  border: 2px dashed var(--border2);
  border-radius: 12px;
  padding: 40px;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(124,58,237,.05);
}

.drop-zone input[type="file"] { display: none; }

.editor-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
}

.editor-result.show { display: flex; }
.editor-placeholder.hidden { display: none; }

.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.comparison-slider img { width: 100%; display: block; }

.comparison-slider .label {
  position: absolute;
  bottom: 12px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(9,9,11,.8);
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.comparison-slider .label.before { left: 12px; color: var(--yellow); }
.comparison-slider .label.after { right: 12px; color: var(--green); }

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.usage-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.usage-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 16px; }

.usage-bar {
  height: 8px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}

.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width .5s ease;
}

.usage-stats {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text2);
}

.usage-stats strong { color: var(--text); }

.upgrade-card {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(139,92,246,.1));
  border: 1px solid rgba(124,58,237,.3);
  border-radius: var(--radius);
  padding: 24px;
}

.upgrade-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.upgrade-card p { color: var(--text2); font-size: .875rem; margin-bottom: 16px; }

/* === FOOTER === */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: .875rem;
}

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

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text2); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .navbar .nav-links { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .footer .container { flex-direction: column; gap: 20px; text-align: center; }
}

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

.animate-in { animation: fadeInUp .6s ease forwards; }

/* === MISC === */
.text-gradient { background: linear-gradient(135deg, var(--accent3), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }